Community Forums › Forums › General Discussion › Mocha theme totally widgetize home page
Tagged: Mocha theme
This topic contains 30 replies, has 4 voices, and was last updated by PinkInk 3 months, 1 week ago.
-
AuthorPosts
-
February 7, 2013 at 9:00 pm #18834
I’ve gotten a little closer LOL I have added the following code.
remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' ); // Removes breadcrumbs
remove_action( 'genesis_post_title','genesis_do_post_title' ); // Removes post title
remove_action( 'genesis_post_content', 'genesis_do_post_content' ); // Removes content
remove_action( 'genesis_after_post_content', 'genesis_post_meta' );
remove_action( 'genesis_before_post_content', 'genesis_post_info' );
Which feels a little like deconstructing Lego block by block LOL I just have the content section left now
Tiff
February 7, 2013 at 9:01 pm #18835sorry duplicate post
Tiff
February 7, 2013 at 9:30 pm #18842Sorry for the delay, I thought I had subscribed to this thread. Typing a reply now.
Website: Hard Boiled Greg Twitter: @hbgreg
February 7, 2013 at 9:36 pm #18843Thanks Greg, no problem, take your time!
Tiff
February 7, 2013 at 9:39 pm #18844This should remove the sidebars and the content. I quickly tested it and it doesn’t throw up any errors, but I didn’t try it with all of your custom widget code. Feel free to remove anything from your home.php that you added to accomplish the same. Add it right after your opening php tag
add_action( 'genesis_meta', 'hbg_home_genesis_meta' ); /** * Removes content loop and forces page to full-width layout. * */ function hbg_home_genesis_meta() { remove_action( 'genesis_loop', 'genesis_do_loop' ); add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' ); }
Website: Hard Boiled Greg Twitter: @hbgreg
February 7, 2013 at 9:40 pm #18845Let me know if it doesn’t quite do what you want and we’ll keep tweaking it

Website: Hard Boiled Greg Twitter: @hbgreg
February 7, 2013 at 9:48 pm #18846Ohh Greg you are a champion! so close LOL it’s removed everything however the content sidebar wrap is still there just with nothing in it. So it’s like a full width white strip
Tiff
February 7, 2013 at 9:59 pm #18848You can remove the empty #inner div with by adding “display: none” to #inner
Website: Hard Boiled Greg Twitter: @hbgreg
February 7, 2013 at 9:59 pm #18849Oh I see why, you’re forcing the full width layout hmmm LOL
Tiff
February 7, 2013 at 10:00 pm #18850with that remove it from all pages though or just home?
Tiff
February 7, 2013 at 10:01 pm #18851February 7, 2013 at 10:04 pm #18853LOL that removed everything on the home page (including my widgets) except the header and footer LOL!!
Tiff
February 7, 2013 at 10:07 pm #18854ohh but #home content{ display:none;
Worked!!!!
Tiff
February 7, 2013 at 10:09 pm #18855Sorry that’s…
.home content{
display:none;
}
Tiff
February 7, 2013 at 10:09 pm #18856 -
AuthorPosts
The topic ‘Mocha theme totally widgetize home page’ is closed to new replies.