Home Forums Weaver Xtreme Theme No Sidebars for a Specific Category – Split the Rest

Topic Resolution: Answered
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #75328
    Answered
    williamweaver
    Participant

    Split sidebars by default for archives.

    Can I go sidebar free for the category Cats?

    #75329
    User
    Moderator

    @Scrambler will need to comment.

    #75330
    User
    Moderator

    @williamweaver

    I am outside at the moment, so can’t check much, but I believe that a combination of using the appropriate Page Template and a Category selection etc  on the Weaver Xtreme Options will get you there.

    Regards!

    #75331
    scrambler
    Moderator

    Archive category pages are automatically generated so they do not have individual page settings to change the sidebar.

    One way around it would be to create that category page manually using a page with posts which will then have per page sidebar options. But that will not change the default category page, so it depends how you are accessing that page.

    May be give us more details and a link to the site and page and the scenario for accessing that category page.

    There would eventually be a possibility to use custom CSS to remove the sidebar on one specific category page. Here again, we need a link to the page to help

    #75332
    williamweaver
    Participant
    #75333
    User
    Moderator

    @williamweaver

    Unless I am missing something, that seems eminently doable with the standard manual written Xtreme Page Template options and a Category selections from the Weaver Xtreme Options.  So, one page per category item is needed.

    Then again, if you wish to just have a list of posts of given Categories, then the plugin “List Category Posts” will do that perfectly.  But again, it will require one unique page per category.

    The “no sidebars” is a stock Xtreme option as I recall.

    Hope this helps.

    Regards.

    #75335
    williamweaver
    Participant

    A page with posts is not going to work.

    The post will say: Posted in: “Cats”, so that link points to a category called Cats, not a page with posts called Cats.

    #75337
    Best Answer
    scrambler
    Moderator

    This reply has been accepted as the best answer.

    For a right and left sidebar as on the linked page, adding the CSS below to the theme Global custom CSS rule box should hide the sidebar and resize the content just of the cats page

    .category-cats #container-inside #primary-widget-area, .category-cats #container #secondary-widget-area {
    display: none;
    }
    .category-cats .l-content-ssb {
    width: 100%;
    margin-left: 0;
    }

    If the sidebar configuration changes, the CSS will be different

    There also probably ways to redirect a category page to a regular page using a plugin like below

    Simple 301 Redirects By BetterLinks – Easy Redirect Manager for WP, 404 Error Log & More – WordPress plugin | WordPress.org

    Using such a plugin, you could redirect the default WordPress category page to a Page with posts created by you displaying the same but with the per page option set to no sidebar

    #75338
    williamweaver
    Participant

    Thank-you @scrambler. I knew that you would know how to code it out. 🙂

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.