Place a widget beside a slider (1column page)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
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.
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');
Viewing 3 posts - 1 through 3 (of 3 total)
This free Support Forum relies on contributions from our support staffs and fellow Graphene themes users. While we endeavour to provide adequate and timely support, due to its voluntary nature responses are not guaranteed and may be delayed.
If you require urgent assistance, you may like to consider our Priority Support option.
Made with by Graphene Themes.