• 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

Display different social share on homepage vs single post pages

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 › Display different social share on homepage vs single post pages

This topic is: not resolved
  • This topic has 2 replies, 2 voices, and was last updated 10 years, 5 months ago by Goob.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • March 10, 2016 at 6:52 pm #181178
    Goob
    Participant

    Hey everyone, I'm putting the finishing touches on my first genesis child theme and was wondering if it's possible to display one set of social sharing icons at the bottom of posts on the homepage, but a different, second set of icons at the bottom on posts on individual posts. I'm currently using the Genesis Simple Hooks plugin to enter my social share in the genesis_entry_content hook, but that obviously triggers on both the homepage and post pages, thus the social share settings are the same. I this could correctly be accomplished within the functions.php, but I haven't been able to figure it out or Google-fu my way out of this. Much thanks if anybody can help me here!

    http://stage.heyitsfree.net
    March 11, 2016 at 6:18 am #181204
    Brad Dalton
    Participant

    Use conditional tags

    For the front page use

    if ( is_front_page() )

    For single posts use

    if ( is_singular('post') )

    Tutorials for StudioPress Themes.

    March 15, 2016 at 2:34 pm #181474
    Goob
    Participant

    Hey Brad, thanks for the tip, I ended up doing just that.

  • 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