• How do you remove the sidebar in the iNove theme for certain pages? I’ve tried to create a new page template, but I cannot find the <?php get_sidebar(); ?> to remove.

Viewing 15 replies - 1 through 15 (of 16 total)
  • It’s in footer.php, so you will need to be a bit creative…if you just delete it from there, then it’s gone from all posts and pages. Maybe make a separate page_footer.php file, edit it, and call that one in your template.

    Thread Starter paydroe

    (@paydroe)

    I tried what you suggested and nothing. The sidebar is gone, but the content does not expand over the entire page and I get the following message at the bottom:

    Fatal error: Call to undefined function: get_footer1() in /homepages/43/d131163460/htdocs/ColumbiaEagles/wp-content/themes/inove/pagenosidebar.php on line 40

    Well, the content won’t expand over the entire page without more customization…I just gave you the location of the sidebar and some basics to be creative. It will take some work to get everything customized the way you want have have it work in the various views.

    paydroe, the iNove theme already features pages without a sidebar…

    But I have no idea how this is accomplished. This whole theme seems to be a little “non-standard”.

    Hi, everybody.
    The feature will be added to the next version, then you can create a page without sidebar via a new template.
    The new version is coming soon…

    @mg12: Thanks for a very cool theme!

    @figaro: Agreed.

    @mg12: Well done. You’ve created a great theme.

    If the theme already has a page without the sidebar created, how hard it is to just publish that ? I really liked the theme but could not use it because i wanted the page without the sidebar. Also a header image just after the navigation menu will also help this great theme.

    Thanks mg12 !!

    sqlarticles

    (@sqlarticles)

    Hi MG12,

    Can you help me to remove the sidebar. Please check the links below.

    My blog site
    https://sql-articles.com/blogs/articles/

    Forums page:
    https://www.ads-software.com/support/topic/246600?replies=5

    if you want to completely remove the sidebar and have your page fill up the entire area edit your style.css file in the /inove/ folder and change
    #main {
    background:#FFF;
    width:605px;
    padding:5px 15px 15px;
    float:left;
    to

    #main {
    background:#FFF;
    width:900px;
    padding:5px 15px 15px;
    float:left;

    and change

    #content {
    background:#FFF url(img/sidesep.gif) right repeat-y;
    min-height:400px;
    }

    to

    #content {
    background:#FFFFFF;
    min-height:800px; (I changed this to fit my page you may need to adjust this depending on how much content you have)
    }

    hope this helps

    And if you want to do this on just certain pages? ( choose one column page and fill it up)

    Is there a way to fill up pages without the sidebar just on those specific pages?

    Is it possible to have 2 css?

    I added the 2 sections of bolded code below. I want to remove the sidebar on all pages except the home/frontpage. I put an if statement to say if it is the frontpage show the bar otherwise don’t. It doesn’t work. Am I missing something?

    Thanks,
    Marc

    /* content START */
    #content {
    background:#FFF url(img/sidesep.gif) right repeat-y;
    /* mab min-height:400px; */

    <?php
    global $post; // if outside the loop
    if (is_front_page()) { // test to see if the page is frontpage
    min-height:400px; // Leave the sidebar
    } else { // Not frontpage
    min-height:800px; // Remove the sidebar
    }
    ?>

    }
    /* content END */

    /* main START */
    #main {
    background:#FFF url(img/main_shadow.gif) top repeat-x;
    /* mab width:605px; */
    <?php
    global $post; // if outside the loop
    if (is_front_page()) { // test to see if the page is frontpage
    width:605px; // Leave the sidebar
    } else { // Not frontpage
    width:900px; // Remove the sidebar
    }
    ?>

    padding:13px 15px 15px;
    float:left;
    overflow:hidden;

    style.css most likely does not execute php code.
    look into the default theme header.php and see how it does conditional styles.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Remove sidebar in iNove Theme’ is closed to new replies.