• I’m using the EvoLve Theme with 1 sidebar set in the theme settings section. For one page, that shows a calendar, I would prefer there to be no sidebar.

    Is this possible?

    To demonstrate what I’m after, I’ve done this in a different theme by creating another template but that solution didn’t work for this theme. Example site is: https://simonfyfe.no-ip.info/cnaag . Note:
    1. Homepage has sidebar.
    2. Select Events from the Category section of the sidebar and the calendar is displayed with no sidebar.

    Problem site is: https://simonfyfe.no-ip.info/wp_cnaag2/
    1. Homepage has sidebar.
    2. Select Events from the Category section of the sidebar and the calendar is displayed WITH a sidebar underneath.

    Any ideas gratefully received!

Viewing 8 replies - 1 through 8 (of 8 total)
  • In the template files you will probably see something like this, which adds the sidebar to your pages:

    <?php get_sidebar(); ?>

    Add a conditional, like this:

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

    Swap the X for your page number.

    in addition to excluding the ‘get_sidebar()’ on the problem page:

    you can use a style like this to push the content to full width:

    .home.blog #primary { width: 100%; }

    .home.blog would need to be replaced with the unique body class of the problem page

    (added at the end of style.css)

    Thread Starter sfyfe

    (@sfyfe)

    EvoLve only used the get-sidebar call in the header and the footer. For the main template it uses:

    <?php $options = get_option('evolve');

    I’m surprised such a good theme doesn’t allow you to have different templates for different page types. It probably does and I’m looking in the wrong place, so if anyone’s done this it would be great to hear how.

    you could try and use css –

    using the specific body class of your special page(s), try to add some styles like these to style.css of your theme:

    body.home #secondary { display: none; }
    body.home #primary { width: 100%; }
    body.category-4 #secondary { display: none; }

    make backup copies of the theme files before editing

    i have wrestled with this theme for a month now, and while it’s very attractive, the code is awful. the author does not understand modular design, with GIGANTIC css and php files and the theme is insanely complex. yes it does a lot, but many simple things aren’t easy to pull off.

    sorry for the rant above roman, it’s very frustrating. your theme is doing things with javascript i can’t figure out which is breaking other plugins like ctab and jj-nextgen-jquery-cycle

    if i comment out all the script loading in evolve_scripts (functions.php) my plugins work.

    and in library/functions/functions.php i also had to comment out the following:

    // wp_deregister_script(‘jquery’);
    // wp_register_script(‘myjquery’, (“https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js&#8221;), false, ‘1.4.4’);
    // wp_enqueue_script( ‘myjquery’ );
    if ($options[‘evl_header_slider’] == “disable” || $options[‘evl_header_slider’] == “”) {} else { /*wp_enqueue_script( ‘carousel’, JS . ‘/carousel.js’ ); */}
    // wp_enqueue_script( ‘tipsy’, JS . ‘/tipsy.js’ );
    // wp_enqueue_script( ‘fields’, JS . ‘/fields.js’ );
    if ($options[‘evl_pos_button’] == “disable” || $options[‘evl_pos_button’] == “”) {} else { /*wp_enqueue_script( ‘jquery_scroll’, JS . ‘/jquery.scroll.pack.js’ ); */}
    // wp_enqueue_script( ‘supersubs’, JS . ‘/supersubs.js’ );
    // wp_enqueue_script( ‘superfish’, JS . ‘/superfish.js’ );
    // wp_enqueue_script( ‘screen_js’, JS . ‘/screen.js’ );
    // wp_enqueue_script( ‘buttons’, JS . ‘/buttons.js’ );

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘EvoLve Theme – How do you create page with no sidebar?’ is closed to new replies.