Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi fauxgt4,

    Currently there is no way to prevent it being output by the Widget/Shortcode. However there are still options.

    Using CSS
    You could hide it using CSS, as both the handle and date are part of the same div with the class .kmeta, so you could use something similar to this:

    .kebo-tweets .ktweet .kmeta {
        display: none;
    }


    Using PHP

    Alternatively, you could manually control the output, by collecting the Tweet data yourself and outputting it in the format/style you want, using something similar to this:

    // Fetch the Tweet data
    if ( false !== ( $tweets = kebo_twitter_get_tweets() ) ) {
    
        // Loop through each Tweet
        foreach ( $tweets as $tweet ) {
    
            echo $tweet->text;
    
            // Count a certain number of Tweets
            if ( ++$i == 5 ) break;
    
        }
    
    }

    This will also be added to the list of things we should add hooks to allow control over, so then you would be able to easily disable that particular part of the Tweet using a small piece of PHP. This will probably arrive in the next couple of weeks.

    If any of this did not make sense, or you have any more questions feel free to ask.

    Thread Starter fauxgt4

    (@fauxgt4)

    Luke,

    I appreciate the quick reply. I was sort of hoping to keep the date but not the user name, that being said, just hiding that div entirely is much easier than setting up the formatting myself with the php calls.

    Thanks so much for the help, I’ll look forward to seeing that update in a few weeks… for the time though, just hiding the whole div works great.

    -Fauxgt4

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Editing what renders in the kmeta div’ is closed to new replies.