Search Results for 'child theme'

Results from the Forum
linoormohamed
Participant
#0

Hi,
how do do i add google tag manager code both head and body tags to the child theme?

Anonymous
tagDiv Member

Hello Catalin,

I have made as you suggested yet i get the same error. For informations, i am using your child-theme and i have changed the names of both themes.

I have made a test by installing both parent and child theme without changing the names and now it is working fine.

I guess changing the child theme name has something to do with that error. Hope you got a solution for this.

Thank you 🙂

Syeed Chowdhury
Participant
#0

Hi,

I am currently trying to override few theme files, one of which is td_block.php(available in: includes>wp_booster>td_block.php).

I have added the file in my child theme in same path but it was giving me an error(Fatal error: Cannot redeclare class td_block) because there is no class_exists filter in the parent theme and WordPress was trying to declare a class which was already declared in the child theme. For now, I have added a class_exists filter in the parent theme and it’s working.

The issue is, though it is working now(because of the filter I added in the parent theme), it will break the moment we replace the parent theme with any update. can you help us how we can solve this issue in the long run?

Simion C.
tagDiv Staff

Hi,

The ad is still there at the moment – https://www.screencast.com/t/Hr95wI0rjaM
The theme does not contain any Google ads by default, these can only come by actions on your part.

Deactivate all plugins except theme plugins, temporarily remove any code entered in theme panel ads sections, and custom code sections. Remove code from theme files if entered, deactivate the child theme if used. Also clear all caching installed after doing this. The ad comes from somewhere, it could have not just appeared by itself.

Thanks

ctoweett
tagDiv Member

You will have to delete the whole code that is marked. But you will have to do this every time the theme is updated unless you are using a child theme.

jakobe75
tagDiv Member

I only have a the few plugins that either come with wordpess, the template package, or from jetpack.

as I mentioned there is no active cache on this site, and no cdn.

was working fine until the update to 8.6
Was causes the + sign to appear? under normal circumstances?

It has to be coming from the template in some way as none of the basic plugins have the functionality to hide or show social media button with a + or – sign.

note: disabled all plugins, issue remains.

no child theme being used.
no cdn being used
no custom code

  • This reply was modified 8 years by jakobe75.
davidcubed
tagDiv Member

Changing my child theme name fixed the issue for me.

Catalin
tagDiv Staff

Hello mjehangir,

I saw that you are using the Newspaper Child Theme. Try to switch the theme to the main theme, without any untested plugins, clear all the caches and check the results. Also, check the system status parameters to be increased according to our documentation from here -> https://forum.tagdiv.com/install-via-ftp/

Thanks for your understanding!

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!

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,

1. From what I can see the website is missing the header section, I cannot even see the menu
https://www.screencast.com/t/b0SO4uvrA9E
The current header structure is not coming from the theme
https://www.screencast.com/t/t3I96vXsWvQs
Maybe there have been modifications made to the theme header style files directly or through a child theme. You could check if that is the case.

2. The block titles seem to have a white background color, that is what makes them invisible
https://www.screencast.com/t/B9SVlQZH2
Edit the page with the composer and change the title background color, also check the general header background color set in the theme panel
https://www.screencast.com/t/0fNQODVe9F0

3. Same here, check the widget settings or the general color set in the theme panel.

Ultimately you could try a theme reinstall, maybe there were problems when installing or migrating the website
https://forum.tagdiv.com/install-via-ftp/

Thanks

Bogdan B.
tagDiv Staff

Hello,

If you have a plugin conflict affecting the theme js, the smart sidebars will not work anymore. For pages, make sure you add the extra class to the row containing the sidebar as described here: https://forum.tagdiv.com/smart-sidebar-2/

If the implementation is correct, 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,

You can create a page in the tagdiv composer and split the row in 3: https://www.screencast.com/t/LJddKY1K

You can add content to the rows by using this guide: https://forum.tagdiv.com/tagdiv-composer-tutorial/
This guide should help with the settings: https://forum.tagdiv.com/block-settings-guide/
If you want a block without thumbs, try blocks 9 and 10.
https://demo.tagdiv.com/newspaper/block-9/
https://demo.tagdiv.com/newspaper/block-10/

You do not need a child theme as you can use the tagdiv composer to add css to any block and page.

Thank you!

Bogdan B.
tagDiv Staff

Hello,

Sorry but we cannot recreate this issue on our end. 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,

I have tried adding the same code you are using to create the custom post types, added in the child theme functions file
https://www.screencast.com/t/rha8hfTc
https://www.screencast.com/t/sj67dIYxEh
These show up properly as custom post types and I have no issue using them
https://www.screencast.com/t/4iFMzMQU4ubk
Also there is no problem with the composer after doing this, it works the same as before. I even saved the permalinks as you mention, there were no issues after doing this. I don;t exactly understand what require lines you are modifying, maybe that is what is causing the issue.

