Help removing sidebar from specific page - SmartOne theme!! (2 posts)

  1. jivedj
    Posted 5 years ago #

    So I've looked everywhere....for days...cannot for the life of me figure this one out. I need to remove the sidebar on one specific page. I've seen all the tips and tricks....create a new template and all that jazz. However all those tutorials say to copy the page.php file and remove the "get_sidebar" code.

    One problem. The theme I've chosen (SmartOne) seems to be using a custom sidebar which appears to be using a completely different code for it altogether. I've searched through all the php files in the folder and have not been able to locate the specific code that fetches the sidebar. I really like this theme so I'd rather not change it if I mustn't.

    I'm not too great at coding, can anyone help me out here? Really desparate!

  2. causasui
    Posted 4 years ago #

    <?php if (is_page('page number')) : ?>
    <?php else : ?>
    <?php get_sidebar(); ?>
    <?php endif; ?>

Topic Closed

This topic has been closed to new replies.

About this Topic