• 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 slider on homepage only GSH

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 slider on homepage only GSH

This topic is: not resolved

Tagged: css, Genesis Simple Hooks, php

  • This topic has 3 replies, 2 voices, and was last updated 8 years, 12 months ago by senordeer.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • May 23, 2016 at 2:13 pm #186145
    senordeer
    Member

    Hello! I have a slider that I want to only show up on the homepage.
    URL: http://youmaybewandering.com
    Using Lifestyle Pro theme.

    I am using Genesis Simple Hooks and in the before_content_sidebar_wrap hook I have the following:

    <?php
    if(is_front_page()) { ?>
    [soliloquy id="5019"]
    <?php }
    ?>

    I have checked to execute php. The only thing, the slider does not show up on any of the other static pages or individual blog posts, but it does show up if one uses the pagination at the bottom of the homepage to scroll through older posts. These are not the homepage or front page (I also tried the above code with

    <?php
    if(is_home()) { ?>
    [soliloquy id="5019"]
    <?php }
    ?>

    and got the same result.

    I really only want this slider to appear on the homepage of the blog, no other pages. Any suggestions? Thanks!

    http://youmaybewandering.com
    May 23, 2016 at 2:50 pm #186146
    Victor Font
    Moderator

    I would use the home-top widget area or create a new widget area that goes above home-top. Run the Soliloquy widget in the new area.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    May 23, 2016 at 3:14 pm #186149
    senordeer
    Member

    Thanks Victor. I would really need to add a new widget because I need it to appear above the whole content_sidebar_wrap, not in the main content next to the sidebar, and I'm actually not using the Lifestyle pro widgetized landing page anyway the homepage is just showing the latest posts. But wouldn't I run into the same problem even if I use a widget? I'm still going to have to call where the widget will go in the php, so I would still be using the same conditionals I would assume, either is_home or is_front_page which is exactly what I am doing with GSH, so I'm wondering how that would work?

    May 24, 2016 at 6:29 am #186176
    senordeer
    Member

    Hey there, just an update, I did add a new widget area, and tried this using a Widget Context plugin that allows user to hide/display widgets, I set the widget to display only on front page, and once again, it appears on all pages navigated from the pagination, just not static pages or single posts. I can't even figure out how to hide it using CSS, it's really frustrating. It's like every page that has posts on it is read as Front Page or Home.

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 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

© 2025 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