WordPress.org

Ready to get started?Download WordPress

Forums

WP-Ticker
[resolved] link wp-ticker widget title (5 posts)

  1. thehighamspark
    Member
    Posted 7 months ago #

    Hi,

    Got it working nice in a widget in my sidebar - I'd like to link the widget title to a specific url - but the widget editor removes html.

    Any suggestions?

    Thanks,

    Adrian

    http://wordpress.org/plugins/wp-ticker/

  2. sgt
    Member
    Plugin Author

    Posted 7 months ago #

    Maybe there are two ways to solve this "problem":
    1. install the plugin "Widget Title Links". With that you can specify title links for all used widgets, WP-Ticker included,

    or

    2. put the following JavaScript code in the footer.php (above the < / body> tag:

    <script type="text/javascript">
    jQuery(document).ready(function() {
    jQuery("#wp_tickerwid_fe h3").html("<a href='http://www.linktomysite.aa' target='_blank'>"+jQuery("#wp_tickerwid_fe h3").html()+"</a>");
    
    });
    </script>

    You certainly may add some other parameters to the tag e.g. id='...' , style='...', class='...' etc. to adjust the "look and feel".

  3. thehighamspark
    Member
    Posted 7 months ago #

    Thanks, I'm not having luck with either solution - you can see option 2 here in the source: http://sivanarulillam.org/donate-now/ but it doesnt seem to do anything with my site.

    The former Widget Title Links - works with the text widget & other widgets, but theres no 'title link' box added in the widget edit area for my WP Ticker.

    I'm running 3.7.1

    Thanks again,

    Adrian

  4. sgt
    Member
    Plugin Author

    Posted 7 months ago #

    Ah, ok, the reason for that is your theme.
    Just replace "#wp_tickerwid_fe h3" with "#wp_tickerwid_fe h1" because your widget titles are tagged with < h1 > (and not with < h3 >).
    That should work.

  5. sgt
    Member
    Plugin Author

    Posted 6 months ago #

    No response, seems to be resolved.

Reply

You must log in to post.

About this Plugin

About this Topic