Reposition Widget in Header

Homepage Community Forums Epik Theme Support Reposition Widget in Header

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #15185
    Mary
    Customer

      Hi,

      I added a new widget to the header of this site http://www.test.maryiannotti.com/ by using the genesis_header_right hook. Unfortunately the widget appears before the nav menu and I want the text to appear after the menu.

      I’ve looked for a solution in this forum and on the Genesis forum but can’t figure out how to do this. Can someone point me to a tutorial that explains what I need to do?

      Thanks.

      #15189
      Eric
      Customer

        Are you saying you added some code in your functions file to add this widget? Or did you add a widget into the header right widget area from the widgets page in your admin? There’s a difference between the two so that’s why I’m asking first.

        If you did add code to your functions.php or home template file, can you post the code that you used here so I can test on a local install? It probably just needs to have a priority added to the code. That’s what I’ve done with a similar issue in the past.


        I create awesome sites for awesome people! Contact me if interested – ericsanchez1585@gmail.com

        #15190
        Mary
        Customer

          Hi Eric,

          I added code to functions.php and here it is.

          //* Register Right Header Two area
          genesis_register_sidebar( array(
          ‘id’ => ‘right-header-two’,
          ‘name’ => __( ‘Right Header Two’, ‘epik’ ),
          ‘description’ => __( ‘This is a widget area that can be placed before the right header’, ‘epik’ ),
          ) );

          /**
          * Display widget content for “Right Header Two” section.
          *
          */
          add_action( ‘genesis_header_right’, ‘right_header_two’ );
          function right_header_two() {

          genesis_widget_area( ‘right-header-two’, array(
          ‘before’ => ‘<div class=”right-header-two”>’,
          ‘after’ => ‘</div>’,
          ) );
          }

          Thanks for taking a look at this!

          #15217
          Eric
          Customer

            Hmmm, for some reason the “Priority” code isn’t working like I thought it would when I tested. Now I’m not sure how we could do it.

            Question, why don’t you just add everything inside the same “Header Right” widget location so that you can control where each widget shows up? That would be the best option if you don’t find out how to move the widget areas/positions around.


            I create awesome sites for awesome people! Contact me if interested – ericsanchez1585@gmail.com

            #15227
            Mary
            Customer

              Hi Eric,

              I added everything to header right and that worked.

              Thanks.

              Mary

            Viewing 5 posts - 1 through 5 (of 5 total)
            • The topic ‘Reposition Widget in Header’ is closed to new replies.