-
▼
2011
(334)
-
▼
July
(26)
- How to Turn Off RSS Autodiscovery in an Address fo...
- How to Post Flash Files in WordPress
- How to Use My WordPress Big Cartel Plugin
- How to Hide Post Date in WordPress
- How to Get the Most From FeedBurner on Your Wordpr...
- How to Get Rid of Bulk in WordPress
- How to Unpublish a Blog Post in Wordpress
- How to Archive With Thumbnails in WordPress
- How to Create a Blank Splash Page in WordPress
- How to Change 'Leave a Reply' in WordPress
- How to Share an Unpublished Draft in WordPress
- How to Find Auto Save Drafts in Wordpress
- How to Write Code for WordPress Syntax
- How to Insert a Paragraph in WordPress
- How to Add a Graphic to a WordPress Blog Sidebar
- How to Export a Wordpress Feed to Tumblr
- How to Edit a Database Within Wordpress With an Ad...
- How to Set Up a Mirror WordPress Site
- How to Make a WordPress Post Sticky to the Top
- How to Install Multiple Wordpress Plugins Using Fi...
- How to Assign Ratings to Posts in WordPress
- How to Change the Size of the Custom Fields Box in...
- How to Use PHP Within Wordpress Posts
- How to Install Wordpress on Hostgator Using Fantas...
- How to Customize Your WordPress Blog for Beginners
- How to Activate Plugins From API on WordPress
-
▼
July
(26)
adsense
How to Make a WordPress Post Sticky to the Top
1. Navigate to your WordPress folder. Open 'WP-Content' and then 'themes.' Within that folder, find the folder named for the theme you wish to edit. Open that folder and look for 'Index.PHP' and 'Home.PHP.' If you do not have a Home.PHP file, that is OK. Open those files in a code editor like Notepad , BBEdit or jEdit.
2. Locate the main
or
tag that surrounds the entire blog post. This tag often contains a class named 'post' or something similar to that. After that tag, you should see code for the post title and then the content. Here is an example:
'>
3. Add the post_class() function to the
or
tag. You only need this code in the tag that wraps around the whole post. Here is an example of a
tag modified to include the post_class() function:
>The post_class() function generates multiple class names for every post, including the class name you need for sticky posts, 'sticky.'
4. Open the 'style.css' file for your theme, and add the following CSS code:.sticky {background-color: #f4f583;}This code gives all stickied posts a light yellow background color, but you can change the CSS code to include any styles you want. For example, you can add a thick, blue border around the posts, or you can change the color of the text.
5. Log in to the WordPress dashboard. Navigate to 'Posts.' Click a post you want to make sticky and then click the 'Edit' link next to 'Visibility' in the 'Publish' box. Tick the box next to 'Stick this post...' to set the post to sticky, and then click 'OK.' Click the blue 'Update' button to save changes.
9:42 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...
-
1. Open your WordPress Dashboard in your preferred browser. It is accessed at the '/wp-admin' location of your site. For example, ...
-
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. 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