WordPress.org

Ready to get started?Download WordPress

Forums

Pages dont show the same header as the Index (7 posts)

  1. mxpimp47
    Member
    Posted 3 years ago #

    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/

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    Use absolute urls for your event images.

  3. mxpimp47
    Member
    Posted 3 years ago #

    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!

  4. esmi
    Forum Moderator
    Posted 3 years ago #

    Sorry - I'm not sure I follow...

  5. mxpimp47
    Member
    Posted 3 years ago #

    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?

  6. esmi
    Forum Moderator
    Posted 3 years ago #

    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.

  7. mxpimp47
    Member
    Posted 3 years ago #

    ok sweet thank you very much!

    again i appreciate your quick response!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.