- 
		AuthorPosts
 - 
		
			
				
May 2nd, 2013 at 13:59 #5797
Corine
Hi,
I have installed a plugin called Category Sticky Posts. I now can set different sticky posts for different categories. The plugin automatically creates a class called .category_sticky_post. This may sound like I know what I am talking about but I don’t know much about coding. I try and copy things and hope for the best ๐ This seems to be working although I have no idea if my code matches the official rules…. Just so you know I am only a beginner…..
Anyway, I would like to make the sticky post on other pages than the home page look exactly like the one in your theme, so with the right padding and rounded corners. Only the color will be different. Could you help me with this?
Thank you so much!
Corine
May 5th, 2013 at 14:51 #5912Zed
Cryout Creations mastermindThis is all the “special” styling sticky posts get ๐
article.sticky {
background: url("images/icon-back.png") repeat scroll 0 0 transparent;
border-radius: 10px;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
padding: 10px;
}You can copy/paste this to any other class you like, eg:
.category_sticky_post {
background: #yourcolourcodehere;
border-radius: 10px;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
padding: 10px;
}If you like our creations, help us share by rating them on WordPress.org.
Please check the available documentation and search the forums before starting a topic.May 5th, 2013 at 20:44 #5930Corine
Thank you!
Both for the explaination and the solution…….
 - 
		AuthorPosts
 
The topic ‘Copy settings of sticky post to new class’ is closed to new replies.