Adding Widget area to page-title.php

Community Forums Forums Design Tips and Tricks Adding Widget area to page-title.php

This topic is: not resolved

Tagged: ,

This topic contains 4 replies, has 2 voices, and was last updated by  SoZo 1 year, 6 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #14775

    goddess
    Participant
    Post count: 13

    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!

    #14781

    SoZo
    Moderator
    Post count: 1573

    This is the sidebar function assuming your sidebar’s id is word-salad
    [php]
    dynamic_sidebar( ‘word-salad’ );
    [/php]

    You can replace the echo statement with that


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

    #14908

    goddess
    Participant
    Post count: 13

    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.

    #15042

    goddess
    Participant
    Post count: 13

    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.

    #15056

    SoZo
    Moderator
    Post count: 1573

    You’re welcome :)


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

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Adding Widget area to page-title.php’ is closed to new replies.