Support » Plugin: Juiz Last Tweet Widget » Add custom archive link inside widget with hook?

  • Resolved Twansparant


    Hi there,

    Love your plugin, thanks!
    I was wundering if it’s possible to insert a custom archive link INSIDE the widget container with a hook? In your example you insert one around the widget, but I really need one inside:

    if( !function_exists('see_more_tweets_on')) {
    	function see_more_tweets_on($tweets_block) {
    		$new_content = '<a href="">'.
    		               __('See more tweets on Twitter').
    		return $new_content;
    add_filter('juiz_ltw_content', 'see_more_tweets_on');

    Is there like an juiz_ltw_content_inside equivalant for that?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Geoffrey Crofte



    No sorry there is no equivalent for the moment.
    You would like to be able to add a list item for example?
    The container is defined with ‘ul’ element, tweets inside are ‘li’ elements (by default)

    Thank you.

    Hi Geoffrey,

    No, ideally I would like a markup similar like this:

    <div class="juiz_last_tweet_inside">
    	<ul class="juiz_last_tweet_tweetlist">
    		<li class="jltw_cached_120s juiz_last_tweet_item jltw_item_first">...</li>
    		<li class="jltw_cached_120s juiz_last_tweet_item jltw_item_2">...</li>
    		<li class="jltw_cached_120s juiz_last_tweet_item jltw_item_last">...</li>
    	<div class="juiz_last_tweet_footer">
    		<a class="juiz_last_tweet_archivelink" target="_blank" href="">More Tweets</a>

    I created a workaround by putting your function directly in my template, but it would be nice to be able to achieve this with the widget and hooks only.

    Thanks, Toine

    Plugin Author Geoffrey Crofte



    Ok, thank you for this example 🙂
    You can add directly in the plugin the new hook replacing line 583 and 584 :



        apply_filters('juiz_ltw_content_inside', '')

    and use it to do what you want.
    I’ll add this hook in the next version.

    Thank you again 😉

    That would be great, thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Add custom archive link inside widget with hook?’ is closed to new replies.