• Resolved bguk50

    (@bguk50)


    Hi,

    Thanks for your previous suggestions which helped me better understand what the problem I’m facing may be.

    With a code snippet I was able to confirm the class name of the two categories which I want to colour the background of the post container. I was able to change the background of the posts but only in the post page itself.

    CSS in the snippet, in the theme css, or in the plugin custom CSS field has no impact on the background colour of .post-item inside the filtered array. When I added code to functions.php to reveal the category class for each post in the array, it returned the result ‘array’ for each post regardless of which category it came from.

    It appears the category information from each post is not pulled into the array with the other post information when the Filter & Grids fetches the posts.

    I’ve tried this with different post layouts with the same effect.

    So at this stage I’m out of logical options of how to get the array to know the category of each post it is displaying so that I can then style it with CSS somewhere.

    (in this situation, the nth styling won’t work because the array will return posts of different categories sorted by data descending and that will be random according to when the post has been published)

    Again, thanks for all your time and help in answering my questions. Apologies for the repeat Qs I just really like your plugin and I’d really like to see if there’s a way I can get css styling for posts according to categories inside the array, my last hurdle, before considering alternative options.

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

    (@wssoffice21)

    You can apply your custom styles to style any filter elements. There are no restrictions here. Thanks for using our plugin.

Viewing 1 replies (of 1 total)

The topic ‘Container style – Follow up’ is closed to new replies.