Mocha theme totally widgetize home page

Community Forums Forums General Discussion Mocha theme totally widgetize home page

This topic is: resolved

Tagged: 

This topic contains 30 replies, has 4 voices, and was last updated by  PinkInk 1 year, 7 months ago.

Viewing 15 posts - 16 through 30 (of 31 total)
  • Author
    Posts
  • #18834

    PinkInk
    Participant
    Post count: 23

    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

    #18835

    PinkInk
    Participant
    Post count: 23

    sorry duplicate post


    Tiff

    #18842

    Hard Boiled Greg
    Participant
    Post count: 88

    Sorry for the delay, I thought I had subscribed to this thread. Typing a reply now.


    Website: Hard Boiled Greg Twitter: @hbgreg

    #18843

    PinkInk
    Participant
    Post count: 23

    Thanks Greg, no problem, take your time!


    Tiff

    #18844

    Hard Boiled Greg
    Participant
    Post count: 88

    This 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

    [php]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’ );

    }[/php]


    Website: Hard Boiled Greg Twitter: @hbgreg

    #18845

    Hard Boiled Greg
    Participant
    Post count: 88

    Let me know if it doesn’t quite do what you want and we’ll keep tweaking it :)


    Website: Hard Boiled Greg Twitter: @hbgreg

    #18846

    PinkInk
    Participant
    Post count: 23

    Ohh 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

    #18848

    Hard Boiled Greg
    Participant
    Post count: 88

    You can remove the empty #inner div with by adding “display: none” to #inner


    Website: Hard Boiled Greg Twitter: @hbgreg

    #18849

    PinkInk
    Participant
    Post count: 23

    Oh I see why, you’re forcing the full width layout hmmm LOL


    Tiff

    #18850

    PinkInk
    Participant
    Post count: 23

    with that remove it from all pages though or just home?


    Tiff

    #18851

    Hard Boiled Greg
    Participant
    Post count: 88

    Bah, silly me. Add:

    [css].home #inner {
    display: none;
    }[/css]


    Website: Hard Boiled Greg Twitter: @hbgreg

    #18853

    PinkInk
    Participant
    Post count: 23

    LOL that removed everything on the home page (including my widgets) except the header and footer LOL!!


    Tiff

    #18854

    PinkInk
    Participant
    Post count: 23

    ohh but #home content{                   display:none;

    Worked!!!!


    Tiff

    #18855

    PinkInk
    Participant
    Post count: 23

    Sorry that’s…
    .home content{
    display:none;
    }


    Tiff

    #18856

    Hard Boiled Greg
    Participant
    Post count: 88

    Yay you! I’m glad you got it sorted out.

    Take care,

    HBG


    Website: Hard Boiled Greg Twitter: @hbgreg

Viewing 15 posts - 16 through 30 (of 31 total)

The topic ‘Mocha theme totally widgetize home page’ is closed to new replies.