• Resolved ebereorisi

    (@ebereorisi)


    Hi, How do I remove author meta from posts?
    I tried to use css in my theme editor but it did not work. I use the hello elementor theme and it does not have the option for changing global posts settings.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Milind More

    (@milindmore22)

    Hello @ebereorisi

    Thank you for contacting us, it seems you are using AMP plugin with Reader mode using Legacy theme.

    There are a few methods of removing the author. The website has a section on modifying the author information via a reader mode template override.

    Another option is to add the below to your active themes functions.php file:

    add_filter( 'amp_post_article_header_meta', 'xyz_amp_remove_author_meta' );
    function xyz_amp_remove_author_meta( $meta_parts ) {
    	foreach ( array_keys( $meta_parts, 'meta-author', true ) as $key ) {
    		unset( $meta_parts[ $key ] );
    	}
    	return $meta_parts;
    }

    You could also use a CSS approach, although if you’re using reader mode it would also need to be added to your functions.php file (reader mode does not use your active themes stylesheets).

    add_action( 'amp_post_template_css', function() {
            ?>
            [amp] .amp-wp-meta{display:none}
            <?php
    } );

    We hope this helps!

    Thread Starter ebereorisi

    (@ebereorisi)

    Thanks for your response. I’m unable to edit my functions file at this time. I’m getting a “Scrape key check failed” error. I cannot afford to disable plugins or change themes at this time also. I could not find another option on your website. Is there a way to achieve this if I enable transitional mode?

    Plugin Support Milind More

    (@milindmore22)

    Hello @ebereorisi

    Instead of making changes Please try to installing this plugin. if you enable transitional mode AMP will try reflect your primary theme, in case there is no author shown on your primary theme it will not show on transitional mode.

    Please note that if your theme is not AMP compatible switching to transitional mode may break some features such as a mobile menu, form submission, etc. on AMP pages.

    We hope this helps!

    Plugin Support Milind More

    (@milindmore22)

    @ebereorisi

    We hope our suggestion is helpful, I’ll mark this as resolved Open a?new support topic?if you face further issues, also feel free to?leave a plugin review, we would love to hear your feedback.

    • This reply was modified 1 year, 8 months ago by Milind More.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Hide Author from Post’ is closed to new replies.