Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1412135
    PierreMeul
    Participant

    HI, I have a white line across my screen at bottom of my page and just before footer and I am unsure where it is coming from and how I could avoid this white space there.

    Would you have an idea? I am attaching a screenshot.
    Thank you.
    Pierre

    #1412560
    Rue Nel
    Moderator

    Hello There,

    Thanks for writing in! The space is coming from your custom code. It is because of the <br> tag in this code:

    // Google Structured Data Fix for Excerpts
    // =============================================================================
    
    add_filter('get_the_excerpt', 'modified_date_updated_excerpt');
    function modified_date_updated_excerpt( $excerpt ) {
      if ( !is_single() || !is_singular() ) {
        return $excerpt . '<br><div class="hatom-extra"><span class="title">'. get_the_title() .'</span> was last modified: <span class="updated"> '. get_the_modified_time('F jS, Y') .'</span> by <span class="author vcard"><span class="fn">'. get_the_author() .'</span></span><br><br></div>';
      } else {
        return $excerpt;
      }
    }

    Please try to remove the <br> code and see how it goes.

    #1412655
    PierreMeul
    Participant

    Thank you very much, this did it 😉

    #1412838
    Thai
    Moderator

    You’re most welcome 🙂

  • <script> jQuery(function($){ $("#no-reply-1412135 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>