Place a widget beside a slider (1column page)

  • 13thJoerg

    #143

    Hi Syahir,

    Just wanted to find out if there is anyway to place a widget/container/anything beside the slider?

    If you look at http://www.ehealthfitness.com.au/ i have made a seperate static page which i am SLOWLY working on with my other business workload and it has empty space to the side which i would like to fill in with either the mailchimp widget or some adsense or something…

    Can you tell me how to do achieve this? Which PHP file should i edit?

    Thanks in advance for your assistance!

    Michael.

    Admin

    Syahir Hakim

    #11314

    Hi Michael,

    You can use one of the action hooks in the theme to output the content, and then use CSS absolute positioning to position it beside the slider.

    The code should be something like this below (place it in your child theme’s functions.php):

    function graphene_custom_content(){
    if (is_front_page()) {
    ?>

    <div id="graphene_custom_content">
    <!-- The content goes here -->
    </div>

    <?php
    }
    }
    add_action('graphene_before_content', 'graphene_custom_content');

    istrategy

    #11315

    Thank you that was perfect!!

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

You must be logged in to reply to this topic.