Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1138761
    juanajaafar
    Participant

    Hi. I’ve been updating my posts to highlight certain texts. I use the same shortcode throughout all the posts:

    [highlight type=”dark”]XXX[/highlight]

    For some reason, the highlight on this post appears in green:
    http://www.juanajaafar.net/2013/02/notes-du-viet-nam-iii/

    I want it “dark” (black/dark grey) like on this post:
    http://www.juanajaafar.net/2016/08/dili-and-observations-on-resistencia/

    Is there a way for me to set this in CSS on Customize so that all highlights throughout my website are the same colour (“dark”)?

    #1139111
    Friech
    Moderator

    Hi There,

    Thanks for writing in! That can easily be corrected with the below code on your custom CSS on Customizer.

    .x-highlight {background-color: #484848 !important;}

    But, are you sure you’re applying the same shortcode? I am not seeing the dark class on those text (green highlight) as opposed to those on grey.

    Hope it helps, Cheers!

    #1139340
    juanajaafar
    Participant

    Yes, I believe I checked the post to ensure I copied the shortcode as per what was given, with “dark” in it.

    In any case, your code above works well and the post has been adjusted. Thank you!

    #1139365
    Christopher
    Moderator

    You’re welcome.

  • <script> jQuery(function($){ $("#no-reply-1138761 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>