Remove Blog posts on home page eleven40Pro

Community Forums Forums Design Tips and Tricks Remove Blog posts on home page eleven40Pro

This topic is: not resolved

This topic contains 3 replies, has 2 voices, and was last updated by  Davinder Singh Kainth 4 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #111297

    genevishgraphics
    Participant
    Post count: 52

    Hi All! Quick and hopefully easy to solve question- How can I remove all the blog posts from the eleven40 Pro home page? I have added custom widgets there, but the blog posts are still being populated below them due to the home.php code.

    #111308

    Davinder Singh Kainth
    Participant
    Post count: 1295

    If you have put new widget on homwpage via code in functions.php file – then

    1. Rename home.php to any other name (renaming with disable it).
    2. Then add following code in functions.php file to remove default content

    add_action('template_redirect', 'child_conditional_actions'); 
    function child_conditional_actions() { 
    if( !is_singular() ) { 
    remove_action( 'genesis_loop', 'genesis_do_loop' );
    }}  
    

    Need website customization services or other Genesis / WordPress help ?
    Davinder @ Design Studio iGuiding Media | My Blog | Fresh Genesis Themes Collection

    #111311

    genevishgraphics
    Participant
    Post count: 52

    Thank you so much, it worked perfectly :)

    #111319

    Davinder Singh Kainth
    Participant
    Post count: 1295

    Welcome!


    Need website customization services or other Genesis / WordPress help ?
    Davinder @ Design Studio iGuiding Media | My Blog | Fresh Genesis Themes Collection

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

You must be logged in to reply to this topic.