Tagged: , ,

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #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!

    #341573

    Hey Sandie!

    Can you post a screenshot or an example and show how it should look?

    Regards,
    Yigit

    #341608
    This reply has been marked as private.
    #341619

    Just 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!

    #342588

    Hey!

    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!
    Josue

    #582081

    Hi 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’ text

    I 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!

    #582179

    Hi,

    Can you post the link to your website please?

    Regards,
    Josue

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.