• 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

Add Widget to Dynamic Page

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 › General Discussion › Add Widget to Dynamic Page

This topic is: resolved

Tagged: dynamic page conditional hook

  • This topic has 4 replies, 2 voices, and was last updated 8 years, 5 months ago by handsun.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • September 17, 2017 at 8:25 am #211585
    handsun
    Participant

    I have a page created dynamically by a plugin and need to add a widget position at genesis_before_content to it, (right now the widget is on all pages except home page, until I can get this specific condition correct.)

    The page url is http://capa-us.org/registration/?action=evregister&event_id=1
    I am using Genesis extender, there are Conditional settings, but his does not work, is_page(?action=evregister&event_id=1) and I have tried several variations, I just don't know enough to specify a dynamic page in the conditional statement.
    Can anyone help?


    Clean affordable water by Kinetico

    http://capa-us.org/registration/?action=evregister&event_id=1
    September 17, 2017 at 8:45 am #211586
    Victor Font
    Moderator

    You are using is_page() incorrectly. is_page() only accepts Page ID, title, slug, or array of such as an argument. You are using the query string. For is_page() to work in your case, use the page id: is_page('2052').


    Regards,

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

    September 17, 2017 at 9:18 am #211588
    handsun
    Participant

    Hi Victor that worked perfectly, how did you identify the page id? Thanks so much for your super fast help!! I really appreciate it!


    Clean affordable water by Kinetico

    September 17, 2017 at 9:22 am #211589
    Victor Font
    Moderator

    Since you can see the admin area, the easiest way is to use this plugin: https://wordpress.org/plugins/reveal-ids-for-wp-admin-25/

    From the front end, you can look at the classes in the page's body tag. WordPress automatically adds a class named page-id-1234 where the 1234 is the actual internal page id. One of the reasons WordPress does this is so you can create page specific CSS.


    Regards,

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

    September 17, 2017 at 9:26 am #211590
    handsun
    Participant

    Thank you Victor that was super helpful! Take care!


    Clean affordable water by Kinetico

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘General Discussion’ 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