• Resolved Bikramjit

    (@bikram00)


    I’m trying to add custom CSS to my post grid via the plugin CSS editor. My post id is 318.
    I’m trying to add background-color to my grid. I’m trying to add in different ways, but no results-

    1. .post-318 .single_post {
    background-color: #efefef;
    }

    2. .post-318 {
    background-color: #efefef;
    }

    3. .single_post {
    background-color: #efefef;
    }

    4. background-color: #efefef;

    This is my first time adding CSS in a plugin. I don’t know how to do it? please help.

Viewing 1 replies (of 1 total)
  • Plugin Author PickPlugins

    (@pickplugins)

    Thanks for your post,

    All your way will not work, wrong way,

    You can target all post grid by class as follows

    .post-grid{background-color:#efefef;}

    By id for specific post grid(ex: bellow 4 is post grid id)

    #post-grid-4 {background-color:#efefef;}

    For grid items

    .post-grid .item{background-color:#efefef;}
    /*Or By ID*/
    #post-grid-4 .item{background-color:#efefef;}

    I hope this help.

    • This reply was modified 6 years, 4 months ago by PickPlugins.
    • This reply was modified 6 years, 4 months ago by PickPlugins.
Viewing 1 replies (of 1 total)
  • The topic ‘How to add CSS properly’ is closed to new replies.