When trying to auto-add the buttons after the content, I noticed that using Yoast SEO causes them to be added within the content.
Hooking the nss_auto_add_buttons function to the_content filter later by adding a priority of 99 is enough to make it work normally.
]]>I don’t know if this plugin is still being maintained, but if so, I hope you can make a couple of small changes to allow filtering of the output URL. Everything else is pretty well thought-through, so this may just have been an oversight?
These changes are in class-naked-social-share-buttons.php
.
On line 112 (in the constructor), you set the class constant url
and allow developers access to that value via the naked-social-share/post-permalink
filter. This is great…except that you do not use $this->url
when sending the sharing output to the browser.
For all of the services, exactly the same function called when setting url
in the constructor is called without allowing it to be filtered, when the value is already there in the constant, lovely and filterable.
This happens at lines 446, 460, 488, 502, and 516. For example, at line 502:
<?php echo get_permalink( $this->post ); ?>
Should be:
<?php echo $this->url; ?>
Or better:
?php echo urlencode( $this->url ); ?>
Since you do not consistently urlencode
the URL, something essential if the filtered URL contains _GET
variables.
In my use-case, I needed to be sure that some $_GET
variables were added to the URL when sharing, and I had to modify this class to use $this->url
at the lines above in order to gain access to the aforementioned filter.
This plugin works well otherwise–thanks for your efforts in putting it together!
]]>Is it possible?
]]>Is there a shortcode I can use to manually insert Naked social share to specific content (blog/pages) only? Thank you
]]>Hi Ashley,
We’re trying to use your (awesome) plugin together with a Yoast feature that allows one to customize the share information including adding a custom image. Unless I’m missing something, it looks like your plugin doesn’t pull from the header meta tags?
ex. <meta name=”twitter:description” content=”some custom text”>
Is this an option somewhere that I’m just missing?
Thanks in advance,
J
The Google share Counter does not appear to be working.
]]>Is there a way to center the buttons to the page instead of left justified?
]]>This is just a minor thing but would it be possible to strip target="_blank"
from the Pinterest button a href
when JavaScript is disabled? So that there is no unnecessary new tab being opened (the actual Pinterest script is then loaded on the original page).
Just a suggestion! ??
]]>Really sorry for being pedantic but I’ve just realised the small naked-social-share.min.js
file is being loaded even when the Disable JavaScript
option is selected. Am I doing something wrong?
I’ve just noticed that the disable share counting option is no longer working on the webiste where I have naked social share. Is this a known issue? Thanks!
]]>Hey there,
I’m using your plugin on two websites. However on one site Facebook count returns 0 for the last two posts whereas it works on the other site.
Do you have any idea why?
It’s working here: https://mydivision.net/2016/08/the-division-sotg-aktuelle-probleme-und-statistiken/
But not here: https://mafia-daily.net/2016/08/mafia-iii-auf-der-gamescom-gameplayszenen-simulationsmodus-abschaltbare-zielhilfe-und-mehr/
Thank you!
Regards
Nils
After inserting “naked_social_share_buttons();” to my theme template file
The social buttons show up along with a couple of error messages:
Notice: Undefined property: stdClass::$count in D:\Xampp\www\wp-content\plugins\naked-social-share\class-naked-social-share-buttons.php on line 215
Notice: Undefined index: twitter_handle in D:\Xampp\www\wp-content\plugins\naked-social-share\class-naked-social-share-buttons.php on line 381
PHP Ver 5.6.8
]]>Hi,
Are there any filters to change the icons used in this plugin, I want to use the square versions of the icons to match my theme.
Also, is there any filters to include more share options such as Email?
Cheers
]]>Hello!
Twitter has removed the share count from its new button, so it’s not possible to retrieve the count via JSON anymore.
See:
https://blog.twitter.com/2015/hard-decisions-for-a-sustainable-platform
Any chance of implementing the count with a different method?
Thanks
Nils
I just posted a question about Facebook, and now I’m trying to figure out what to do about the Pinterest button.
Does Pinterest require a photo to share a blog post? I did a test and got an error message, saying something about an image URL parameter is missing.
Also, although it does display the post title, it does so twice. I would rather it show my website URL and the post title. Is there a way to do this?
Thank you! :o)
]]>I’m so glad to have found such a streamlined and tidy plugin. Someone in the StudioPress forums recommended your plugin to me this morning. I was able to easily modify it to fit my website’s design.
I do have a question, though. When I click the Facebook share icon, it only shows my website’s name and URL; it’s not showing the post title. When I coded my own icons, I ran into this same problem.
Because I’m going to include scribble drawings in my posts now and then, but not all the time, folks aren’t likely to share my post if the post title isn’t going to show up when they share it on their timeline.
Do you know how to get the post title to display? My website is here. Thank you!
]]>Hello there,
Thanks for this wonderful plugin. I really like its simplicity.
I have two questions/requests.
1) I wonder what will happen if someone is using a caching plugin? Will the numbers stay the same until the cache is flushed for each post/page or will the numbers update?
If they do stay the same, could you please add this functionality? I bet many people are using caching plugins, so always fresh share numbers (maybe by using some AJAX) would be highly appreciated.
2) Since the JS file is pretty small, could you add an option in the settings to add it inline to the page footer? Of course, you can achieve the same by disabling the JS in the settings and putting it in the footer.php by hand, but maybe this would be a handy option.
Anyway, keep up the good work and thanks for considering my thoughts.
All the best
Nils
Hi Ashley,
I’m having trouble with the Social Share feature, and I’m wondering if it’s something that you could fix and apply to the plugin directly so that other users can receive the same fix.
Currently, when you share a post that contains an ampersand (and I’m assuming any other special characters) in the title, the Share feature exports the & as an & in the suggested title in the social media feed, specifically in Twitter. You can see the issue when you try to share this article on Twitter: https://abercrombiekent.com/blog/ak-philanthropy-wheels-of-change/
If the fix can’t be applied to the plugin, do you have a recommendation for how I can fix it for myself?
Here is an example of another user that had this issue and a suggested resolution. https://stackoverflow.com/questions/20464311/ampersands-in-wordpress-titles-break-my-share-to-social-media-links (However, I was not talented enough to apply this exact fix for myself, hence reaching out to you.)
Thanks,
Kendra
]]>