Wordpress. How to highlight links to headings in different colors?

5bbd075264c58427046666.jpeg
Hello, please explain how to make links to headings on this website plopolki.info/us
March 12th 20 at 08:02
2 answers
March 12th 20 at 08:04
Colorful Categories
It only works, if you want to display the categories list. Or have I not understood? - Reba.Zboncak commented on March 12th 20 at 08:07
@Reba.Zboncak, 22-10-2015-20-24-18.jpg - Else commented on March 12th 20 at 08:10
Yes, but the example is not allocated - Reba.Zboncak commented on March 12th 20 at 08:13
Maybe you need through javascript somehow? - Reba.Zboncak commented on March 12th 20 at 08:16
@Reba.Zboncak, As in the example, I don't know I have this site does not open ... - Else commented on March 12th 20 at 08:19
@Reba.Zboncak, Send a screenshot, any way to see what You want to do ... - Else commented on March 12th 20 at 08:22
5bbd060d9fd33959868607.jpeg - Reba.Zboncak commented on March 12th 20 at 08:25
@Reba.Zboncak, be due to the fact by means of CSS - Else commented on March 12th 20 at 08:28
March 12th 20 at 08:06
Install Advanced Custom Fields (plugin wp) and create an additional field in it to customize the headings type field, select "color". And Yes, install from AСF PHP (Visualizer code for ACF).
So. Now just somehow get in the loop topics: Add to your tag attribute style="background: AND HERE ENTER the CODE FROM the ACF "

Roughly it should look like this:
<div class="pumpum" style="background: <?php echo get_fields('colorforrubric')?>">
The name of the column </div>


This is the most interesting and functional solution.
Could you explain more, you need some code to write in the template? - Reba.Zboncak commented on March 12th 20 at 08:09

Find more questions by tags WordPress