Hide Footer Gallery

Community Forums Forums Design Tips and Tricks Hide Footer Gallery

This topic is: resolved

This topic contains 2 replies, has 2 voices, and was last updated by  Rita 1 year, 11 months ago.

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

    Rita
    Participant
    Post count: 89

    I’m using landscape theme.

    Is it possible to hide the footer gallery from certain areas of the blog?

    I’d to use the Footer Gallery area only on the home page and static pages.

    #12296

    David Decker
    Moderator
    Post count: 95

    Yes this should be possible!

    First, backup your functions.php file from the child theme!
    Then, remove line 9-13 of that functions.php file where it says:

    // Add footer gallery
    add_action( 'genesis_before_footer', 'landscape_include_footer_gallery', 8 );
    function landscape_include_footer_gallery() {
    dynamic_sidebar( 'Footer Gallery' );
    }

    and replace with this piece of code:

    —> This lets the footer gallery only appear on homepage and static pages.

    I hope this works for you.


    #14530

    Rita
    Participant
    Post count: 89

    Awesome!!! Thank you David!!!

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

The topic ‘Hide Footer Gallery’ is closed to new replies.