How do I Remove Blog, side bar, & footer from home page

Community Forums Forums General Discussion How do I Remove Blog, side bar, & footer from home page

This topic is: not resolved

This topic contains 7 replies, has 3 voices, and was last updated by  thinktaylor 1 year, 8 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #4738

    thinktaylor
    Participant

    > I am trying to remove everything blow the Orange bar from the home page. I don’t want the side bar or the blog to show.
    >
    > URL
    http://mentorsonwheels.com/

    #4753

    billerickson
    Participant
    Post count: 16

    I’d have to see your theme’s code to give a better answer, but here’s a good starting place:

    1. Does your theme have a home.php file? If not, create one and put this in it: https://gist.github.com/4270594

    2. Inside home.php, right before the genesis() line, add the following: https://gist.github.com/4270606

    That will make the homepage full width (so there’s no sidebar), and remove the blog post loop from running.

    #4765

    thinktaylor
    Participant

    This is the error I got when I did that, Billerickson:

     

    Parse error: syntax error, unexpected ‘<’ in /home/mentorso/public_html/wp-content/themes/education/home.php on line 57

    #4767

    thinktaylor
    Participant

    This is what is inside of the Educational Child Theme’s home.php

    *****************************************************

     

    <?php

    add_action( ‘genesis_meta’, ‘education_home_genesis_meta’ );
    /**
    * Add widget support for homepage. If no widgets active, display the default loop.
    *
    */
    function education_home_genesis_meta() {

    global $paged;

    if( $paged < 1 ) {
    if ( is_active_sidebar( ‘slider’ ) || is_active_sidebar( ‘intro’ ) || is_active_sidebar( ‘featured’ ) || is_active_sidebar( ‘call-to-action’ ) ) {

    add_action( ‘genesis_before_content’, ‘education_home_loop_helper’, 1 );

    }
    }

    }

    function education_home_loop_helper() {

    echo ‘<div id=”home-featured”>’;

    genesis_widget_area( ‘slider’, array(

    ‘before’ => ‘<div class=”slider widget-area”>’

    ) );

    genesis_widget_area( ‘intro’, array(

    ‘before’ => ‘<div class=”intro widget-area”><div class=”inner”>’,
    ‘after’ => ‘<div class=”clear”></div></div></div><!– end .intro –>’

    ) );

    genesis_widget_area( ‘featured’, array(

    ‘before’ => ‘<div class=”featured widget-area”><div class=”inner”>’,
    ‘after’ => ‘<div class=”clear”></div></div></div><!– end .featured –>’

    ) );

    genesis_widget_area( ‘call-to-action’, array(

    ‘before’ => ‘<div class=”call-to-action”><div class=”banner-left”></div>’,
    ‘after’ => ‘<div class=”banner-right”></div></div><!– end .call-to-action –>’

    ) );

    echo ‘</div>’;

    }
    genesis();

    #4769

    billerickson
    Participant
    Post count: 16

    Change it to this: https://gist.github.com/e96d8669be4502217e47

    (I added the two lines to the top of the file, but below the <?php )

    #4773

    thinktaylor
    Participant

    Billerickson,

    We are getting closer. Thanks, take a look at what happened now to the featured areas on the post and it took out the bolding of the intro statements.

    http://mentorsonwheels.com/

    #4793

    Brian Bourn
    Participant
    Post count: 96

    If you take a look at the source code or use an inspection tool like FireBug you can see that there are some extra quotes in some of the ids and classes starting at home-featured. Also, some of the quotes are “curly”. If you edit the file again and fix the quotes with straight ones and remove the extras it should work.

    Be sure you are using a text editor so the quotes don’t converted to curly.


    Bourn Creative | bourncreative.com | Twitter

    #4825

    thinktaylor
    Participant

    THAAAAAAAAAAAAAAAAAAANK YOU!!! I was able to get it now, Brian.

    and a BIIIIIIIIIIIIIIIGGG THANK YOU TO Billerickson. You had it nailed, I just needed to take your two lines and add it to the original code. Everything worked perfectly.

    Sweet!!

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.