Advertisement:

Author Topic: Remove sidebar from Static Pages  (Read 463 times)

buckgx

  • Newbie
  • *
  • Posts: 2
Remove sidebar from Static Pages
« on: January 11, 2018, 03:12:53 pm »
Hello, how do I remove a column from the right of the static pages and simply leave the text? I'm using the Bender Black theme.

I've already tried removing the inside-main from main.php and it did not work. I want to remove the column only on static pages ..

tito

  • issues
  • Sr. Member
  • *
  • Posts: 397
Re: Remove sidebar from Static Pages
« Reply #1 on: January 11, 2018, 04:52:40 pm »
in page.php

delete or comment:

Code: [Select]
osc_add_hook('before-main','sidebar');
    function sidebar(){
        osc_current_web_theme_path('user-sidebar.php');
    }

buckgx

  • Newbie
  • *
  • Posts: 2
Re: Remove sidebar from Static Pages
« Reply #2 on: January 12, 2018, 02:07:23 pm »
Hello, you do not have these lines. See what you have on the page.php


Quote
<?php
    // meta tag robots
    osc_add_hook('header','bender_black_nofollow_construct');

    bender_black_add_body_class('page');
    osc_current_web_theme_path('header.php') ;
?>
<h1><?php echo osc_static_page_title(); ?></h1>
<?php echo osc_static_page_text(); ?>
<?php osc_current_web_theme_path('footer.php') ; ?>