• I would like to activate the sidebar in just limited pages. In many themes there is an option of page template in the page attributes box to the left of the edit page, however, this is not active for Alante.

    Is there a way around this for the Alante theme?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi Elumley,

    Please share the links to those pages where you want the sidebar activated. So we can offer you with a code which will hide the sidebar from the rest of your site except those pages.

    Thanks!

    Thread Starter elumley

    (@elumley)

    Hi emranemranx,

    I want to make new pages with a sidebar, so I do not have a link to those as yet. Could you send me a generic code that would work, and that I could fill in the page name as it is produced?

    Thanks,
    Emily

    Hi Emily,

    You can try adding the following code to your Admin Panel > Appearance > Customize > Additional CSS field:

    body:not(.page-id-8):not(.page-id-7):not(.page-id-11) #sidebar {
      display: none;
    }

    The pages where you don’t want to hide the sidebar, please add their page ids in the above code.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘activate/deactivate sidebar’ is closed to new replies.