Education Theme Help

Community Forums Forums General Discussion Education Theme Help

This topic is: not resolved

This topic contains 2 replies, has 3 voices, and was last updated by  avhslibrary 1 year, 4 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #4331

    jbuxton61
    Participant
    Post count: 4

    I need to remove 2 items from the Education template and I cannot find anything in the forum and I cannot seem to login to the old forum.

    1. I need to eliminate the Primary Sidebar on the homepage & several internal pages

    2. I need to bypass the WordPress loop and not display any posts on the homepage.

    I have created custom pages on Studiopress sites before. The link below is the dev server.

    Many thanks
    -Jeff

    • This topic was modified 1 year, 4 months ago by  jbuxton61.
    • This topic was modified 1 year, 4 months ago by  jbuxton61.
    #4359

    John
    Participant
    Post count: 153

    Jeff,

    You can add this code to your home.php file to remove the Loop and the sidebar from your home page:

    remove_action( 'genesis_loop', 'genesis_do_loop' );
    remove_action( 'genesis_sidebar', 'genesis_do_sidebar' );

    Then you could do something similar to remove the sidebar on the other page templates, or work up a function with a conditional in your functions.php file and specify which pages it runs on.

    John

     


    John Sundberg | blackhillswebworks.com
    A WordPress developer’s toolbox: Firebug | WordPress Codex | Google ;)

    #4531

    avhslibrary
    Participant
    Post count: 18

    Hi, John–

    I used something similar to what you did to remove the sidebar:

    remove_action( ‘genesis_after_content’, ‘genesis_get_sidebar’ );

    I added it to home.php and functions.php. And it worked in making the sidebar disappear from the home, but on the other pages it has disappeared but the blank space still seems to be taken up with an “invisible” sidebar.

    EG: http://www.amadorvalleyhs.org/student-life/athletics

    Any ideas?

    Thank you,

     

    Erik

     

     

     

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

You must be logged in to reply to this topic.