Thanks

Catalin
tagDiv Staff

Hello nbrown1119,

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 functioning of the theme. Wp Engine seems to create more and more problems for our theme. Please disable any tools provided by wp-engine.

Hope this helps!

Thanks for your understanding!

Catalin
tagDiv Staff

Hello rnpacheco,

I have inspected your website and I saw that your smart sidebar is not working as expected for tables, sorry! Please make sure that you are using the latest version of the theme, installed via FTP way, switch the theme to the main theme if you are using the child theme, remove all of untested plugins if you are using something like this (I saw that you are using the Autoptimize which can break the theme, disable it), clear all the caches, purge CDN files and check the results.

Hope this helps!

Thanks for your understanding!

Fenix
Participant
#0

Hello,

I’m having some “problems” with the Speed Booster plugin. I state that i’m not a newbie to this template and its plugins.
Said that, what follow is my problem: as you can see from the screenshot below, if i run the Google Page Speed for my articles, there’re two files that delay the render of the page (above-the-fold) only on the mobile version (i’m not using the dedicate mobile plugin because the theme is already mobile friendly).
I’ve added those files in my Speed Booster config file, but seems that isn’t working.
The second problem is: why the mobile pages needs 5 round trip to be loaded? (0 on desktop version)

screenshot

Here’s my speed booster code for CSS and JS (not complete for security reasons):

function css_mover() {
        //if ($this->td_theme_name == 'Newspaper') { }
        // wp 011 - Newspaper 6

			$this->move_style_to_footer_queue('bbp-default-bbpress');  //bbpress old
			$this->move_style_to_footer_queue('bbp-default'); // bbpress
			$this->move_style_to_footer_queue('contact-form-7');
			$this->move_style_to_footer_queue('cookie-notice-front');
			$this->move_style_to_footer_queue('ewww-image-optimizer');
			$this->move_style_to_footer_queue('disqus-comment-system');
			$this->move_style_to_footer_queue('yoast-seo-adminbar');
			$this->move_style_to_footer_queue('rs-plugin-settings');
			$this->move_style_to_footer_queue('td-mobile');
			$this->move_style_to_footer_queue('td-theme');
			$this->move_style_to_footer_queue('td-theme-child');
			$this->move_style_to_footer_queue('td-theme-woo');
			$this->move_style_to_footer_queue('td-theme-demo-style');
			$this->move_style_to_footer_queue('td_live_css_frontend');
			$this->move_style_to_footer_queue('td-theme-bbpress');
			$this->move_style_to_footer_queue('font-awesome-four');
			$this->move_style_to_footer_queue('cookie-consent');

        if ($this->is_ie === false) {
            // move style.css theme style
            $this->move_style_to_footer_queue('js_composer_front');
			$this->move_style_to_footer_queue('td-mobile');
            $this->move_style_to_footer_queue('td-theme');
            $this->move_style_to_footer_queue('td-theme-child');
            $this->move_style_to_footer_queue('td-theme-woo');
            $this->move_style_to_footer_queue('td-theme-demo-style');
			$this->move_style_to_footer_queue('td_live_css_frontend');
            $this->move_style_to_footer_queue('td-theme-bbpress');
			$this->move_style_to_footer_queue('font-awesome-four');
        }

        //@todo test on newsmag
        $this->move_style_to_footer_queue('woocommerce_prettyPhoto_css'); //on product page
        $this->move_style_to_footer_queue('woocommerce_frontend_styles'); //old woocommerce?
        $this->move_style_to_footer_queue('woocommerce-layout');
        $this->move_style_to_footer_queue('woocommerce-smallscreen');
        $this->move_style_to_footer_queue('woocommerce-general');
        //$this->move_style_to_footer_queue('bp-legacy-css');

        //google fonts
		$this->move_style_to_footer_queue('google-fonts-style');
        $this->move_style_to_footer_queue('google_font_open_sans');
		$this->move_style_to_footer_queue('google_font_roboto');
		$this->move_style_to_footer_queue('google_font_roboto_cond');
		$this->move_style_to_footer_queue('google-fonts-style');
		$this->move_style_to_footer_queue('google-font-ubuntu');

        //move revolution slider css
        $this->move_style_to_footer_queue('rs-plugin-settings');
        $this->move_style_to_footer_queue('genericons'); //still rev slider

        //$this->move_style_to_footer_queue('js_composer_front');

    }

