This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Vantage Theme: Left hand sidebar on Categories page

Resolved 13 replies themetheme-vantage
11 years ago · Last reply by Andrew Misplon 11 years ago

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.

Need fast email support? Get SiteOrigin Premium

Replies

13
  1. Isaac F 11 years, 5 months ago

    Forgot to say:

    Many thanks!

  2. Isaac F 11 years, 5 months ago

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

  3. Andrew Misplon Staff 11 years, 5 months ago

    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. Isaac F 11 years, 5 months ago

    Hi Andrew

    Thanks for the reply!

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

    Any advice?

  5. Andrew Misplon Staff 11 years, 5 months ago

    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. Isaac F 11 years, 5 months ago

    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. Andrew Misplon Staff 11 years, 5 months ago

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

  8. Isaac F 11 years, 5 months ago

    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. Andrew Misplon Staff 11 years, 5 months ago

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

    .events-archive
  10. Isaac F 11 years, 5 months ago

    Sorted. Thanks very much!

    How do you go about finding which template to target?

  11. Andrew Misplon Staff 11 years, 5 months ago

    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. Isaac F 11 years, 5 months ago

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

    Many thanks

  13. Andrew Misplon Staff 11 years, 5 months ago

    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.

Have a different question or issue?

Start New Thread