WordPress.org

Support

Support » Plugins and Hacks » Rapid Twitter Widget » Titel turns blue because of link

Titel turns blue because of link

Viewing 3 replies - 1 through 3 (of 3 total)
  • rapid-twitter-widget.php, line 146

    was
    echo "<a href='" . esc_url( "https://twitter.com/{$account}" ) . "'>" . esc_html($title) . "</a>";

    becomes
    echo esc_html($title);

    Plugin Author Peter Wilson

    @peterwilsoncc

    Other widgets can include a linked title.

    The safest way to make this change is to edit your theme to style the links the same as unlinked headings.

    Thanks Okoth1 for specifying where the proper line exists in rapid-twitter-widget.php

    A different approach is to leverage css. This can be accomplished by modifying rapid-twitter-widget.php:

    was:
    echo "<a href='" . esc_url( "https://twitter.com/{$account}" ) . "'>" . esc_html($title) . "</a>";

    becomes:
    echo "<a id='Rapid-Twitter-Custom1' href='" . esc_url( "https://twitter.com/{$account}" ) . "'>" . esc_html($title) . "</a>";

    Also modify custom.css such that the following is added (using whatever color you want):

    #Rapid-Twitter-Custom1 {
    	color: rgb(51,51,51);
    }

    Good luck!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Titel turns blue because of link’ is closed to new replies.
Skip to toolbar