Business People Club

Search All Topics !

How to add top menu to wordpress theme with search box?

0 like 0 dislike
165 views
by HarmlessRose
How to add top menu to wordpress theme with search box?

Advertise With Us

Create and Manage Your Sponsored Content

Promote Your Products and Services

 

  • Niche Categories
  • Flat Pricing
  • Unlimited Views
  • Sell Products
  • Highlighted Sponsored Post
  • Sell Services
  • Promote Causes
  • Reply To Customer Inquiries
  • Build Backlinks
  • Promote Affiliate Links
  • Instant Notifications
  • Build Author Profile
  • Cancel Anytime
  • Get Started

Your comment

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

1 Comment

0 like 0 dislike
commented by BouncyOracle
Step-1 add to functions.php

function st_topmenu() {
 echo '<div id="topbar">';
 echo '<div class="container">';
 wp_nav_menu( array( 'container_class' => 'menu-header', 'depth' => '1', 'theme_location' => 'topmenu', 'menu_id' => 'topmenu'));
 echo '<form role="search" method="get" id="searchform" action="'.home_url( '/' ).'">';
 echo '<div><label class="screen-reader-text" for="s">Search for:</label>';
 echo '<input type="text" value="" name="s" id="s" />';
 echo '<input type="submit" id="searchsubmit" value="Search" />';
 echo '</div>';
 echo '</form>';
 echo '</div><!--/.container-->';
 echo '<div class="clear"></div>';
 echo '</div><!--/#topbar-->';
}
add_action('st_above_header','st_topmenu', 1);
register_nav_menus( array('topmenu' => __( 'Top Navigation', 'smpl' )));

Step -2 add to css

/* Top Navigation */
  
/* container element */
#topbar {
 width: 100%;
 background-color: #d5d5d5;
 margin: 0;
 border-bottom: 1px solid #f4f4f4;
}

#topbar .container {
 margin: 0 auto;
 width: 940px;
}

/* Search Form */
#topbar #searchform {
 float: right;
 margin: 5px 0 0 0;
}
 
/* link styles */
#topbar li a {
 color: #4a81d3;
 text-decoration: none;
 border-right: 1px solid #eaeaea;
 padding: 10px;
 display: block;
}
#topbar .menu-header {
 border-left: 1px solid #f4f4f4;
}
 
#topbar li a:hover {
 color: #333;
 background-color: #e5e5e5;
}
 
/* list reset */
#topbar ul,#topbar li {
 margin: 0;
 padding: 0;
 list-style: none;
}
#topbar li {
 float: left;
 line-height: 100%;
}

Step -3 add this snippt to header.php

Lastly, edit header.php and add this line:

<?php do_action('st_above_header');?>

Just before:

<div id="wrapper">

Related posts

0 like 0 dislike
1 Comment 232 views
How to get best wordpress theme for my website?

I am looking for best free wordpress theme for my website?

by VirtualAssassin
0 like 0 dislike
1 Comment 233 views
How to change font size in wordpress website?

I want to change font size in my wordpress website?

by Octopuppy
0 like 0 dislike
1 Comment 306 views
How to install multisite wordpress?

How to install multisite wordpress?

by Herogue
0 like 0 dislike
1 Comment 187 views
How to change font size in wordpress site?

How to change font size in wordpress site?

by Richard S.
0 like 0 dislike
1 Comment 198 views
How to install wordpress?

How to install wordpress site ?

by FoolishJaguar
0 like 0 dislike
1 Comment 161 views
How to change post background in wordpress?

I want to change post background in my wordpress site?

by GiftedWrecker
0 like 0 dislike
1 Comment 184 views
How to download wordpress plugins free?

Where can I download free wordpress plugins?

by GroundHurricane
0 like 0 dislike
1 Comment 506 views
How to download wordpress themes for free?

Is there any way I could download wordpress themes for free? Any tips?

by SwiftHeroine
0 like 0 dislike
1 Comment 229 views
Good wordpress plugin for seo

I have a wordpress website. Any good plugin for search engine optimization?

by LoyalChief
0 like 0 dislike
1 Comment 231 views
How to embed youtube video on my website?

I want to embed youtube video on my website. How can i do that?

by MagicalCyborg
0 like 0 dislike
0 comments 169 views
5 Ways to Make Money on the Internet with Top Quality E-books

With so many new online business opportunities available, it can be difficult to sift through the masses. Maybe you're low on start ... today for e-book opportunities so you can reach your goals soon!

by GardenParrot
0 like 0 dislike
1 Comment 289 views
0 like 0 dislike
1 Comment 257 views
How to quickly improve my search ranking?

How to quickly improve my search ranking?

by SleepyFledgling
0 like 0 dislike
1 Comment 235 views
How to increase search results?

I want to increase my site traffic by raising search engine ranking? How can i do that?

by DreamBaby
0 like 0 dislike
1 Comment 411 views
How to Find Lucrative Home Business Opportunities Using a Narrowed Search?

How to Find Lucrative Home Business Opportunities Using a Narrowed Search?

by BumblingBee
0 like 0 dislike
1 Comment 190 views
How to optimize blog for great search engine results?

How to optimize blog for great search engine results?

by Hawkward
0 like 0 dislike
1 Comment 154 views
How to get listed in search engine?

I want my site to get listed in search engines. Any help appreciated?

by Cheatah
0 like 0 dislike
0 comments 172 views
Top 10 Things People Do Wrong at Interviews, And How To Avoid Them

