Forums

Coding question for dynamic sidebar - where to place script code (3 posts)

  1. tradingjamie
    Member
    Posted 11 months ago #

    Hi guys

    In the sidebar.php I have some code from the theme like this:

    ----------------------------------------------------------------------

    <div id="siderail">

    <div id="sidebar1">
    <div class="sidebar-group" id="sidebar">

    <?php if (function_exists('dynamic_sidebar') && dynamic_sidebar(1) ): else : ?>

    <!--sidebox start -->

    ----------------------------------------------------------------------

    Then the code for the default sidebar starts.

    The thing is, I have a 'dynamic sidebar' i.e. I am using widgets but I want to place some script to display at the bottom of my dynamic sidebar.

    Any ideas where about I physically place the script code in the above?

    p.s. the script is for my Google Adsense

    Cheers

  2. equaldesign
    Member
    Posted 11 months ago #

    after that lot you should see an

    <?php endif; ?>

    at the bottom somewhere. Place your code after that and it should appear.

  3. tradingjamie
    Member
    Posted 11 months ago #

    good shout! thanks very much!

Reply

You must log in to post.

About this Topic