Archived topic
Page template with header and footer for elementor
7 replies · Started by Simon on August 20, 2017
Hello
Right now my site homepage is the woocommerce shop category page. I am happy with the page.
I want to take the header and footer from the above page and add it to this page, which I made using elementor and the canvas page template. If I change to the regular template it puts everything see on the screen into a container box. What I want instead is to have exactly what you see on this page, only with the header and footer from the previous page added.
Hi Simon,
This should help: https://docs.generatepress.com/article/page-builder-container/
Let me know.
Hi there
Yes we are on the right track. Two more issues and it will be perfect.
1) I have margin / padding above and below the elementor content.
2) I have used the 'gp hooks' feature to add some an elementor template to before content section. However I want to be able to hide this section from the home page.
okay solved the condition GP Hook with this code
<?php if (is_page( 1146) ) { ?>
<?php } else { ?>
[elementor-template id="267"]
<?php } ?>
1146 being the page ID of my homepage
Just gotta remove the margins now...
You have this CSS added which is giving it padding:
.inside-article {
/*background-color:#fefef9!important;*/
-webkit-box-shadow: 0px -1px 52px -11px rgba(0,0,0,0.2);
-moz-box-shadow: 0px -1px 52px -11px rgba(0,0,0,0.2);
box-shadow: 0px -1px 52px -11px rgba(0,0,0,0.2);
padding:4em 3.6em!important;
}
Then you need this CSS:
.entry-content {
margin: 0;
}
Legend - working perfectly now
The page builder container is a good send. Could the CSS for
.entry-content {
margin: 0;
}
be added automatically when page builder container is enabled? Just a suggestion...
I'm marking this as resolved. Thanks!
We will look into this :)
Removing the margin from the entry content shouldn't be necessary as long as the title is disabled on the page using Disable Elements. If there's no title, GP will remove that margin for you.