WordPress.org

Ready to get started?Download WordPress

Forums

ShareThis: Share Buttons and Social Analytics
Custom chicklet images in HTML Tag option - using WP function to refer to theme? (1 post)

  1. dashaluna
    Member
    Posted 1 year ago #

    Hello,

    I've read on the main site, that it's possible to specify custom icons for the social media. In the documentation they are referred to as 'custom chicklet images'.

    So, I'm editing code in the Click to view/modify the HTML tags field in the plugin to specify my own images. I'm trying to specify img src using WP get_template_directory_uri() function. However, there is no luck.

    Here is the code:

    <span class='st_linkedin_custom' st_title='<?php the_title(); ?>' st_url='<?php the_permalink(); ?>' displayText='linkedin'>
        <img src='<?php echo get_template_directory_uri(); ?>/images/linkedin.png'>
    </span>

    the_title() function works fine, but get_template_directory_uri() doesn't... Any help would be hugely appreciated!

    Many thanks,
    Dasha

    http://wordpress.org/extend/plugins/share-this/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic