Copy settings of sticky post to new class

  • Author
    Posts
  • #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

    #5912
    Zed
    Cryout Creations mastermind

    This 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.
    #5930
    Corine

    Thank you!

    Both for the explaination and the solution…….

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Copy settings of sticky post to new class’ is closed to new replies.