-
AuthorPosts
-
October 27, 2014 at 2:53 pm #341507
Most of my sites utilise a full width Call To Action segment just above the widgets. This isn’t working out too well with Enfold because I have to manually add it on every page, and it forces me to use the ALB for sidebars (otherwise the sidebars display below the full width section). So I can’t use the parent/child page submenu styling for example.
Is there a way to define a full width section that will be displayed on all pages? The only exception would be the landing pages, so I’d need it to apply to the ‘default’ template, not for the ‘blank – no header, no footer’ template. Bonus points if I can also use it on blog posts!
October 27, 2014 at 4:23 pm #341573Hey Sandie!
Can you post a screenshot or an example and show how it should look?
Regards,
YigitOctober 27, 2014 at 5:27 pm #341608This reply has been marked as private.October 27, 2014 at 5:47 pm #341619Just noticed that the screenshot makes it look like a boxed site, I’m more interested in it working on stretched sites, though the ability to achieve this on all sites would be wonderful!
October 29, 2014 at 7:51 am #342588Hey!
You can use the
get_footer
hook, try adding this at the very end of your theme / child theme functions.php file:add_action('get_footer', 'add_cta_before_footer'); function add_cta_before_footer(){ ?> <div class="container_wrap" id="cta"> <div class="container"> <?php echo do_shortcode("[av_heading heading='Hello' tag='h3' style='blockquote modern-quote modern-centered' size='' subheading_active='' subheading_size='15' padding='10' color='' custom_font='' custom_class=''][/av_heading]"); ?> <?php echo do_shortcode("[av_button label='Click me' link='manually,http://' link_target='' size='small' position='center' icon_select='yes' icon='ue800' font='entypo-fontello' color='theme-color' custom_bg='#444444' custom_font='#ffffff' custom_class='']"); ?> </div> </div> <?php }
Adjust as needed.
Cheers!
JosueFebruary 12, 2016 at 8:31 am #582081Hi there,
Please can you describe how to adjust?
e.g.
– add a full width background image that can respond to different screensizes
– change the button position, colour, displayed text etc.
– change the ‘Hello’ textI have tried changing the text in your code from Click me to Contact Us for example – but the changes don’t show up on my site.
Thanks for your help!
February 12, 2016 at 12:38 pm #582179Hi,
Can you post the link to your website please?
Regards,
Josue -
AuthorPosts
- You must be logged in to reply to this topic.