Latest Posts (hompage) category on pictures

Hi. I would like to change the subtitles on pictures of posts in this widget. I would prefer put them on the bottom of pictures and in the same colors as it is in the Greatmag Featured Posts ( I pick there a colors for category). Now they are a white font on a colored background and I would prefer a colored font (according to the category) on a dark background. I hope it is possible :).
I have some more questions. Should I set up a separate topic for each question?
Thank You in advance.

I am sorry I didn’t get you. Could you please share a link to your homepage and point me to the section where your latest posts appear on? What does the title of one of which read?



Here is picture, it should make it clear.

Link to my blog: It is still under construction.


Hello Marlena,

Add this CSS code to Appearance > Customize > Additional CSS from dashboard to globally change the category box color.

a[data-color^="#"] {
  background-color: rgba(0, 0, 0, 0.8) !important;

Then do the below steps to transfer color setting to the text:

  1. Install and activate the TC Custom JavaScript plugin
  2. Go To Appearance > Custom JavaScript
  3. Paste the following code into the provided box
    ;(function($) {

      if( $('a[data-color^="#"]').length ) {
          var linkColor = $(this).attr('data-color');
          $(this).css('color', linkColor);

  1. Update

You may need to clear all applied cache as it will prevent new code addition from taking immediate effect in the front end.