-
AuthorPosts
-
March 28, 2019 at 3:51 pm #1084148
I have the following problem:
I copied the enfold page.php to my enfold child theme to create a new template for one of our pages.
Everything works fine except of the “advanced layerslider” item.
When I run my code the layserlider appears inside the <div class=”container”> which isn’t full width anymore and I spent hours to find a solution but can’t find one.Can sb. please tell me why the advanced layerslider isn’t full width im my 1:1 copied template for the child theme?
Did I forgot to copy any other files?If I use the “default template” everything works fine….
Here is a picture with my copied template (dropbox-link):
https://www.dropbox.com/s/s54fytrsv2eqqz2/layerslider.PNG?dl=0Here is a picture of the default template (<– what it should look like in my template // dropbox-link):
https://www.dropbox.com/s/e9im1mxa20p2dyd/layerslider_default_template.PNG?dl=0Here is a picture from the code inspection inside Google Chrome. You can see that the layerslider will be placed inside the <div class=”container”> (dropbox-link):
https://www.dropbox.com/s/uul3o0l68hnmeyy/code_structure_chrome.PNG?dl=0Please help us find a solution.
Thank you in advance
Kind regards
LucasMarch 31, 2019 at 1:19 pm #1085056Hey Lucas,
Yes, we’ll try to help with it.
Can you post your code in the child theme’s page.php file? try posting it in https://pastebin.com/ then give us a link to it then we’ll try it on our local server.Best regards,
NikkoApril 1, 2019 at 10:11 am #1085396Hi Nikko,
thank you!Here’s the link for our child-theme page.php code:
https://pastebin.com/q1xn6NN8It isn’t that much, I just added some lines to for testing. So it must be the same as the original “Default Template”, but I don’t understand if I add the advanced layerslider with the template builder why it appears inside the content-area.
Is the “page.php” the original “Default Template”, or did I touch the wrong file?
The reason why I need this is because we need to add some custom PHP and javascript for a product configurator (not in a shop). Buy I want to keep the layout as it is (org. Default Template) thats why I tried to copy the page.php and do some changes.
Thank you so much!
Kind regards,
LucasApril 2, 2019 at 4:10 am #1085803Hi Lucas,
Try to remove:
<div class='container'>
and its closing div.
page.php is the default page for pages that uses default editor but for pages that uses template-builder.php file.
Maybe you can use this hook/action instead: ava_after_content_templatebuilder_page
Hope it helps.Best regards,
NikkoApril 2, 2019 at 1:16 pm #1086062Hi Nikko,
some ways are too easy to think of …It worked, thank you!
Kind regards
LucasApril 2, 2019 at 3:44 pm #1086115Hi Lucas,
We’re glad that it helped :)
Thanks for using Enfold.
Have a great day!Best regards,
Nikko -
AuthorPosts
- The topic ‘Custom Template – Layerslider isn't full width anymore’ is closed to new replies.