-
▼
2011
(334)
-
▼
November
(28)
- How to Upload a Wordpress in Webmin
- How to Get Into Admin on WordPress 2.9.2
- How to Change the Order of Your WordPress Posts
- How to Edit Columns in WordPress
- How to Write CSS for a Thumbnail Image in WordPress
- How to Add a Date Stamp in WordPress
- How to Get Rid of an Author Profile on a WordPress...
- How to Insert a Custom Header Into Wordpress
- How to Auto Export My WordPress Blog to the Wall o...
- How to Replace a WordPress Feed With FeedBurner
- How to Edit the Search Bar in WordPress
- How to Rename a Website With WordPress
- How to Use a Category Template in WordPress
- How to Hide Comments in WordPress
- How to Create a WordPress Splash Page
- How to Call a Footer in WordPress
- How to Block Spiders on the WordPress Install
- How to Insert a Space into a WordPress Post
- How to Import a WordPress Blog into Facebook
- How to Link to NextGen in Wordpress
- How to Get Logged into WordPress Email
- How to Use a Thematic WordPress
- How to Change the Domain Name in WordPress
- How to Make Changes in cPanel for My WordPress Blog
- How to Use WordPress With Go Daddy
- How to Remove an Image From a WordPress Photo Gallery
- How to Replace WordPress Header Images
- How to Import WordPress XML Duplicates
-
▼
November
(28)
adsense
How to Edit the Search Bar in WordPress
1. Log into your WordPress dashboard and then navigate to 'Appearance' in the left-hand menu. Click the 'Editor' link under 'Appearance' to load the theme editing screen. Look for a file on the right-hand side called 'searchform.php' and click on its link. Create a file and name it 'searchform.php' and then upload it to your theme if it does not yet exist. The file goes in the following location:/public_html/wp-content/themes/theme-name/Replace 'theme-name' with the name of the theme you use. Sometimes 'public_html' is 'www'.
2. Edit or code the HTML for your 'searchform.php' to match your needs. This file can also include PHP code. Here is an example:
Use the
tag as shown above, including the ID, method and action to make it work correctly. You also must name your text field 's' so it can work with WordPress. Add whatever other HTML code you like, and add ID and class names to tags you need to reference in CSS code.
3. Edit the 'style.css' file using the theme editor screen or edit it on your computer and upload it onto the server under the same directory as 'searchform.php.' Use CSS code in 'style.css' to style the search form. Here is an example:#searchfield {border: 1px solid #ccc; font-style: italic;}The code puts a one-pixel wide, light gray border around the search field and makes its text italic. You can also edit the button or style other text in your 'searchform.php' file.
3:44 AM | Filed Under | 0 Comments
Comments
Popular Posts
-
1. Log in to your Weebly account. 2. Click 'Theme Editor.' 3. Click on the 'Design' tab. 4. Select 'Edit CSS/HTM...
-
1. Sign up for a publisher account at Bidvertiser. Submit basic contact information and confirm your email address to get started. 2. Lo...
-
1. Log in to your WordPress dashboard. 2. Open the 'Appearance' section on the left side of the WordPress dashboard and then cli...
-
Facebook Widget 1. Create a Facebook fan page for your blog, if you don't already have one. You will have to manually share content wi...
-
1. Open your WordPress Dashboard in your preferred browser. It is accessed at the '/wp-admin' location of your site. For example, ...
-
1. Download and install the WordPress for BlackBerry app via BlackBerry App World. Download the version that corresponds with your BlackBe...
-
1. Go to your WordPress blog's administrative control panel. 2. Click the 'Settings' button on the left-side navigation menu...
-
1. Click the 'Add Contact' button on the 'Add New Post' page. This opens the 'Add a Contact Form' page. 2. Click...
-
1. Register an account with Amazon Web Services Cloud. If you have an existing Amazon account, enter your email address in the appropriate...
-
1. Log into your WordPress.com account using your user name and password. 2. Hover your cursor over the 'My Blogs' tab at the to...
Post a Comment