Business People Club

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

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

Your comment

Your name to display :
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 291 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
0 comments 217 views
How to change font size on my wordpress website?

How to change font size on my wordpress website? What would be the code and Where do i need to add it?

by BunBunny
0 like 0 dislike
0 comments 267 views
How to install wordpress plugins?

If i have wordpress plugin in zip file, how can i install it on my wordpress site?

by KeyboardPie
0 like 0 dislike
0 comments 267 views
how to download wordpress themes for free?

I want free wordpress themes? Where to download them?

by GardenParrot
0 like 0 dislike
1 Comment 290 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 367 views
How to install multisite wordpress?

How to install multisite wordpress?

by Herogue
0 like 0 dislike
1 Comment 239 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 274 views
How to install wordpress?

How to install wordpress site ?

by FoolishJaguar
0 like 0 dislike
1 Comment 209 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 245 views
How to download wordpress plugins free?

Where can I download free wordpress plugins?

by GroundHurricane
0 like 0 dislike
1 Comment 561 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 324 views
Good wordpress plugin for seo

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

by LoyalChief
0 like 0 dislike
0 comments 250 views
How to protect my site from spammers?

How to protect my site from spammers?

by Conjursa
0 like 0 dislike
1 Comment 304 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 84 views
Add Years To Your Life With Whole Grains

Recent studies conclude that whole grains can boost weight loss, lower blood pressure, reduce risk of diabetes and cancer, and increase overall heart health. In addition, over 600 new products containing whole grains were introduced by food companies in 2005-a sure sign that the whole grain revolution is upon ... book's help, readers will find it easy to fit in the three servings of whole grains recommended by the 2005 U.S. Dietary Guidelines.

by HuggingDuck
0 like 0 dislike
1 Comment 340 views
0 like 0 dislike
0 comments 221 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-up funds. Perhaps you have limited time to work on your business at the start due to your current employment away from home. Maybe you'd like an Internet business that ... 7 and by automating your business to make it work for you. Start searching online today for e-book opportunities so you can reach your goals soon!

by GardenParrot
0 like 0 dislike
0 comments 80 views
How To Add Dynamically Generated Graphs And Charts To Web Pages And Applications

Not so very long ago adding a graph or chart to a web page or application required a fair amount of programming knowledge and was rather time consuming for even the most experienced. However with the tools available today it is possible for almost anyone to add graphs and charts to web ... one will always be happy to help. Contrary to popular belief good software companies answer requests for technical help in both a timely and helpful manner.

by Finderpros
0 like 0 dislike
0 comments 100 views
How to Make Visitors Add You to Their Favorites

If you want your visitors to come back again and again, you've got to get them to add your website to their favorites (also known as bookmarks in some browsers). That's the menu where they can save websites that they want to use again, clicking them easily to get to them. Being added to a user ... to give them other things too, such as local weather or a box that they can type searches into to search the whole web using a popular search engine.

by AmazingKitty
0 like 0 dislike
0 comments 94 views
How to improve your site search

Making sure that your search engine makes it as easy as possible for your customers to find what they are looking for is business-critical. It is also very difficult - good search engines can cost an awful lot of money and require a lot of ongoing effort to keep them up to ... large text (e.g. 28pt). This would help people spot any inadvertent errors.Results pages should also provide the telephone numbers for customer enquiries/assistance.

by SilkPredator
0 like 0 dislike
1 Comment 318 views
How to quickly improve my search ranking?

How to quickly improve my search ranking?

by SleepyFledgling
0 like 0 dislike
1 Comment 292 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 621 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 238 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 200 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 216 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 of the recruiting process. Up until this point, you have been able to hide behind your resume and cover letter. As the selection process starts to draw to a ... evaluating you, don't assume the interviewer knows you still want the job. Reiterate your interest and inquire about the next step in the hiring process.

by Madept
0 like 0 dislike
0 comments 215 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 constantly execute some of the top internet marketing mistakes known to the cyber world. Building a clean, workable web site can be very simple if you educate yourself ... address. It is advisable to include a separate page solely for contact information, and have a link to your e-mail address on the home page.

