Hi there, love your theme Vantage and your support, just want to say thanks and will be buying the premium version once the client gives the go-ahead.
I have used code given in previous threads about putting the sidebar on the left, with mostly complete success. However, I cannot get the sidebar on the left for category pages, and whatever I add to the code seems to break the effect across the whole site.
My question is, what do I need to add to the code below to get the sidebar on the left for category pages?
/* Left Sidebar -------------------------| */ .blog #primary, .single #primary, .archive #primary, .default #primary, .page #primary { float: right; } .blog #secondary, .single #secondary, .archive #primary, .default #secondary, .page #secondary { float: left; margin-top: 62px;} }
URL: http://www.rcvys.org.uk/wordpress/category/emotional-wellbeing-group/
Forgot to say:
Many thanks!
Still looking for a fix on this, anyone got any ideas? All the best
Hi Isaac
Thanks for the long wait.
The .archive body class should be covering the category page layout. Can you perhaps confirm which Custom CSS module/plugin you’re using. I’m not immediately seeing your Custom CSS in the page source when viewing your listed url.
Hi Andrew
Thanks for the reply!
I’m using a child theme, so no custom CSS module.
Any advice?
Ahh my bad. Check your CSS (sorry if this error is elsewhere on the thread). Check .archive #primary, you’ve got that twice, the second reference should be .archive #secondary with all the other #secondary references.
Derrrrrrp can’t believe I missed that!
Thank you very much, that’s done it. I think I’ve been looking at this code for too long!
Cheers!
Awesome, glad we got that solved! All the best.
Ah, this hasn’t fixed the problem on another page that to my knowledge used the .archive page template:
http://www.rcvys.org.uk/wordpress/events/
Just installed a plugin that shows you which template each page is using, and it says ‘default’ for the events page.
Hmm
You’d need to add a new selector to the #primary and #secondary ones you have there already.
Sorted. Thanks very much!
How do you go about finding which template to target?
Super. I inspected the page source and looked at the classes contained in the body tag, that’s what we’ve been targeting so far. I looked for a body class that appeared to be most relevant/related to the page/type of page concerned. If you don’t already use your browser’s developer tool to inspect page source code please see our Custom CSS tutorial for an intro into that: https://siteorigin.com/basics/modifying-theme-design-with-custom-css/
Thanks for the advice! I use the dev tool, but got lots of tricks like that to learn.
Many thanks
For sure. Chat soon. Cheers.