Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author jobinjose01

    (@jobinjose01)

    Thanks for the feedback,

    I didn’t get your suggestion in a right way.
    Can you please explain little bit more ?
    Also I think Support thread gives email notification, but it didn’t 🙁

    Hi, I’ve installed this plugin but I can’t see the social sharing options when I hover over my images. I’ve gone through the settings so I’m not sure why I can’t see it.

    Can you please help me?

    Thanks!

    PS. My site is: http://www.monikanybom.com

    Plugin Author jobinjose01

    (@jobinjose01)

    Hello mnybom,

    When I check your website the plugin Css and Js files loads properly, but on images required class is notable to find, so there is two possibilities.

    1) Your cache plugin (try to remove current cached pages)
    2) Image inserting method (is that using any other plugin to insert images to the pages?. Or in the plugin option, did you setup any width limit on plugin options ?)

    Hi, Great plugin. Would you make it possible to share the image “Caption” text (with the image) as well?

    Plugin Author jobinjose01

    (@jobinjose01)

    Hello Mending,

    If I understand correctly your requirement is something like , alter the share title with current Image “alt tag” or “title tag”
    .

    First you have to go to wwm_custom.js and unpack it , you can find the file in following path
    wp-content/plugins/wwm-social-share/js/wwm_custom.js
    The alter the following execute_wwmfun() like below.

    function execute_wwmfun(e) {
        var t = jQuery('meta[property="og:image"]').attr("content");
        var n = jQuery('meta[name="og:description"]').attr("content");
        var r = jQuery('meta[name="description"]').attr("content");
       // var i = WWWM_FilterData(jQuery('meta[name="og:title"]').attr("content")); You can comment this line This is for picking default og:title as share title
    
        if (jQuery.trim(i) == "") var s = WWWM_FilterData(jQuery("title").text());
        else var s = i;
    
    	var i = WWWM_FilterData(jQuery(e).parent().prev("img").attr("alt")); // Add this new line in this place and forcefully push to read image Alt tag or title tag based on your requirement
    
        var o = WWWM_FilterData(n);
        var u = jQuery(e).parent().prev("img").attr("src");
        var a = document.location.href;
        var f = WWWM_FilterData(r);
        var l = "";
        if (jQuery.trim(u) == "") u = t;
        if (jQuery.trim(n) == "") o = s;
        if (jQuery.trim(r) == "") r = s;
        if (jQuery(e).hasClass("wwm_facebook")) {
            wwm_fb_share(s, a, u, f, o)
        }
        if (jQuery(e).hasClass("wwm_twitter")) {
            var l = "http://twitter.com/home?status=" + escape(s) + "+" + encodeURIComponent(a);
            wwm_common_share(l)
        }
        if (jQuery(e).hasClass("wwm_gplus")) {
            var l = "https://plus.google.com/share?url=" + encodeURIComponent(a);
            wwm_common_share(l)
        }
        if (jQuery(e).hasClass("wwm_pinit")) {
            var l = "http://pinterest.com/pin/create/bookmarklet/?media=" + encodeURIComponent(u) + "&url=" + encodeURIComponent(a) + "& is_video=false&description=" + o;
            wwm_common_share(l)
        }
        if (jQuery(e).hasClass("wwm_tumblr")) {
            var l = "http://www.tumblr.com/share/photo?source=" + encodeURIComponent(u) + "&caption=" + o + "&clickthru=" + encodeURIComponent(a);
            wwm_common_share(l)
        }
        if (jQuery(e).hasClass("wwm_linked")) {
            var l = "http://www.linkedin.com/shareArticle?mini=true&url=" + encodeURIComponent(a) + "&title=" + s + "&source=" + encodeURIComponent(a);
            wwm_common_share(l)
        }
    }

    Hope its works for you! Make sure to clear the browser cache and plugin cache.

    Hi Jobin

    Not the current Image “alt tag” or “title tag” but the default WordPress image “Caption” tag/field.

    Plugin Author jobinjose01

    (@jobinjose01)

    Hello Mending,
    Its difficult bcoz each sites have different structure for their image caption. so writing a common plugin will not work that way, If you can share site url I will check structure and alter Js files for you.

    But the default WordPress image caption field is the genuin WP structure, so shouldn’t that be the one to support?

    https://www.dropbox.com/s/4jbm0zqf59otdry/Skærmbillede%202014-08-20%2018.43.22.png

    Plugin Author jobinjose01

    (@jobinjose01)

    From back end its keep same standard, the caption field is displaying on front may change based on template basically structure like some templates use the caption just below image in a “span” , some other template use like a separate box under image for the caption.

    So when we come to a plugin, for front its difficult to understand common strategies , that is why I ask your URL based on that I will recommend customization for your site.
    Hope its clear for you.

    This is URL to where you can see the plugin and caption text in action. Thanks

    Plugin Author jobinjose01

    (@jobinjose01)

    Hello Mending,

    You can try this , Form your HTML structure used the codes , first unpack the JS and replace the function execute_wwmfun(e) with following codes.

    function execute_wwmfun(e) {
        var t = jQuery('meta[property="og:image"]').attr("content");
        var n = jQuery('meta[name="og:description"]').attr("content");
        var r = jQuery('meta[name="description"]').attr("content");
       // var i = WWWM_FilterData(); You can comment this line This is for picking default og:title as share title
    
        if (jQuery.trim(i) == "") var s = WWWM_FilterData(jQuery("title").text());
        else var s = i;
    
    	var i = WWWM_FilterData(jQuery(e).parent().parent().next('span.gallery-caption').text();); // Add this new line in this place and forcefully push to read image caption based on your requirement
    
        var o = WWWM_FilterData(n);
        var u = jQuery(e).parent().prev("img").attr("src");
        var a = document.location.href;
        var f = WWWM_FilterData(r);
        var l = "";
        if (jQuery.trim(u) == "") u = t;
        if (jQuery.trim(n) == "") o = s;
        if (jQuery.trim(r) == "") r = s;
        if (jQuery(e).hasClass("wwm_facebook")) {
            wwm_fb_share(s, a, u, f, o)
        }
        if (jQuery(e).hasClass("wwm_twitter")) {
            var l = "http://twitter.com/home?status=" + escape(s) + "+" + encodeURIComponent(a);
            wwm_common_share(l)
        }
        if (jQuery(e).hasClass("wwm_gplus")) {
            var l = "https://plus.google.com/share?url=" + encodeURIComponent(a);
            wwm_common_share(l)
        }
        if (jQuery(e).hasClass("wwm_pinit")) {
            var l = "http://pinterest.com/pin/create/bookmarklet/?media=" + encodeURIComponent(u) + "&url=" + encodeURIComponent(a) + "& is_video=false&description=" + o;
            wwm_common_share(l)
        }
        if (jQuery(e).hasClass("wwm_tumblr")) {
            var l = "http://www.tumblr.com/share/photo?source=" + encodeURIComponent(u) + "&caption=" + o + "&clickthru=" + encodeURIComponent(a);
            wwm_common_share(l)
        }
        if (jQuery(e).hasClass("wwm_linked")) {
            var l = "http://www.linkedin.com/shareArticle?mini=true&url=" + encodeURIComponent(a) + "&title=" + s + "&source=" + encodeURIComponent(a);
            wwm_common_share(l)
        }
    }

    Hope its works..

    Plugin Author jobinjose01

    (@jobinjose01)

    I’m making the suggestion as Resolved.
    Please create new support thread for any suggestion.
    thanks for the feedback.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Suggestions’ is closed to new replies.