Storefront – Adding a section to the homepage CSS issues
-
Hi there,
I’m trying to add a container to my homepage where I can add some static content. However I cannot seem to position the container correctly.
Please see the following images:
1: This is how it currently looks http://i66.tinypic.com/rc6drr.jpg (it’s not taking up the full width of the page and there is white space to the left of the element)
2: This is how I would like it to look http://i63.tinypic.com/34i4nqq.jpg (achieved by moving the blog-container section outside of the storefront product section container.I have used the following PHP to add this container. However, I want it to sit in its own container and not the featured products container. Is this at all possible?
function storefront_add_blog_container() { ?> <section class="blog-container"> <p>Your text here</p> </section> <?php } add_action( 'storefront_homepage_after_featured_products', 'storefront_add_blog_container' );I really would appreciate any direction, thank you!
The topic ‘Storefront – Adding a section to the homepage CSS issues’ is closed to new replies.
