• When using custom HMTL output, I encountered a problem whereby a red underscore appeared between each image.

    This occurred because the whitespace was being underlined for some reason.

    Rather than create a new CSS class etc. I removed the style directly on the a tag.

    For reference the full loop code I used is below. This was done to enable Google Analytics click tracking.

    <p>
    {$stickers_start}<a href="{$sticker_url}" onClick="_gaq.push(['_trackEvent', 'SocialButton', 'Click', '{$sticker_name}']);" target="_blank" title="{$sticker_name}" style="text-decoration:none;">{$sticker_img_64}</a>{$stickers_end}
    </p>

    http://ww.wp.xz.cn/plugins/social-stickers/

Viewing 1 replies (of 1 total)
  • Anonymous User 9905372

    (@anonymized-9905372)

    You had red underscores because you had spaces between your links:

    <a href="http://twitter.com/SqlBrit" onclick="_gaq.push(['_trackEvent', 'SocialButton', 'Click', 'Twitter']);" target="_blank" title="Twitter"><img src="http://cdn.johnsansom.com/wp-content/plugins/social-stickers/themes/default/twitter.png" height="64" width="64"> </a>

    My code probably adds them I’ll check it out.

    Cheers.

Viewing 1 replies (of 1 total)

The topic ‘Red underscore appearing when using custom HTML’ is closed to new replies.