AMP + Child Theme

Posted in: Newspaper
Post count: 7

Hi

I have updated to 9.7.1 on a staging site and have turned on mobile theme and AMP.

However, I only see the AMP option in the WordPress menu if I disable my Child Theme. Reading through other comments here, it seems that this is common / required in order to use AMP menu settings. I have disabled all non Newspaper plugins and still the same.

Am I right in thinking that I cannot use a Child Theme and AMP together?

Thanks

Mike

Post count: 230

I am having this too, seems to be an issue. Hopefully it will be fixed soon 🙂

Post count: 7

Same here.

Guys, you have a great theme but please stop doing updates without testing them properly.

Post count: 7

Speaking of child themes, they used to be available for download. The latest version is 7.0c What gives?

Post count: 23312

Hi all,

Most of the theme files were moved into the tagdiv composer plugin as per the requirements of envato: https://help.author.envato.com/hc/en-us/articles/360000472383-WordPress-Theme-Requirements. We wrote an article on the subject here: https://tagdiv.com/updating-the-core-of-tagdiv-themes/
Moving forward with such requirements, a child theme will only work with functions.php, and style.css as there are very few files left in the main theme as envato requires all functionality to be added through plugins.

Sorry for the inconvenience and thank you for understanding!

Post count: 230

I only have those two files, style.css and functions.php in my chins theme anyway. The issue still occurs.

Post count: 7

I have tried an unmodified child theme, so no changes to the functions.php or style.css with the same result.

I do not understand why this does not work after your changes for Envato, if you are correct that means we have to choose between a child theme or AMP with all Envato themes. Hope you get it working in next release.

Still love the theme…

Post count: 23312

Hi all,

Please notice that all of these files are working well on the child theme and should return good results if the added code is correct, sorry! Please check your child theme code and also, take into account the main changes which were made in our theme, regarding files.

Thank you!

Post count: 9

Hi!
I generally make a new child theme only from the style.css and functions.php files. I take files from your documentation from the downloaded archive. As soon as I activate the child theme, the AMP item in the WP panel disappears. I remove the child theme – it appears.
In addition, a simple shortcode to replace text that works in version 9.6.1 in functions.php refuses to work in version 9.7.1. And does not work in the AMP version of the page.
In version 9.7.1, the changes (added js codes) in the child theme in the loop-single.php file do not work either. You did not move it to the tagdiv composer plugin.

Does the child theme work at all?

  • This reply was modified 7 years by kumushka.
Post count: 7

“Please notice that all of these files are working well on the child theme and should return good results if the added code is correct, sorry! Please check your child theme code and also, take into account the main changes which were made in our theme, regarding files.”

I am using the default child theme that you supply, with no changes made to it.

The child theme and AMP do not work together.

I have disabled every other plugin and it still does not work. Can your developers confirm this is the case as there are conflicting messages here.

Post count: 23312

Hi,

Unfortunately, it seems to be a problem in this case, sorry! I have added to our list of improvements and we hope to fix it as soon as possible in near future updates.

Thank you!

Post count: 230

Updated to 9.7.2 and AMP works fine with the child theme now. Thanks for the fix!

Post count: 7

Yes, working here too.

Thanks for sorting this out so quickly.

Viewing 13 posts - 1 through 13 (of 13 total)
The forum ‘Newspaper’ is closed to new topics and replies.