• I’m trying to use a mapped image as an ad banner image in the BookRev theme.
    I have my html code for the image but I’m unsure how to alter
    the Header.php file in order to use this mapped image,
    instead of just uploading a generic image through the customize section of the dashboard.

    Can someone please advise?

    The header.php code for the ad banner is:

    <section id=”ad-banner”>

    <?php

    if(get_theme_mod(“head_display_ad”,false)) {

    $ad_banner_img = get_theme_mod(‘header-ad-img’);

    $ad_banner_url = get_theme_mod(‘header-ad-url’);

    $ad_banner_alt = get_theme_mod(“header-ad-alt”);

    if( !empty($ad_banner_img))

    {

    echo “” . esc_attr($ad_banner_alt) . ““;

    }

    }

    ?>

    </section><!– end #ad-banner –>

    And my html code for the mapped image is:

    <img src=”https://historyauthor.com/wp-content/uploads/2015/08/buttons31.jpg&#8221; border=”0″ usemap=”#Map” />
    <map name=”Map”>
    <area shape=”rect” coords=”-24,-4,101,147″ href=”#” target=”https://www.iheart.com/show/53-History-Author-Show/”&gt;
    <area shape=”rect” coords=”99,-1,188,165″ href=”#” target=”https://tunein.com/radio/History-Author-Show-p771648″&gt;
    <area shape=”rect” coords=”188,1,281,149″ href=”#” target=”ttps://itunes.apple.com/us/podcast/history-author-show/id1024856626″>
    </map>

    Can someone please help?

    Thanks in advance!

  • The topic ‘Help! Not sure how to fit html code in php file’ is closed to new replies.