Support » Plugin: Twitter Widget Pro » [Plugin: Twitter Widget Pro] Remove date and time AND remove links of hastags

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Aaron D. Campbell

    (@aaroncampbell)

    To not link the hashtags you’ll need some code. You can add it either to your theme’s functions.php file or to another plugin.

    function range_no_hashtag_links() {
    	$wpTwitterWidget = wpTwitterWidget::getInstance();
    	remove_filter( 'widget_twitter_content', array( $wpTwitterWidget, 'linkHashtags' ) );
    }
    add_action( 'init', 'range_no_hashtag_links' );

    To hide the date, just use CSS. It can be somewhat theme-dependent, but adding something like this to your theme’s style.css file should work:

    .widget_twitter .time-meta {
    	display: none;
    }

    Thanks alot Aaron D

    And how about those @account links? How do I remove these?

    Plugin Author Aaron D. Campbell

    (@aaroncampbell)

    Just add one more line to that code I gave you:

    function range_no_hashtag_links() {
    	$wpTwitterWidget = wpTwitterWidget::getInstance();
    	remove_filter( 'widget_twitter_content', array( $wpTwitterWidget, 'linkHashtags' ) );
    	remove_filter( 'widget_twitter_content', array( $wpTwitterWidget, 'linkTwitterUsers' ) );
    }
    add_action( 'init', 'range_no_hashtag_links' );

    Great Plugin, but little tricky to customize. How can I remove the link from the date?

    Or, how can I link the whole tweet to the post on Twitter and not just the date?

    Hi,

    I was looking for the same solution for removing the date from the line. as the customization from the widget or settings doesn’t seem to do it.
    But adding this code to the stylesheet does not solve it either.
    this is the website I’m working on:
    http://informationenergy.org/

    I would appreciate your help. Thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Twitter Widget Pro] Remove date and time AND remove links of hastags’ is closed to new replies.