• Resolved lazerteeth

    (@lazerteeth)


    Im using the Lecture Lite theme and have been trying to remove the right side bar from an individual page and increase the content to 100%. Been altering the page.php and content-page.php and stylesheet but not having any joy as yet.

    very new to wordpress, im good with html & css but php not my thing as yet.

    cheers…

Viewing 3 replies - 1 through 3 (of 3 total)
  • freiberufleron

    (@freiberufleron)

    I don’t know your theme. But in many themes you can select a page/post template without the sidebar. Just go in your post page and look for template and sidebar options.

    Thread Starter lazerteeth

    (@lazerteeth)

    Thanks for the reply, this theme hasnt any custom templates to select but you can disable the sidebars which doesnt help the 100% width.

    There is lot of topics on this ie, if page id, and css display none, but no joy so far.

    my themes get sidebar is on content-page.php not page.php so this is causing confusion for me…

    Thread Starter lazerteeth

    (@lazerteeth)

    Now sorted. My problem was all the support topics are saying you should alter the page.php file to disable a side bar on an individual page.in my case it was the content-page.php which was the one to alter using

    <?php if (is_page(‘223’)) : ?>
    <?php else : ?>

    <?php get_sidebar(); ?>
    <?php endif; ?>

    Adding a new div id on the page.php and some css sorted the 100% width of the page.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove sidebar and get 100% width’ is closed to new replies.