Forums › Forums › Search & Filter Pro › Assign a color
- This topic has 10 replies, 2 voices, and was last updated 6 years, 6 months ago by
Anonymous.
-
Anonymous(Private) August 26, 2018 at 10:59 am #186494
Hi,
I would like to assign a color to <h2> and <button> on page https://tourismequestre-auvergnerhonealpes.fr/itineraires-auvergne-rhonealpes/ according to a taxonomy term “Départements”.
For example, I would like Ain display results <h2> and <button> in orange, Allier in blue, …How to do this ?
Best regards,
Karine
Anonymous(Private) August 28, 2018 at 11:49 am #186561Hi,
Thanks for your response.
I want this result : https://tourismequestre-auvergnerhonealpes.fr/images/results.jpg on my page results.php
Color of title and button according to taxonomy term “Tous les départements”Thanks,
Karine
Trevor(Private) August 28, 2018 at 12:35 pm #186565Hi, does each post only ever have one taxonomy department, and if it does, it would require custom coding of the results.php being used to output the taxonomy term in the h2 and bloc-consult div. And then use custom css to add the colors to relate to these.
Trevor(Private) August 28, 2018 at 1:40 pm #186584OK, if you now inspect the output results HTML, you will see the H2 and the bloc-consult div has class to identify the department, for example:
<h2 class="departement-itineraires-dep-ain "><a href="https://tourismequestre-auvergnerhonealpes.fr/itineraires/boucle-cormaranche-2/">Boucle Cormaranche</a></h2> <div class="bloc_consult departement-itineraires-dep-ain "> etc.
You must use these classes to change the colors as you want.
Anonymous(Private) August 28, 2018 at 1:47 pm #186588Thanks but there is a bug : https://tourismequestre-auvergnerhonealpes.fr/hebergements-auvergne-rhonealpes/
-
AuthorPosts