Hello there,
I’ve added tags to my posts only if I want to publish it in the color I want.
Thank you.
Hey Turgay,
I’m not sure I understand your question, could you try to explain a bit further please?
Best regards,
Rikard
Hello there,
I applied these codes to add labels. I want the colors of the labels to look black. This is the solution I would like to apply only to the script.
https://i.hizliresim.com/y0Xrzy.png
————————————————————————
function avs_posts_tag_cb() {
global $post;
$the_tags = get_the_tags( $post->ID );
$output = ”;
foreach($the_tags as $tag) {
$taglink = get_tag_link($tag->term_id);
$output .= ‘<span class=”post_tag”>‘.$tag->name.’ </span>’;
}
return $output;
}
add_shortcode(‘avs_posts_tag’, ‘avs_posts_tag_cb’);
———————————————–
[avs_posts_tag]
Hello there,
Why can not I get an answer to my request for help?
Hi,
Please try adding this code to the Quick CSS section under Enfold > General Styling or to your child theme’s style.css file:
span.post_tag a {
color: black;
}
Best regards,
Yigit
Yiğit Hello,
Thank you very much. The subject is closed.
Hi,
I’m glad you got this solved. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon