Hello, good day to all!
Please help with the question:
The designer came up with the idea to change the home page, and this change presupposes the appearance of another column, I use the Vantage theme and it can only make one column, left or right, and I need to get two, something like this:
//sidebar/ / content//sidebar//.
What should I do for this, what are the possible options? I really don’t want to put another template, and the site owner is against editing the PHP code, what should I do, please help me.
Sorry for my English, I use Google Translate.
Hi Реактивная
Thanks for reaching out.
If it’s just for the home page you could use Page Builder by SiteOrigin to add the column you need. If you’d like an actual sidebar then this would be a small custom development task. You could use a plugin like Code Snippets to add a new widget area and output it via the
vantage_before_main_container
action hook in the header. You could use SiteOrigin CSS or CustomizeAdditional CSS to add the styling required for the new sidebar.Hi Andrew!
Thank you for your help!
Can you tell me more about the hook
Sure, the hook is here https://github.com/siteorigin/vantage/blob/develop/header.php#L44. Here is a post on using hooks https://themeshaper.com/2009/05/25/action-hooks-wordpress-child-themes/. More on creating widget areas https://codex.wordpress.org/Widgetizing_Themes.