AMP Legacy reader metadata
-
Hello,
I am using the wp Kadence theme and your AMP plugin. This combination seems to only support the Reader option, the other 2 options (standard, transitional) do not work.
– Is that indeed the case with the Kadence theme?
On the amp pages I’d like to remove the metadata that is shown: the author and date stamp.
– How can I remove the metadata for the amp posts?
In the theme additional CSS section I included the following code:
.amp-wp-article .amp-wp-meta amp-wp-byline .amp-wp-posted-on {display:none;}I also tried
.amp-wp-article .amp-wp-meta amp-wp-byline .amp-wp-posted-on {visibility: hidden;}But the metadata is still displayed.
How can I remove all metadata for the amp posts?
Thank you.
The page I need help with: [log in to see the link]
-
Hi @belsit,
Thanks for contacting us; Kadence theme is listed as AMP-compatible; if you are having issues with the recent update, you can get in contact the theme developers.
Can you share your UUID id, and I can do a further investigation.
About the reader mode, You can use a compatible theme such as Astra and use the dashboard to customize because you will have support for more features with a compatible theme.
I saw that you are using a WordPress core theme; you can use the customizer to add custom CSS
But if you want to use a legacy theme, here are some answers:
– How can I remove the metadata for the amp posts?
You can edit the author template documentation here.
With CSS you can adding a plugin with or at the functions.php from your theme, the following code:
add_action( 'amp_post_template_css', function() { ?> /* Put Custom CSS below */ .amp-wp-article .amp-wp-meta { display: none; } <?php } );Thank you Fellyph.
As my website with the Kadence theme did not load in amp standard nor amp transitional mode, I activated the reader option.
You are saying that Kadence is amp compatible and hence should work with these modes?
You are referring me to the theme developers, but I am using the free theme version, probably no support included from them. I prefer these modes over the reader mode, so any help here is appreciated.“Can you share your UUID id, and I can do a further investigation.” –> Could you please explain what this is and where I can find it for you?
“You can edit the author template documentation here.” –> Before opening this thread, I checked that page. But I couldn’t get it to work for me, probably did something wrong somewhere
Hi @belsit,
You are saying that Kadence is amp compatible and hence should work with these modes?
The Kadence theme was compromised to make the theme AMP compatible, I will double-check it, in a local environment.
Here you can check how to share the UUID:
I’ll post soon a video on how to add custom CSS to the legacy theme, but there is a video where I add some custom code, the process will be similar the difference will be the code included.
As we didn’t receive a response I’ll mark this as resolved. Feel free to open a new support topic if you require any further assistance.
Fellyph – I was (am) still waiting for a reply on your comments “The Kadence theme was compromised to make the theme AMP compatible, I will double-check it, in a local environment” and “I’ll post soon a video on how to add custom CSS to the legacy theme”. Any update on those?
Thank you.
Hi @belsit,
Sorry, for that.
1. I have checked the Kadence theme is AMP compatible, but Kadence Blocks don’t it creates some validation issues.
2. How to add custom CSS:
3. How to customize AMP legacy theme(new video):
The topic ‘AMP Legacy reader metadata’ is closed to new replies.