remove date from Pages

Home Forums Mustang remove date from Pages

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #17764

    anak
    Participant

    remove date from Pages

    Resolved

    The publish dates on many of my Pages are showing up in Google search results. I really only want the Post, not Page, dates to show up since the content on the Pages isn’t time-sensitive.

    I checked the page source and it appears to be because of the following line, which I think is related to the wm_testimonials widget (since I only have this issues on pages where I included testimonials):
    ><p>Updated on <span class=”updated”> 2017-12-31T10:51:15+00:00</span>, by <span class=”author vcard”>

    Do you know how I would prevent this from appearing and being picked up by Google?

    Thank you for a great theme!

    #17767

    Oliver Juhas
    Keymaster

    Hi anak,

    The issue is actually not related to testimonials display. The information displayed is specifically added for improving SEO and it’s called hAttom microformats.

    If you want not to display it on pages, please add this code to your child theme‘s functions.php file:

    function child_theme_hatom_microformats_output( $output ) {
      if ( is_page() ) {
        $output = '';
      }
      return $output;
    }
    add_filter( 'wmhook_wm_hatom_microformats_output', 'child_theme_hatom_microformats_output' );

    Best regards,

    Oliver Juhas
    WebMan Design

    #17769

    anak
    Participant

    I see, thanks for the explanation. The code worked perfectly. Thank you!!

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.