Wednesday, February 27, 2013
How to Remove a Header From Certain Posts in WordPress
1. Log into your WordPress account. Click 'Appearance,' then 'Editor.' Click 'single.php' from the long list of posts on the right side of the screen. When it appears in the central editing area, select all the code and copy it to the clipboard. Open up a text editor such as Notepad or TextWrangler, and paste the code into a new document.
2. Create a new line at the top of the file, and paste the following code into it:
3. Scroll down in the file and locate the header for the post. It will include the code '
' and will also be surrounded by 'Header' tags, such as
or
tags. Delete this line of code, including the surrounding header tags. Save the file as 'noheader.php' on your computer's hard drive.
4. Log into your FTP account, then navigate to 'wp-content,' then 'themes' and open the folder for the WordPress theme you are using. Upload notitle.php to this folder.
5. Return to your WordPress admin area. Click 'Plugins,' then 'Add New.' In the search box, type 'Single Post Template' and press 'Enter.' Find 'Single Post Template' in the search results and click 'Install Now.' Wait a few moments for the plugin to install, then click 'Activate Plugin.'
6. Click 'Posts,' then locate the post on which you want to remove the header. Click its title to enter the editing area. A new menu appears called 'Single Post Templates.' Click the drop-down menu, and select 'NoHeader' from the list. Click 'Update Post' in the top right of the screen. The header is removed from the post. Repeat this step for all the posts in which you do not wish to display the header.
adsense tips Copyright © 2011 | Template created by O Pregador | Powered by Blogger