WordPress.org

Ready to get started?Download WordPress

Forums

Rapid Twitter Widget
Titel turns blue because of link (4 posts)

  1. Loes001
    Member
    Posted 11 months ago #

    The widget titel that this plugin generates is a url to my twitter page, this is why the color turns blue. My other widget titles are not clickable and grey. When I hover above it it turns grey. How do I give the title the same other as the other widget titles? Thanks!

    http://wordpress.org/extend/plugins/rapid-twitter-widget/

  2. Okoth1
    Member
    Posted 11 months ago #

    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);

  3. Peter Wilson
    Member
    Plugin Author

    Posted 10 months ago #

    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.

  4. DevelopNovaNumis
    Member
    Posted 9 months ago #

    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!

Reply

You must log in to post.

About this Plugin

About this Topic