How to hide sidebars on specific pages
-
Hello, I am looking for the specific code on how to hide the sidebars on specific pages.
So for example, if I have a page entitled ‘About Me’ and it’s page id is ’27’ what specific code would I use so that on that specific page, and only that specific page, the sidebars no longer show.
Please do not link me to codex, it is not of use to me in this situation, it does not show me how all of the things I’d like to do come together. I will learn nothing from it, I am asking for specific code because I learn by direct example. If someone is willing to do this, thank you.
Examples I’ve seen of doing this would be things such as editing page.php by adding;
<?php if (!is_page(’Page Title’)) : ?> <?php get_sidebar(); ?> <?php endif; ?>That does not work. it seems like it specifically CALLS for the sidebar, as in, it wants it active. I do not, what do I do to turn it off. What specifically is the code.
I am being adamant about it and ‘drilling’ it in because people keep responding to me with codex links, that again, are not of use when they are not in any context.
Thank you for your time.
The topic ‘How to hide sidebars on specific pages’ is closed to new replies.