• Resolved bgbs

    (@bgbs)


    I have this code that resides in the header.php template file:

    <div class="dynamic-header"><?php if(function_exists('show_media_header')){ show_media_header(); } ?></div>

    I want to process that header code on all pages except for homepage. Any ideas how I can do this?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter bgbs

    (@bgbs)

    Ok, I figured it out, WP already has an API for this sort of thing

    <?php
           if (is_front_page() ) {
                   get_header( 'front' );
    
            } else {
                   get_header();
           }
    ?>

    I made a boo boo and now I don’t know how to get out of it. I started my website here https://stylingtheman.com and wanted to make certain changes to suit my liking, but was told by wp.com, that they don’t do customization for users :(..can someone help me with this. Of course I should have gotten the template from wp.org and do self hosting, but I like the layout of the template and they way the ARCHIVE/LINKS align. Would anyone be able to help me on this?

    Much appreciated

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    I made a boo boo

    lol you can create your own thread to discuss that.

    Thanks Andrew..btw, do you think this is something I can find help with?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    If your question is regarding www.remarpro.com, then absolutely.

    Would you care to help me? I don’t know if my tread will catch anyone’s eye..lol

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Remove portion of code in header.php from homepage only’ is closed to new replies.