• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Show content before posts on home page only – using simple hooks

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Show content before posts on home page only – using simple hooks

This topic is: not resolved
  • This topic has 2 replies, 2 voices, and was last updated 12 years ago by lovebugs.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • May 18, 2014 at 7:58 am #105723
    lovebugs
    Participant

    I've got a next gen gallery showing above the first post on the home page. I want to keep it there, but not have it show up on any other page or single blog posts.

    The code I'm using is:
    [ngg_images gallery_ids="5" display_type="photocrati-nextgen_basic_slideshow" gallery_width="570" gallery_height="379"]

     

    I've put it in the 'before loop' section on simple hooks.

    How can I get it to only show up on the home page?

    thanks!

    http://olgasbridalboutique.com/2014site/
    May 18, 2014 at 8:45 am #105735
    Brad Dalton
    Participant

    I assume you mean the front page of your site rather than a posts page you have created using the blog page template.

    Try this:http://wpsites.net/web-design/show-content-before-posts-on-home-page-only/


    Tutorials for StudioPress Themes.

    May 18, 2014 at 10:29 am #105751
    lovebugs
    Participant

    That worked perfectly! Thanks!

    Is there a way to add a little space below this? Will a <br> or a   work in the functions file? Or would it need to be added in the css?

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble