Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1435

    Hi,

    Great theme.

    I have tried to put Google adsense (468×60 banner) underneath the pages links on the homepage.

    Wherever I try and place the code it either messes up the PHP, or, is placed outside of the area I want to put it.

    Any ideas?

    Thanks in advance.

    #35205

    The best way to do this is take the HTML snippet and put it in a widget.

    1. In the Control Panel go to Appearance > Widgets

    2. Expand the “Displayed Everywhere” group on the right side

    3. Drag the “Text” widget there and paste the code in the body text area.

    #35206

    Hi,

    Thanks for the response.

    I have done this already for the sidebar, but I suspect this isn’t possible for where I am wanting it, which is directly under the page links, not within the footer itself.

    I’ve looked in the index.php code and wherever I place the HTML or Google adwords code, it does not appear directly under the page links.

    #35207

    You can copy & paste your code after following code in header.php.

    <!-- Navigation for Pages starts here -->
    <?php
    wp_nav_menu( array( 'menu' => 'Main',
    'container' =>false,
    'menu_class' => 'nav',
    'echo' => true,
    'fallback_cb' => 'kriesi_fallback_menu',
    'before' => '',
    'after' => '',
    'link_before' => '',
    'link_after' => '',
    'depth' => 0,
    'context' => 'frontend',
    'walker' => new kclass_description_walker())
    );
    ?>

    <!--end head-->
    <!--Here you can insert your code-->

    #35208

    Hi,

    Sorry, I’m not explaining myself very well.

    Please have a look at the screenshot

    travel-rants.com/images/ss1.jpg

    Where is says ‘banner here’ this is where I want to put either the HTML code for a banner, or Google adsense code. I have looked in the index.php code and I cannot seem to place it where I want it to be.

    I appreciate the support

    #35209

    Replace following code in index.php:

    echo "	<div class='entry lastentry'>";
    kriesi_pagination($additional_loop->max_num_pages);
    echo " </div>";
    echo "</div>";

    with

    echo "	<div class='entry lastentry'>";
    kriesi_pagination($additional_loop->max_num_pages); ?>

    <!--Here you can insert your code-->

    <?php
    echo " </div>";
    echo "</div>";

    Where I wrote “<!–Here you can insert your code–>” you can insert your html code.

    #35210

    Thank you!!!!! Worked perfectly!

    The support around here is fantastic. Really appreciate your help :)

    #35211

    Glad that I could help you.

Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘Insert banner’ is closed to new replies.