Good day. Connect 2 sidebars in Wordpress. Accordingly, it is necessary that they were left and right. The question is to dynamically change the size of the central part, depending on whether one or both sidebars are selected. Here the problem is that I am very stupid. Help with advice or a useful reference.
3 answers
Help with advice or a useful reference.
Depending on how and where it connects.
Thank you, you misunderstood me a little. If I choose one sidebar in the admin area, I need the central part to occupy 75%. If 2, then 50%. And the question was how to make the necessary set of rules automatically used. I came up with this option https://kolakube.com/wordpress-layout-options/
I'm afraid that you will not have to work a lot in the template, it does not look like your rubber
As an option, find the .sideba-left class in css and assign display: none; (depending on the topic) This should remove all the left lane
You can see here
http://senka.ru/2009/12/14/dorabotka-shablona-dlia-wp-nalilnikom/
- Do not be such a read or give. "Templates", damn ... "google them" .. "into the network for a new template." And the post itself 2009 .. - SeVlad
- if sidebars are connected, then the theme is already selected, and a utopia is possible to change the topic - Anton
- Nobody talked about replacing the topic. Although it may be better. - SeVlad