• Resolved collins1980

    (@collins1980)


    I have removed date from my website but I discovered that it is still displaying on the AMP version. Please how can I remove the date or deactivate it from showing on the AMP version.

    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 @collins1980

    Thank you for support topic, you seems to be using AMP plugin using Reader Mode with Legacy theme

    Please add the following code snippet in your child themes functions.php or in a custom plugin

    add_filter( 'amp_post_article_header_meta', function( $templates ) {
    	if ( ( $key = array_search( 'meta-time', $templates ) ) !== false ) {
    		unset( $templates[$key] );
    	}
    	return $templates;
    });

    This should remove the date from AMP pages.

    Let me know if it works!

    Thread Starter collins1980

    (@collins1980)

    Worked fine! Thanks

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Remove date from AMP version’ is closed to new replies.