Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #943628

    Hello there,

    I’ve added tags to my posts only if I want to publish it in the color I want.

    Thank you.

    #943902

    Hey Turgay,

    I’m not sure I understand your question, could you try to explain a bit further please?

    Best regards,
    Rikard

    #943951

    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]

    #944189

    Hello there,
    Why can not I get an answer to my request for help?

    #944250

    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

    #944278

    Yiğit Hello,
    Thank you very much. The subject is closed.

    #944282

    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

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Label color change?’ is closed to new replies.