Search Results for 'child theme'

Results from the Forum
Torasko
tagDiv Member

Hey Catalin,

I didn’t do anything with the child theme yet. I’ve just uploaded the version that was supplied in the zip from Themeforest and activated it. There is no custom code in there yet.

Catalin
tagDiv Staff

Hello Torasko,

Unfortunately, I do not know how you use the Child Theme because this can be very complex and if it’s not right used, can appear some problems. For more support about this, please check the following useful guide here -> https://forum.tagdiv.com/the-child-theme-support-tutorial/

Thanks for your understanding!

Simion C.
tagDiv Staff

Hi,

Files from the mobile folder cannot be modified through the child theme at the moment. The elements that can be modified are mentioned in the child theme tutorial.
Those files can only be modified in the main theme.

Thanks

jaylacroix
Participant
#0

Hi!
I just installed the new Thrive Architect plugin to design my pages. I don’t like the page builder, and I was trying to get something better than Visual Composer. But, the thing is that without these two provided layout tools, I cannot get rid of the page Title when selecting the Default page layout in the edit mode of a page.

Is there a way to have blank pages with Newspaper? I mean, you can get rid of the breadcrumbs, but the title still remains… Is creating a child theme to modify the page template the only option?

Thanks!

Nano
tagDiv Member

Thank you for clearing my doubts. One last thing:
How to deal with styles.css and functions.php that are under ‘mobile’ folder and created specifically when the website is viewed on mobile devices. Should I simply copy functions.php and style.css after creating a new directory ‘mobile’ under child theme?

Above I am talking about the mobile related folder of main theme, not about td mobile theme which we need to install as a plugin.

Thanks.

Simion C.
tagDiv Staff

Hi,

That is unusual. You could try the solution from this topic
https://wordpress.stackexchange.com/questions/59077/set-post-comments-open-function
Enter the code mentioned there in the theme or child theme functions file, with a small modification
https://www.screencast.com/t/nkngsFt1
It should enable the comments by default on all posts.

Thanks

Simion C.
tagDiv Staff

Hi,

The custom code that you will enter in the child theme stylesheet will be queued after the theme code, thus having priority
https://www.screencast.com/t/dN6B2Yw5Q8g
No point in having the custom code in the main theme and child theme. Enter it only in the child theme. As for pros and cons, those should be viewed in general terms. There are child theme topics describing advantages and disadvantages
http://www.wpbeginner.com/beginners-guide/wordpress-child-theme-pros-cons/

Thanks

Torasko
Participant
#0

When installing and activating the Newsmag-child, some of the blocks/modules get messed up. The whole sidebar is empty and the widgets in footer 1, footer 2 and footer 3 are now all vertically of each other in footer 1. I’ve checked the contents of the custom functions.php, but can’t find the source in there. I have the feeling that a certain hook to the Newsmag API is missing for said modules.

In case it’s relevant, the sidebar contains 4x block 15. The footer uses Newsmag style 2, with Footer 2 being a Block 7 and Footer 3 being a custom menu.

Thanks in advance for the help!

Nano
tagDiv Member

Thank you Simion for the great details.

I also read the Bogdan’s reply here- https://forum.tagdiv.com/topic/setting-up-child-theme/ . A few doubt I have:

1. I understood that the child theme can also not be future proof, if any of the files that I added in child-theme get modified in original theme as well.
But what about Styles.css and functions.php? How does child theme load style.css? Does it use stylesheets code from original theme and child theme both? If so, then how?

What if there are two codes written for customization of same elements on both original theme CSS and child theme CSS. Which will be finally displayed on the live website?

Does child theme makes calls from style.css and functions.php from both original theme and child theme to display it on live website?

Does this affect the speed of site as well?

There are manily few core font name, size and color changes done by me on the original style.css of my theme. How can I keep it secure and stable even when I make an update of the theme?

functions.php is usually remain unchanged with theme updates but for better update-proof ness, should I add the custom code to the child theme functions.php and remove it from main functions.php?

What will happen if I add these codes at both the functions.php ( theme and child theme), will it cause any conflict in any possible way?

Kindly help

Simion C.
tagDiv Staff

Hi,

