• 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

Adding Widget area to page-title.php

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 › Adding Widget area to page-title.php

This topic is: not resolved

Tagged: minimum, widgets

  • This topic has 4 replies, 2 voices, and was last updated 12 years, 4 months ago by SoZo.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • January 25, 2013 at 3:06 pm #14775
    goddess
    Member

    Hello. I need to display a widget within in the title banner area for the minimum theme.I registered the new widget in my functions.php and it shows up fine in the WP backend.

    But I don't know how to call up the widget in the file; I want to keep the subscribe button intact. I can hack through the styling for aligning it, etc after the fact if need be, it's basically replacing the tagline or "From the Blog" in that bar.

    I've been trying different variations of this in the code:
    genesis_widget_area( 'word-salad', array( ) )

    But I don't really know what I'm doing, what syntax to use and I'm WAY not a coder. Help appreciated!

    January 25, 2013 at 3:10 pm #14781
    SoZo
    Member

    This is the sidebar function assuming your sidebar's id is word-salad

    dynamic_sidebar( 'word-salad' );
    

    You can replace the echo statement with that


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    January 25, 2013 at 6:17 pm #14908
    goddess
    Member

    Thank you for the help. I am still doing something wrong, though. I'm getting a "1" that is printing out with the widget code...you can see the area I'm working in here.

    http://moonplutoastrology.com/forums/

    I have the sidebar registered in functions like this:

    genesis_register_sidebar( array(
    'id'                => 'word-salad',
    'name'            => __( 'Word Salad', 'minimum' ),
    'description'    => __( 'Word Salad Space', 'minimum' ),
    ) );

    And this is the code section I'm experimenting with  (right at the moment, at least) in page-title.php

    elseif ( is_bbpress() ) {
    echo '<div id="page-title"><div class="wrap">' . dynamic_sidebar( 'word-salad' );
    echo '<p><a class="page-title-button" href="#" data-reveal-id="blog_subscription-3">' . __( 'Subscribe Now', 'minimum' ) . '</a></p></div></div>';
    }

    I know it's probably something basic I'm missing...and I'll also have to figure out how to drop the div from the widget output to let it live in that banner area...pointers appreciated.

    January 26, 2013 at 1:15 pm #15042
    goddess
    Member

    Thank you for your help, it got me pointed in the right direction.

    I got this solved. I was making it WAY too hard for what I actually needed! 🙂 Resolved.

    January 26, 2013 at 2:21 pm #15056
    SoZo
    Member

    You're welcome 🙂


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Adding Widget area to page-title.php’ is closed to new 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