WordPress.org

Ready to get started?Download WordPress

Forums

how to remove sidebar from a certain page (2 posts)

  1. hsd913
    Member
    Posted 1 year ago #

    hello, is it possible to remove sidebars from certain pages, for example i have a page named store(amazon affiliate framing) and no it fits in there so i would like to make some space by removing the sidebar, any help greatly appreciated, thx

  2. alchymyth
    Forum Moderator
    Posted 1 year ago #

    possibly the most universal way would be to create a page template from a copy of page.php, and remove the 'get_sidebar()' code there; then adjust the css (possibly based in the page template specific body_class output) to stretch the content over the available space.

    http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates
    http://codex.wordpress.org/Function_Reference/body_class

    details depend on your currently used theme.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.