A face-to-face interview is the most stressful part of the job search for many individuals, but it is also a critical component ... your interest and inquire about the next step in the hiring process.

by Madept
0 like 0 dislike
0 comments 171 views
Top Internet Marketing Blunders and How to Avoid Them

Internet marketing can be a tricky business if you do not know what you are doing. That is one reason that so many marketing beginners ... and have a link to your e-mail address on the home page.

by GraveGrass
0 like 0 dislike
0 comments 208 views
Top Internet Marketing Blunders and How to Avoid Them

Internet marketing can be a tricky business if you do not know what you are doing. That is one reason that so many marketing beginners ... and have a link to your e-mail address on the home page.

by Dingopher
0 like 0 dislike
1 Comment 228 views
How to become a top blogging site?

How to become a top blogging site?

by Oystrich
0 like 0 dislike
0 comments 184 views
10 Profitable Reasons To Add A Discussion Board Or Chat Room To Your Web Site

1. You'll be able to communicate with your visitors. They'll begin to trust you and get to know you on a more ... also join other people's affiliate programs and make commissions advertising them.

by Butcherry
0 like 0 dislike
0 comments 206 views
Problems With Spam? Learn How To Treat It

The first step in your antispam campaign may well be to understand spam and how it works. Spam is usually defined as unsolicited e-mail ... ." Wrong! They're spammers and you're now on their list.

by AmazingKitty
0 like 0 dislike
0 comments 243 views
How To Effectively Market With Video On The Web

Online video publishing has indeed taken the Internet by storm in recent years, making the use of video for marketing, promotion ... video communication through video publishing & sharing on the web.

by HairyFoal
0 like 0 dislike
0 comments 178 views
How To Increase Traffic To Your Website: Increasing Sales With More Traffic

When all is said and done, the marketing principles that apply in the brick and mortar world have similar applications in ... You will enjoy true online business success today and tomorrow.

by GardenParrot
0 like 0 dislike
1 Comment 238 views
How to automate your business with autoresponders?

How to automate your business with autoresponders?

by PlushSeal
0 like 0 dislike
1 Comment 280 views
How to Build a Home Business with a Minimal Investment?

How to Build a Home Business with a Minimal Investment?

by Catnip
0 like 0 dislike
1 Comment 249 views
0 like 0 dislike
1 Comment 267 views
How to Sell With Branding

How can i sell more by branding my products and services?

by ShowDolphin
0 like 0 dislike
1 Comment 270 views
how to get started with ebay?

I want to start selling on ebay?

by FrighteningTwinkles
0 like 0 dislike
1 Comment 237 views
How to promote relationships with public?

How to promote relationships with public?

by Mosquiche
0 like 0 dislike
1 Comment 238 views
how to build strong relationship with your clients?

How to have lasting relationship with clients?

by Knightmare
0 like 0 dislike
0 comments 177 views
How To Get Massive Free Advertising With Ezines?

How does ezine work and how can i get advertise with it?

by Explorer
0 like 0 dislike
1 Comment 238 views
How to deal with accident injury claims ?

How to deal with accident injury claims ?

by Sassassin
0 like 0 dislike
0 comments 223 views
How to Grab Customers' Attention With Advertising Balloons?

Let's face it: most small- and medium-sized companies don't have huge advertising budgets. Traditional media, such as ... your business from the relatively small investment of an advertising balloon!

by HairyFoal
0 like 0 dislike
0 comments 239 views
How to Get the Word Out with Press Release Distribution?

If you have a small business, chances are that you're struggling to establish or maintain your market niche. To grow your ... press releases distributed by that service, knowing they are trustworthy.

by HuggingDuck
0 like 0 dislike
0 comments 296 views
How to Generate a Healthy Income Online with Gifting?

If you've always dreamed of earning a part-time or full-time income online from your home, gifting might be the solution. Gifting ... through gifting, the "joy of giving" becomes much more joyful!

by MammothMoth
0 like 0 dislike
0 comments 691 views
How to make money with adsense?

Make money at home, Google Adsense, is one of the most popular ways to create passive income.It shows ads that are ... revenue and all are highly keyword targeted and search engine optimized.

by BouncyOracle
0 like 0 dislike
1 Comment 335 views
How to Enhance Profits for Your Home Based Business with Affiliate Programs?

How to Enhance Profits for Your Home Based Business with Affiliate Programs?

by Explorer
0 like 0 dislike
1 Comment 361 views
How to Earn an Extra Income with Home Business Opportunities?

How to Earn an Extra Income with Home Business Opportunities?

by TwinNut
0 like 0 dislike
1 Comment 177 views
How to Create Unlimited Cash with Your Travel Business?

How to Create Unlimited Cash with Your Travel Business?

by SleepyFledgling
0 like 0 dislike
1 Comment 213 views
How to Create Long-Lasting Wealth with Simple Home Business Solutions?

How to Create Long-Lasting Wealth with Simple Home Business Solutions?

by Mosquiche
0 like 0 dislike
1 Comment 186 views
How to Build Your Home Business with Networking?

How to Build Your Home Business with Networking?

by GreedyPig
0 like 0 dislike
1 Comment 196 views
How to Build Financial Freedom with Your Own Home-Based Travel Business ?

How to Build Financial Freedom with Your Own Home-Based Travel Business ?

by BumblingBee
0 like 0 dislike
1 Comment 219 views
How to Build a Home Business with a Minimal Investment?

How to Build a Home Business with a Minimal Investment?

by Dingopher
Connect with us:
...