Support » Theme: Nisarg » How build a page without sidebar ?

  • jianxinshen

    (@jianxinshen)


    Hello
    The theme is awesome and thanks your work!
    Please help me how to build a page without sidebar? Is there an option to build a page without sidebar conveniently in next update?
    Thanks again!

    • This topic was modified 8 months ago by  jianxinshen.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author Falguni

    (@falgunihdesai)

    Hi,

    From page.php file in theme, comment get_sidebar()( ex. //get_sidebar() ) function or delete the line. And you will get page without sidebar.

    Falguni

    jianxinshen

    (@jianxinshen)

    Thanks for your reply.
    I want to remove sidebar in one page and other pages still have sidebar, so is it pretty complex?
    Thanks a lot.
    Jianxin

    I would suggest you create a child theme of your own based on Nisarg. Then you can create a new php file, I called mine nosidebar-page.php. This will be a copy of page.php but with the get_sidebar()( ex. //get_sidebar() line deleted. Then in your dashboard you can choose which pages have no sidebar.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How build a page without sidebar ?’ is closed to new replies.