• 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

How do I insert a short code into the header container?

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 › How do I insert a short code into the header container?

This topic is: not resolved

Tagged: genesis_seo_title, short code, site-header

  • This topic has 5 replies, 3 voices, and was last updated 9 years, 6 months ago by Rezaei.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • February 28, 2017 at 5:12 am #202158
    Rezaei
    Member

    Hi, I'm using the Atmosphere Pro child theme and have the popupally plugin that creates a subscription banner across the top of the page. When you scroll down the homepage it moves along with the scrolling.

    By default the header in Atmosphere Pro also scrolls... but I was getting some weird positioning issues where the header wouldn't sit correctly because of the banner.

    I've managed to resolve this by editing the header so it doesn't scroll, using the following CSS:

    [CSS].site-header {
        position: absolute;
    }
     [/CSS]

    Ideally, I'd like them both to still scroll. The plugin support people have advised the only way I can have them both scrolling is to use a short code to display the plugin and drop it in the header container... [embed_popupally_pro popup_id="1"] But I don't know what file I should drop it in to?

    Could I simply install the Genesis Simple Hooks plugin? If so is there a setting to add short code into the header container?

    https://arashmazinani.com
    February 28, 2017 at 9:12 am #202164
    Victor Font
    Moderator

    Genesis Simple Hooks provides access to many containers. There are checkboxes for each area to permit PHP or shortcodes to execute. The Genesis Visual Hook guide is a great resource for figuring out where to place your code: https://genesistutorials.com/visual-hook-guide/


    Regards,

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

    March 1, 2017 at 3:08 am #202227
    Rezaei
    Member

    Thanks for the link. By the looks of things it should work 🙂

    March 1, 2017 at 3:37 pm #202277
    Rezaei
    Member

    I've managed to get it working with the short code I placed into the gensis_header.

    However, for some reason it is showing after the image logo. Is there a way to specify to have the short code come first?

    March 1, 2017 at 5:30 pm #202285
    Brad Dalton
    Participant

    Try the genesis_seo_title filter in a custom function. This code will need modification as its simply an example of how to use the filter.


    Tutorials for StudioPress Themes.

    March 2, 2017 at 2:12 pm #202368
    Rezaei
    Member

    Thanks, I might have to go back to the static header and just have the banner scroll as I'm not really sure what I'm meant to be doing with that custom function snippet.

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