Home>Support>Vantage Theme: Left hand sidebar on Categories page

Vantage Theme: Left hand sidebar on Categories page

By Isaac F, 10 years ago. Last reply by Andrew Misplon, 10 years ago.
Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

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/

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 10 years, 10 months ago Isaac F

    Forgot to say:

    Many thanks!

  2. 10 years, 9 months ago Isaac F

    Still looking for a fix on this, anyone got any ideas? All the best

  3. 10 years, 9 months ago Andrew Misplon
    Hi, I Work Here

    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.

  4. 10 years, 9 months ago Isaac F

    Hi Andrew

    Thanks for the reply!

    I’m using a child theme, so no custom CSS module.

    Any advice?

  5. 10 years, 9 months ago Andrew Misplon
    Hi, I Work Here

    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.

  6. 10 years, 9 months ago Isaac F

    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!

  7. 10 years, 9 months ago Andrew Misplon
    Hi, I Work Here

    Awesome, glad we got that solved! All the best.

  8. 10 years, 9 months ago Isaac F

    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

  9. 10 years, 9 months ago Andrew Misplon
    Hi, I Work Here

    You’d need to add a new selector to the #primary and #secondary ones you have there already.

    .events-archive
    
  10. 10 years, 9 months ago Isaac F

    Sorted. Thanks very much!

    How do you go about finding which template to target?

  11. 10 years, 9 months ago Andrew Misplon
    Hi, I Work Here

    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/

  12. 10 years, 9 months ago Isaac F

    Thanks for the advice! I use the dev tool, but got lots of tricks like that to learn.

    Many thanks

  13. 10 years, 9 months ago Andrew Misplon
    Hi, I Work Here

    For sure. Chat soon. Cheers.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More