• Resolved stevenwb1

    (@stevenwb1)


    Hello, Is there a way that the Advertisement Settings “468×60 or 728×90 Header Banner and Advertisment Embed Code” can be used on the homepage only as a welcome blurb? Or maybe there is a way to add a welcome blurb to that position on the home page only? Thanks for a great theme!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Theme Author Richie KS

    (@rkcorp)

    open header.php and wrap the code with

    <?php if( is_home(): ?>
    == the banner code and div ===
    <?php endif; ?>
    Thread Starter stevenwb1

    (@stevenwb1)

    Richie, I am at a loss as to what piece of code to wrap. I just can’t figure it out and I am missing something. Can you please paste the code here as it should be after your suggested change is in place?

    Thanks again!

    Theme Author Richie KS

    (@rkcorp)

    open header.php edit line 115 to

    <?php if( is_home(): ?>
    <?php $header_banner = get_theme_option('header_embed'); if($header_banner != '') { ?>
    <div<?php if( get_header_image() && $header_overlay == 'Yes' ): ?> class="header-overlay-on"<?php endif; ?> id="topbanner">
    <?php echo stripcslashes( do_shortcode($header_banner) ); ?>
    </div><!-- TOPBANNER END -->
    <?php } ?>
    <?php endif; ?>

    see the first code and last code i added.

    Thread Starter stevenwb1

    (@stevenwb1)

    That is what I thought you meant and what I tried again, but it doesn’t seem to work. I just pasted your exact code in place and it causes the site to break.

    Theme Author Richie KS

    (@rkcorp)

    try this

    <?php if( is_home() ): ?>
    <?php $header_banner = get_theme_option('header_embed'); if($header_banner != '') { ?>
    <div<?php if( get_header_image() && $header_overlay == 'Yes' ): ?> class="header-overlay-on"<?php endif; ?> id="topbanner">
    <?php echo stripcslashes( do_shortcode($header_banner) ); ?>
    </div><!-- TOPBANNER END -->
    <?php } ?>
    <?php endif; ?>

    is_home() is unclose earlier.

    Thread Starter stevenwb1

    (@stevenwb1)

    Ritchie, Thanks!!! That worked like a charm. If you want to check out your handiwork, esalesinfo.com. Haven’t made dime one yet, but I’m trying.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Add Header Banner welcome blurb on homepage only’ is closed to new replies.