Widget order

This topic is: resolved

This topic contains 2 replies, has 2 voices, and was last updated by  charriott4 1 year, 8 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #18707

    charriott4
    Participant
    Post count: 60

    http://ncajournal.myprowebsolutions.com/

    Im trying to add ad space above the header image,

    I’ve registered my sidebar and displayed it. Now how do I get it to show as 1st in the header. I do not want to use genesis_before.

    add_action( ‘genesis_before’, ‘child_header_top_ad’ );
    /** Loads ad in the top header */
    function child_header_top_ad() {
    echo ‘<div class=”top-header-ad”>’;
    dynamic_sidebar( ‘top-header-ad’ );
    echo ‘</div>’;
    }

    genesis_register_sidebar( array(
    ‘id’ => ‘top-header-ad’,
    ‘name’ => __( ‘Top Header Ad’, ‘news’ ),
    ‘description’ => __( ‘This is the ad in the top of the header section.’, ‘news’ ),
    ) );


    Web Designs By Chrissy | Twitter @designbychrissy

    Follow Me On Facebook

    #21028

    cehwitham
    Participant
    Post count: 396

    As this is marked as resolved did you find a solution to this problem?


    Twitter: cehwitham Web: cehwitham.com

    #21545

    charriott4
    Participant
    Post count: 60

    Yes i did, thank you


    Web Designs By Chrissy | Twitter @designbychrissy

    Follow Me On Facebook

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

The topic ‘Widget order’ is closed to new replies.