How To Add a 3rd Column
-
I would like to add a another sidebar to the right of the page. If I create another menu/widget, how do I position it to the right?
Or, if the Storefront theme doesn’t support both left and right sidebars on the page, could someone please help me with the code I will need to use to make it happen.
I really don’t want to change from Storefront to a different them and have to start all over with everything I’ve done, so I’m hoping it’s possible I can fill the space to the right side of the page. What I want to insert is probably a text widget of quotes from the various blog articles.
I’m open to all possibilities.
Thanks in advance for your assistance.
The page I need help with: [log in to see the link]
-
Hi @mallorysusan,
> Or, if the Storefront theme doesn’t support both left and right sidebars on the page, could someone please help me with the code I will need to use to make it happen.
Good question! Storefront does 2 things right now with it’s 1 sidebar:
1. It uses
get_sidebar()to load the sidebar.php template to display the Sidebar.
2. It uses an action to insert that sidebar into the theme in many different places:
https://github.com/woocommerce/storefront/search?utf8=%E2%9C%93&q=storefront_sidebar&type=If you want to add a new sidebar, what you would need to do is:
1. Register a new sidebar infunctions.php
2. Create a new sidebar template
3. Insert it into where you would need it to display
4. Update CSS to account for this new elementI found one link that has some helpful information that might be useful for you:
http://www.kavdesign.net/blog/coding/how-to-add-a-sidebar-to-storefront-woocommerce-child-theme/
The topic ‘How To Add a 3rd Column’ is closed to new replies.