The purpose of a child theme is to be able to make customization and modifications to the main theme, without losing them in case of a theme update.
A child theme is provided in the theme package, these are the theme files that can be modified through it
https://forum.tagdiv.com/the-child-theme-support-tutorial/
Custom styling and code can be inserted in the child theme stylesheet, and functions file
https://www.screencast.com/t/W7koVl2Ml
https://www.screencast.com/t/YAv1uMAelWzq
If you plan to use a child theme, remove the custom code from the main theme files and enter it in the child theme files.
However the modifications you make for a theme element through the child theme are not fully future proof. If this element is subject to modification in a theme update, the child theme customization may not work properly or at all. It would require adjustments.
Bogdan is providing some child theme related information here
https://forum.tagdiv.com/topic/setting-up-child-theme/

Thanks

Bogdan B.
tagDiv Staff

Hello,
The ads have a class of ‘google-auto-placed’ so it is clear they do not come from the theme
As for the comments, please disable all plugins except the page builder, clear cache and reset cdn files if you use it. Please also check any custom code you might have added to the theme panel or the theme files. If you use a child theme, please switch to the main theme to make sure it does not affect the proper functionality of the theme.

Thank you!

Nano
Participant
#0

Hi Team,
With every new theme update, I always have to make a few changes in the theme’s core file and now I am fade up with this.

There are two main files that I have to customize in the core theme file. 1. Style.css 2. Functions.php
( I am not talking about custom CSS but the real style.css file under theme)

Is there a way by which I can keep these changes in functions.php and style.css stable/fixed using child theme even after updating theme?

Should I simply copy the code that I change in core style.css file and paste it in style.css of child theme? Will this work? or will it load the style.css two times?

There is some tutorial here – https://codex.wordpress.org/Child_Themes which ensure that the child theme stylesheet loads after original style.css.

<?php
function my_theme_enqueue_styles() {

    $parent_style = 'parent-style'; // This is 'twentyfifteen-style' for the Twenty Fifteen theme.

    wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
    wp_enqueue_style( 'child-style',
        get_stylesheet_directory_uri() . '/style.css',
        array( $parent_style ),
        wp_get_theme()->get('Version')
    );
}
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
?>

Is this code already written under our sample child theme file?

What about functions.php? there are multiple codes that I have added at the end of theme’s core functions.php. Should I delete these codes from core functions.php and write it on the child theme functions.php? If so? where do I need to write these codes?

Currently, this is how child theme funcitons.php look:

<?php
/*  ----------------------------------------------------------------------------
    Newspaper V6.3+ Child theme - Please do not use this child theme with older versions of Newspaper Theme

    What can be overwritten via the child theme:
     - everything from /parts folder
     - all the loops (loop.php loop-single-1.php) etc
	 - please read the child theme documentation: https://forum.tagdiv.com/the-child-theme-support-tutorial/

     - the rest of the theme has to be modified via the theme api:
       https://forum.tagdiv.com/the-theme-api/

 */

/*  ----------------------------------------------------------------------------
    add the parent style + style.css from this folder
 */
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles', 1001);
function theme_enqueue_styles() {
    wp_enqueue_style('td-theme', get_template_directory_uri() . '/style.css', '', TD_THEME_VERSION, 'all' );
    wp_enqueue_style('td-theme-child', get_stylesheet_directory_uri() . '/style.css', array('td-theme'), TD_THEME_VERSION . 'c', 'all' );

}

Where am I supposed to insert new functions.php code?

Please help me create an almost stable style.css and functions.php under child theme so that all theme upgrade doesn’t affect all frequent updates.

Thank you.

Bogdan B.
tagDiv Staff

Hello,
The theme has no problem with nginx, but it deoes have with untested plugins.
Please disable all plugins except the page builder, clear cache and reset cdn files if you use it. Please also check any custom code you might have added to the theme panel or the theme files. If you use a child theme, please switch to the main theme to make sure it does not affect the proper functionality of the theme.
Also make sure to re-save permalinks

Thank you!

Flavia_L
tagDiv Member

New message:

Template is missing. Standalone themes need to have a index.php template file. Child themes need to have a Template header in the style.css stylesheet.

Catalin
tagDiv Staff

Hello bababilgisayar,

Sorry but please notice that the child theme does not support to do these changes. The child theme cannot be used for everything change you want to make, sorry! please read more carefully our documentation regarding on this child theme here -> https://forum.tagdiv.com/the-child-theme-support-tutorial/ because there you will find all of the details about this.

Thanks for your understanding!

bababilgisayar
Participant
#0

Hi, i want add font awesome icons for menu i see document and setup Font Awesome 4 Menus but not working i use child-theme.

Bogdan B.
tagDiv Staff

