Business People Club

Search All Topics !

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

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

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 132 views
How to get best wordpress theme for my website?

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

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

I want to change font size in my wordpress website?

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

How to install multisite wordpress?

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

How to change font size in wordpress site?

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

How to install wordpress site ?

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

I want to change post background in my wordpress site?

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

Where can I download free wordpress plugins?

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

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

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

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

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

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

Posted by MagicalCyborg
0 like 0 dislike
0 comments 91 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!

Posted by GardenParrot
0 like 0 dislike
1 Comment 179 views
Should i offer rss feed on my website?

Should i offer rss feed on my website?

Posted by GreedyPig
0 like 0 dislike
1 Comment 114 views
How to quickly improve my search ranking?

How to quickly improve my search ranking?

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

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

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

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

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

How to optimize blog for great search engine results?

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

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

Posted by Cheatah
0 like 0 dislike
0 comments 96 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.

Posted by Madept
0 like 0 dislike
0 comments 98 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.

Posted by GraveGrass
0 like 0 dislike
0 comments 137 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.

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

How to become a top blogging site?

Posted by Oystrich
0 like 0 dislike
0 comments 118 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.

Posted by Butcherry
0 like 0 dislike
0 comments 132 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.

Posted by AmazingKitty
0 like 0 dislike
0 comments 190 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.

Posted by HairyFoal
0 like 0 dislike
0 comments 107 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.

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

How to automate your business with autoresponders?

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

How to Build a Home Business with a Minimal Investment?

Posted by Catnip
0 like 0 dislike
1 Comment 114 views
How to Open An Online Jewelry Store With Jewelry Wholesale

How to start wholesale jewelry store online?

Posted by SilentTrooper
0 like 0 dislike
1 Comment 137 views
How to Sell With Branding

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

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

I want to start selling on ebay?

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

How to promote relationships with public?

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

How to have lasting relationship with clients?

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

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

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

How to deal with accident injury claims ?

Posted by Sassassin
0 like 0 dislike
0 comments 136 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!

Posted by HairyFoal
0 like 0 dislike
0 comments 160 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.

Posted by HuggingDuck
0 like 0 dislike
0 comments 207 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!

Posted by MammothMoth
0 like 0 dislike
0 comments 580 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.

Posted by BouncyOracle
0 like 0 dislike
1 Comment 173 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?

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

How to Earn an Extra Income with Home Business Opportunities?

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

How to Create Unlimited Cash with Your Travel Business?

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

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

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

How to Build Your Home Business with Networking?

Posted by GreedyPig
0 like 0 dislike
1 Comment 86 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 ?

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

How to Build a Home Business with a Minimal Investment?

Posted by Dingopher

online business.png

Connect with us:
...