Hi,
How come the full width layerslider is changing to fixed width when i’m using a template page instead of the default template ?
Even though i copy and paste the content of page.php into my template, still the result is the fixed width for the layerslider as it suppose to be full width – the layserslder is working fullwidth when using it inside page with default template page.
thanks for your insights
Cheers,
Chris
Hi Voilaah!
Can you please give us a link to the website? How did you add the layer slider on the template, with a shortcode?
Regards,
Ismael
HI,
sorry i m developing in local environment for now.
just take the dummy data for example, use the services pages.
and change his template by another one.
and you will see the issue
Cheers
Chris
Hey!
If you’re using the Archive template, edit template-archives.php. Find this code on line 28:
//display the actual post content
the_post();
the_content();
Cut it then move it below this code on line 12:
global $avia_config, $more;
get_header();
echo avia_title();
This should place the layer slider outside the twelve units container.
Cheers!
Ismael
i see, thanks, but i’m not using the archive template
i’m using my own template which is a copy/paste of the page.php template.
it should be ok but it is not
Regards,
Chris
Hey!
The page.php does not render the content of the advanced layout builder. That is done by template-builder.php (as long as the page is using a full width element).
Regards,
Devin
Hi,
oh i see ! thanks so much, it works pretty well.
So what i did is i created template-blue.php in my child theme with this content :
<?php
/*
Template Name: Dark blue color
*/
get_template_part( 'template-builder' );
?>