• Resolved johlang

    (@johlang)


    Hello everyone,

    I do not want the authors of the article to be displayed on my internet portal https://landshut.info.

    This works wonderfully, but since I installed the AMP plugin, the authors are shown in the mobile version of the site. If I click on “Leave the mobile version” at the bottom of the post, my setting in the topic works: the author of the post is no longer displayed here either.

    How can I ensure that when viewing each post on my cell phone, the author is not displayed? When viewing the posts on a PC or tablet, the author is not displayed.

    Thanks very much

    Johann Lang

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

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

    (@milindmore22)

    Hello @johlang

    Thank you for contacting us, As we checked your site we found that you are using the AMP plugin in Reader Mode with a Legacy theme

    Please use the following code snippet in your child themes functions.php or in a custom plugin to remove author from legacy theme

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

    I hope this helps!

    Plugin Support Milind More

    (@milindmore22)

    @johlang 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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘AMP Mobile Version shows Author’ is closed to new replies.