/**
         * move javascript to footer
         */
			$this->move_js_to_footer('themepunchtools');
			$this->move_js_to_footer('revmin');
			$this->move_js_to_footer('vc_woocommerce-add-to-cart-js');
			$this->move_js_to_footer('contact-form-7');
			$this->move_js_to_footer('cookie-notice-front');
			$this->move_js_to_footer('disqus-comment-system');
			$this->move_js_to_footer('ewww-image-optimizer');
			$this->move_js_to_footer('revmin');
			$this->move_js_to_footer('tp-tools');
			$this->move_js_to_footer('jquery');
			$this->move_js_to_footer('comment-reply');
			$this->move_js_to_footer('js_files_for_plugin_live_css');
			$this->move_js_to_footer('js_files_for_live_css');
			$this->move_js_to_footer('js_files_for_ace_ext');
			$this->move_js_to_footer('js_files_for_ace');
			$this->move_js_to_footer('td-site-min');
			$this->move_js_to_footer('td-site');
			$this->move_js_to_footer('cookie-consent');

        //print_r($wp_scripts);
        // replace comment-reply.min.js with inline version
    }
BernieHolmes
Participant
#0

Hello,

I’m building my homepage. id like it to look similar to this > https://imgur.com/A68Yixw
could you please advise me on how best to recreate the highlighted section.

i would like three of my latest articles to appear in one section. i would like them to NOT have any thumbnails. i would like the initial paragraph or 30 words or so to display beneath them.

i like the 3 column layout with a bigger column in the middle . so 1/4 1/2 1/4 . im using the pagebuilder option to achieve this. you suggest not to use that layout of columns with newspaper 8.5. why is that?

if I edit the css of a block will i have to create a child theme so it doesn’t get deleted when i update?

thank you

ctoweett
tagDiv Member

(I don’t work here). They are visible on my end but they show Chinese characters (back to top button also not working). Maybe disable all plugins except those by tagdiv, clear cache and reset CDN files if you use it. If they are working after that, activate each plugin one by one and check the result. 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 and see if they work coz a child theme might affect the proper functioning of the theme.

ctoweett
tagDiv Member

(I don’t work here). What I noticed with many WordPress themes is that the child themes do not inherit the customizations of the parent theme. With this knowledge, when I bought the newspaper theme, I just made customizations to the child theme right away. I also made some few customizations to the parent theme in case I have to switch from the child theme to the parent theme (such as due to plugin conflicts or bugs). In my thinking, the customizations for the child theme are kept separate from the parent theme, so you will have to modify the child theme from scratch (or try using this plugin https://wordpress.org/plugins/customizer-export-import/).

toniacat
tagDiv Member

Thank you for the link,
Just to clarify, am I correct in thinking then that this Newspaper child theme is backwards? The customizations are held in the PARENT theme? Not the CHILD theme? So why would I want that? The rest of the world uses a CHILD theme to make customizations so we don’t loose all our hard work and customizations? is there anyone who can reply to me and share a response in non-coder language? I am just trying to figure out if I can continue using this theme the way I need to. If the parent is really the child then I’m not sure this is how I want to use this theme. I’m just not sure I’m understanding that content on the link you sent as clear and I think I am reading.

  • This reply was modified 8 years by toniacat.
Tatiane Pires
Participant
#0

Hello there! I need some help.

I already checked the page How to use custom post type and taxonomy, and downloaded the suggested plugin td-custom-post-type. It seems to me that this is a “plugin way” to add CPTs other than my “child theme way” to add them.

I’m working with a Newspaper’s child theme, the files cpt-events.php and cpt-photos.php are required from functions.php. Then I rebuild the permalinks from /wp-admin/options-permalink.php whenever I add or remove the require lines.

The issue is that, upon adding these CPTs, TagDiv Composer no longer loads after clicking the button that links to /wp-admin/post.php?post_id=SOME_ID&td_action=tdc

Both CPT files were generated from Generate WP and everything else (other than TagDiv Composer) works flawlessly.

To make things even stranger, after removing cpt-events.php and cpt-photos.php require lines from functions.php, and rebuilding permalinks, TagDiv Composer continues not loading. It will only work if I restore a database backup saved right before activating the CPTs.

I don’t have an URL so that you could login in wp-admin. I’ve been testing it on my local development environment.

I’d like to know if you could take a look in the linked php files. I’m not aware of any CPT setting in those files that could trigger this behavior (composer not loading), perhaps you can spot it.

toniacat
Participant
#0

When I switch back to the child theme the site looses my navigation menu list, and all the widgets is there a reason why they aren’t held by the child theme?
Tonia

Bogdan B.
tagDiv Staff

Hello,

Please make sure you also clear all caching after you change settings. Please only use wp super cache and these settings: https://forum.tagdiv.com/cache-plugin-install-and-configure/
Also please test this without any other plugins. 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!

Viewing 25 results - 8,501 through 8,525 (of 12,866 total)