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


    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.


    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.



    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.


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

    <!-- Navigation for Pages starts here -->
    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-->



    Sorry, I’m not explaining myself very well.

    Please have a look at the screenshot


    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


    Replace following code in index.php:

    echo "	<div class='entry lastentry'>";
    echo " </div>";
    echo "</div>";


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

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

    echo " </div>";
    echo "</div>";

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


    Thank you!!!!! Worked perfectly!

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


    Glad that I could help you.

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

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