Support » Theme: Customizr » add color to category

  • Hi,

    I added a color picker custom field to categories, and I want to use this color as background for category name on single post. each category will have it’s own color, without the need to change css or js.

    I can change the template on my child theme to do this, but I prefer doing it with add_filter in functions.php.

    this is the part I want to change:
    https://github.com/presscustomizr/customizr/blob/dev/templates/parts/content/singular/headings/regular_post_heading.php#L15

    I want to add inline style to the span wrapping the category name,
    but I can’t find a hook to add a filter.

    I’m quite sure that I don’t want, and don’t need to write my own “czr_fn_get_property()”

    any suggestion?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘add color to category’ is closed to new replies.