Hello,

This could be a plugin conflict so please disable all plugins except the page builder, clear cache and reset cdn files if you use it. Please also check any custom code you might have added to the theme panel or the theme files. If you use a child theme, please switch to the main theme to make sure it does not affect the proper functionality of the theme.

Thank you!

Catalin
tagDiv Staff

Hello bformhals,

For more information about Child Theme support and about which kind of files can be changed using the child theme, please consider checking the following useful guide here -> https://forum.tagdiv.com/the-child-theme-support-tutorial/

Thanks for your understanding!

Catalin
tagDiv Staff

Hi,

Please keep in mind that what you want to do is a BIG update and the theme will be broken because it is totally another theme, sorry!

In order to achieve the best results after you will install the latest update you have to follow some rigorous steps like this -> you have to delete both of your themes, child theme, and main theme. All your customizations from your Newspaper 4 theme will do not work because all the files from this were changed in Newspaper 8.1 and as the main theme and also you lose all changes.

The Newspaper 8.1 is a whole new theme so an update from 4 to 8.1 may cause the same issues as switching to another theme (but we did try to maintain compatibility where ever possible).

Always make a full backup of your current installation – https://codex.wordpress.org/WordPress_Backups and then do a clean update, meaning that we recommend that you delete the old version of the theme before uploading the new one – https://forum.tagdiv.com/how-to-update-the-theme-2/ update also the plugins that come bundled with the theme files from the /plugins folder. In the “how to update” guide is specified that you will have to run the script that will import from database your settings.

The shortcodes have been changed so old ones will not work anymore. Please note that old files customization or custom CSS will not work with the new version and you will have to adjust or re-add them. Bottom line is that newspaper 8.1 is a whole new theme built from scratch.

Unfortunately, you will have to clear your agenda and spare a bit of time to adjust all your settings to the new version of the theme.

Hope this helps and let us know how it goes!

Thank you for the message!

Simion C.
tagDiv Staff

Hi,

Please try to deactivate all your plugins except theme plugins. Then clear any caching installed. It could be a plugin conflict, this way you can determine if a plugin is to blame.
Check any custom code you might have entered in theme panel, or added to the theme files. If you use a child theme, switch to the main theme and see if this has any effect.
Also try deactivating and deleting the tagDiv composer plugin, then install it again from the theme package.
If the problem persists, please send us an email at contact@tagdiv.com and provide admin login information, so we can take a look. Also paste a link to this topic in your email.

Thanks

Bogdan B.
tagDiv Staff

Hello,

That is a simple comment that has not been changed from NP 7.
It should not affect the proper functionality of the child theme.

Thank you!

Bogdan B.
tagDiv Staff

Hello,

Please disable all plugins except the page builder, clear cache and reset cdn files if you use it. Please also check any custom code you might have added to the theme panel or the theme files. If you use a child theme, please switch to the main theme to make sure it does not affect the proper functionality of the theme.

Thank you!

Bogdan B.
tagDiv Staff

Hello,
This is a strange issue. It seems your settings are being reset. The theme will not reset so it could be an external influence. This could be a plugin conflict so please disable all plugins except the page builder, clear cache and reset cdn files if you use it. Please also check any custom code you might have added to the theme panel or the theme files. If you use a child theme, please switch to the main theme to make sure it does not affect the proper functionality of the theme.

Thank you!

Bogdan B.
tagDiv Staff

Hello,

This could be a plugin conflict so please disable all plugins except the page builder, clear cache and reset cdn files if you use it. Please also check any custom code you might have added to the theme panel or the theme files. If you use a child theme, please switch to the main theme to make sure it does not affect the proper functionality of the theme.

Thank you!

Simion C.
tagDiv Staff

Hi,

It doesn’t seem to be happening anymore, from what I can see on the page. It was supposed to happen above 1019px
https://www.screencast.com/t/My7OgL39Z
https://www.screencast.com/t/rxnFc7GuqOU
The theme already has conditions like you mention for the blocks elements
https://www.screencast.com/t/Q15rlpFDgHbl
https://www.screencast.com/t/PrWVcv92Mzo
There should be no such problem with how the module thumbnail or meta display in any layout settings. Please check again, the issue is not happening anymore. Check if you have custom code in the theme panel related to the block or module, or if you use a child theme. This should not happen, but it can be caused by custom code.

Thanks

Viewing 25 results - 9,176 through 9,200 (of 12,866 total)