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

    (@milindmore22)

    Hello @ib1222

    Can you please let us know which template mode you are using?

    if you are using transitional mode or Standard Mode you will need to contact your theme author because your active is being used to serve AMP pages.

    In case you are using the Reader Mode legacy theme please use the below code snippet in your child themes functions.php or in a custom plugin to remove the published date and author

    /**
     * Remove meta time and meta author template types.
     * 
     * @param type $data
     * @return type
     */
    function amp_legacy_remove_template_parts( $data ) {
    	
    	$templates_to_remove = array( 'meta-time', 'meta-author' );
    
    	foreach ( $templates_to_remove as $template_to_remove ) {
    		if ( false !== ( $key = array_search( $template_to_remove, $data ) ) ) {
    			unset( $data[ $key ] );
    		}
    	}
    	return $data;
    }
    
    add_filter( 'amp_post_template_meta_parts', 'amp_legacy_remove_template_parts' );
    add_filter( 'amp_post_article_header_meta', 'amp_legacy_remove_template_parts' );

    Hope this helps!

    Plugin Support Milind More

    (@milindmore22)

    @ib1222 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 ‘Author and publish date’ is closed to new replies.