• 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

Search Button on Topnav

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 › Search Button on Topnav

This topic is: not resolved

Tagged: css, lifestyle, search button

  • This topic has 7 replies, 3 voices, and was last updated 10 years, 2 months ago by jholloman.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • November 27, 2012 at 2:14 am #1816
    peterlaz
    Participant

    I am using lifestyle 2.0.2

    I have added a topnav bar above the header banner.

    I would like to move the search button from the primary navigation to topnav.

    How can I do it?

    Thanks

    November 27, 2012 at 2:27 am #1817
    peterlaz
    Participant

    I added the following in the topnav.php

    <?php get_search_form(); ?>

    and now I can get the search button.

    What setting should I change  in style.css file to position it neatly on topnav?

    Thanks

    http://stpatrickkk.com

     

    November 27, 2012 at 10:06 am #1863
    peterlaz
    Participant

    I have adjusted all the relevant margins and padding but I am unable to move up the button so that it is sited in the middle.

    How can I move it up?

    Thanks

    November 27, 2012 at 10:29 am #1870
    SoZo
    Member

    There is a 5px top margin applied by .s

    I recommend installing the Firebug add on for Firefox or using Chrome's Firebug Lite which will enable you to right click on any element to inspect it and determine the associated style rules or the selectors required to create new style rules.


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

    November 27, 2012 at 11:15 am #1884
    peterlaz
    Participant

    Thanks for your assistance.

    I got it fixed.

    You may close the thread .

     

    November 27, 2012 at 12:53 pm #1903
    SoZo
    Member

    You're welcome 🙂


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

    January 27, 2013 at 2:51 pm #15399
    jholloman
    Participant

    @pete & Sozo,

    I just took a peek at your site and I am trying to do the same, add a top nav above the header.

    Would you mind sharing your code that used to get the result you wanted.

    I added a widget via the functions.php using this code:

    genesis_register_sidebar( array(
    ‘id’ => ‘topnav’,
    ‘name’ => ‘Top Nav’,
    ‘description’ => ‘This is top nav above the header.’,
    ) );

    I added the simple hooks plugin and called up the nav before the header using this code:

    </p>
    <p class="MsoNormal"><div class="topnav"></p>
    <p class="MsoNormal"><?php dynamic_sidebar( ‘topnav’ ); ?></p>
    <p class="MsoNormal"></div></p>
    <p class="MsoNormal">

    Result is I can see the spacing for the nav bar above the header, but the id (#topnav) i created inn the style sheet does not display the topnav bar as I would like.
    I'd like to know how you solved this on your site.
    James

    January 27, 2013 at 2:54 pm #15403
    jholloman
    Participant

    I was just reviewing my post and saw some funky coding.

    The code for the simple hooks plugin includes everything after the "MsoNormal" for each line.

    James

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 total)
  • The forum ‘Design Tips and Tricks’ 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

© 2023 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