WordPress.org

Support

Support » Themes and Templates » Pages dont show the same header as the Index

Pages dont show the same header as the Index

  • i have some custom stuff implemented into a custom theme. i have everything working like i want as far as the back end goes. when you view the index page it shows a “coming events” section up top which is in the header of the template. so it should show (and i want it to) on pages as well, but it doesn’t! only the links to the posts are displayed. i would appreciate some advice, i don’t know if i am overlooking something or what!

    thanks in advance for your help!

    here’s the link: http://02f16cc.netsolhost.com/freestonemx/

Viewing 6 replies - 1 through 6 (of 6 total)
  • esmi

    @esmi

    Forum Moderator

    Use absolute urls for your event images.

    thank you for such a quick response! i figured it was something simple and i was overlooking it!

    what if i didn’t want to display that header with the coming events, and just the content above that section for all the pages and single posts?

    thanks again i really appreciate it!

    esmi

    @esmi

    Forum Moderator

    Sorry – I’m not sure I follow…

    if i wanted a different header to show on all the other pages throughout the site other than on the “index” page, what would i do?

    esmi

    @esmi

    Forum Moderator

    Something like:

    <?php if( is_home() || is_front_page) :?>
    [ home page markup here ]
    <?php else:?>
    [ standard markup here ]
    <?php endif;?>

    in header.php should work.

    ok sweet thank you very much!

    again i appreciate your quick response!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Pages dont show the same header as the Index’ is closed to new replies.