by GraveGrass
0 like 0 dislike
0 comments 674 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 constantly execute some of the top internet marketing mistakes known to the cyber world. Building a clean, workable web site can be very simple if you educate yourself ... address. It is advisable to include a separate page solely for contact information, and have a link to your e-mail address on the home page.

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

How to become a top blogging site?

by Oystrich
0 like 0 dislike
0 comments 233 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 personal level. People will purchase products quicker from somebody they already know and trust. 2. People will revisit your web site to participate on your discussion ... your own products and services on your discussion board or chat room. You could also join other people's affiliate programs and make commissions advertising them.

by Butcherry
0 like 0 dislike
0 comments 93 views
Having Mascots, Minglers, Entertainers At Your Next Event - How To Find & Work With Them

Planning a great party does not have to be that hard. All you really have to do is find a way to make your event great. You will find that when you get the great ideas to make your party special, you will get an over whelming response to the event and it will be a great time that is had by ... make your friends happy. You want them to talk about your event for many years to come and the best way to do that is to keep it interesting and exciting.

by MysteryWasp
0 like 0 dislike
0 comments 60 views
How To Draft An Agreement With Your CPA

Utilizing the services of a Certified Personal Accountant, more commonly referred to as a CPA is very common. There are some things you need to think about when drafting an agreement between you and your CPA. Here are the steps involved in drafting up a legal and proper agreement between you and your CPA ... not only terms you and your CPA agree to abide by, but also is a professional agreement that protects you the client as well as your CPA.

by Oystrich
0 like 0 dislike
0 comments 130 views
How to Sell With Branding

When you think of the Coca Cola brand, what comes to mind? Does an image of a red can with words Coca Cola written in white display in your mind's eye, or perhaps a coke bottle? Likewise we must pick our niche on the internet and brand our name accordingly. Be known for doing good in 1 ... name. You can register a domain name and forward it to point at your Blog. Use the domain masking feature that allows your website to have a professional look.

by Robottom
0 like 0 dislike
0 comments 58 views
How To Style Your Text With CSS

Styling text with CSS is really simple. We can define colors, underline it, make it bold, define the font etc etc. We will start with some basics. First we define the html where we will be working with. This is the text 1. Colorize your text We can select the P tag and add some styles to it ... by using the text-decoration:none; setting. You see, it's quite easy to style your text using CSS. And you can do it all in a separate stylesheet!

by TrainedGuy
0 like 0 dislike
0 comments 99 views
How To Cope With Your Home Business And Your Daily Tasks

If you're hearing the song that Bachman-Turner-Overdrive made famous in the 60s, that's exactly what I want! I'm not talking about business in a strictly financial sense, but business with the idea that whatever you're shooting for success-wise, you complete your tasks. Once you have a course ... that will make you feel better, inside and out. Takin' care of business and staying on task. Now that's the way to chart yourself to success!

by MagicalCyborg
0 like 0 dislike
0 comments 245 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 that is delivered in bulk. It has become so prevalent because it's cheap, reaches the greatest number of folks in the least amount of time, and because it's unregulated. In the U ... service. "Sign up with us, they say, and we'll add you to an antispam list." Wrong! They're spammers and you're now on their list.

by AmazingKitty
0 like 0 dislike
0 comments 273 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, news and PR online a true key strategic component and a key business differentiator for internet marketers who want to communicate effectively about their product profile ... slamming some video content up on your web pages, it more toward effective video communication through video publishing & sharing on the web.

by HairyFoal
0 like 0 dislike
0 comments 233 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 cyberspace, on the Internet and World Wide Web. In other words, many of the marketing goals that apply to doing business in the brick and mortar world are equally applicable ... an increase in revenue and an increase in profits for your online business venture. You will enjoy true online business success today and tomorrow.

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

How to automate your business with autoresponders?

by PlushSeal
0 like 0 dislike
1 Comment 335 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 302 views
0 like 0 dislike
1 Comment 328 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 364 views
how to get started with ebay?

I want to start selling on ebay?

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

How to promote relationships with public?

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

How to have lasting relationship with clients?

by Knightmare
Connect with us:
...