Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1109327
    mvcarpenter
    Participant

    My blog page does not have the header showing and I am not sure why. http://creativep-o.com/newsblog/

    Right now I have an under construction plugin on. This is the last step to finishing the site.

    #1109337
    mvcarpenter
    Participant

    Correction, the under construction page is no longer up

    #1109360
    mvcarpenter
    Participant
    This reply has been marked as private.
    #1109433
    mvcarpenter
    Participant

    I seem to have fixed it by removing !is_home() && from

    <?php if ( !is_home() && !is_front_page() ) : ?>
      <?php if ( is_page() && $disable_page_title == 'on' ) : ?>

    Seems a little backwards to me, I thought is_front_page was for the blog page and is_home was for the home page. Maybe I remember it a little wrong!

    This is for the file
    wp-content/themes/x-child/framework/views/renew/_landmark-header.php

    #1109673
    Rue Nel
    Moderator

    Hello There,

    Thanks for writing in!

    is_front_page() returns true if the user is on the page or page of posts that is set to the front page on Settings->Reading->Front page displays

    So if you set about us as the front page then this conditional will only be true if showing the about us page.

    is_home() return true when on the posts list page, This is usually the page that shows the latest 10 posts.

    If the settings under Front page displays are left at default then the home page will return true for both is_front_page() and is_home()

    For more information, please check the codex:
    https://codex.wordpress.org/Function_Reference/is_front_page
    https://codex.wordpress.org/Function_Reference/is_home

    Hope this explains it.

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