Tagged: Education Child
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.
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.
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.
You must be logged in to reply to this topic.
Subscribe to get early access to new themes, discounts and brief updates about what's new with StudioPress!