Community Forums › Forums › Archived Forums › Design Tips and Tricks › Social Share Buttons (titles) Showing In Share Itself
Tagged: bug, scraping, share buttons, social share
- This topic has 17 replies, 4 voices, and was last updated 9 years, 4 months ago by itzsnider.
-
AuthorPosts
-
May 21, 2015 at 1:44 pm #153134itzsniderParticipant
Okay so I will do my best in explaining this one. This seems to be a "bug" of sorts with Genesis itself.
I have gone through a number of different options with share buttons. The last one I used was a "premium" one named social warfare. I had placed their buttons at the begining and end of my posts BUT when I used say the Facebook Share button, it read like this
Shares FacebookTwitterGoogle+Pinterest In case you were not aware, Nintendo has absolutely nailed it with the toy-to-life genre with their
I had reached out about this and the plugin developer said he had seen that before BUT with on Genesis themes. He rolled out a fix, but I have since moved on to numerous other options for social sharing.
Is this something that can be figured out or?
I am currently using Parallax Pro and would love to keep the share buttons where they are.
Thanks
http://www.geekdaily.coMay 21, 2015 at 2:08 pm #153136Calvin KoepkeMemberSeems like an issue with Genesis' social meta tags. The share buttons input into the entry content, which I'm assuming is what is being injected into the social share meta tags.
I agree, Genesis issue.
– Calvin Makes ( @cjkoepke )
May 21, 2015 at 2:09 pm #153137itzsniderParticipantSo I assume this is something that I cannot override with code in the plugin itself or the functions.php?
May 21, 2015 at 2:11 pm #153138Calvin KoepkeMemberNo, I don't think the Social Shares plugin messes with the Social meta tags at all.
Another cause might be if you're using an SEO plugin, like Yoast. You can usually modify the template to output something else, but it would be hard to make it dynamic and still use the first words of the entry content.
However, if you do, I think you can set a custom SEO description per post, at the bottom of the edit page.
– Calvin Makes ( @cjkoepke )
May 21, 2015 at 2:18 pm #153139itzsniderParticipantAdding a new meta description to Yoast's plugin doesn't seem to work either... okay now to try and fix this some other way!
May 21, 2015 at 2:24 pm #153140itzsniderParticipantWonder if there is a way to move the icons to AFTER the first paragraph.
May 21, 2015 at 2:41 pm #153142Calvin KoepkeMemberNope, there is no way to do that. The paragraphs are simply one function dumping out the content.
Did you create a new post and try and add a custom meta description? If you did it on the same post and tried, the social network probably already cached your previous description...
– Calvin Makes ( @cjkoepke )
May 21, 2015 at 2:43 pm #153143itzsniderParticipantI got it working, BUT I can't figure out the correct shortcode!!!
function ads_added_above_last_p($text) { if( is_single() ) : $ads_text = '<div class="a" style="text-align: center;">[PUT SHORTCODE HERE]</div>'; if($pos1 = strpos($text, '<p>', strpos($text, '<p>') + 3)){ $text1 = substr($text, 0, $pos1); $text2 = substr($text, $pos1); $text = $text1 . $ads_text . $text2; } endif; return $text; } add_filter('the_content', 'ads_added_above_last_p');
May 21, 2015 at 3:24 pm #153149Calvin KoepkeMemberI don't think the Simple Social Icons output as a shortcode. I'm not sure entirely what the function is to output, but I bet you could find it in the plugin.
– Calvin Makes ( @cjkoepke )
May 21, 2015 at 3:49 pm #153151GrahamMemberDespite what is shown on that plugin's setting page, the share buttons are added to the entry-content.
A better description of the options might read..
Beginning of content (not Before)
End of content (not After)
Beginning and End of content (not Before and After)You might want to take a look at manually repositioning the share buttons to the ( maybe ) genesis_entry_header and/or genesis_entry_footer hooks.
Ref:
http://briangardner.com/reposition-genesis-simple-share-buttons/
https://gist.github.com/srikat/787e8d8bad7ec06a40feThat's as far as I got when I explored the issue previously. Other issues with that plugin prevented me from investigating further and I am yet to settle on a satisfactory alternative.
My JustGiving page: https://www.justgiving.com/helping-graham-give
May 21, 2015 at 4:03 pm #153153Sridhar KatakamParticipantMatthew,
Can you summarize your question?
Which social sharing plugin are you using and where do you want to move its output from and to where?
May 21, 2015 at 5:29 pm #153158itzsniderParticipantI am trying out several social plugins so that isn't the issue, its Genesis as a whole adding them into the entry itself, which is incorrect. So if you place at the start of an entry it shares incorrectly and considers them part of the post.
I am now moving on to Addthis Pro to see if they allow for more customized than what I currently have.
The link to what I currently am using is on the site.
Stay tuned.
May 21, 2015 at 5:37 pm #153159GrahamMemberAh, reading the OP properly now, I see that itzsnider was referencing the social warfare plugin... as to how and where that plugin added it's sharing code. I got confused with other references in the thread to Social Shares plugin and Simple Social Icons plugin.
Without knowing the social warfare plugin, my first *guess* would be that the issue is similar, with the sharing icons being added to the beginning and end of the entry content as opposed to before and after ? Would need to see plugin code to confirm.
My JustGiving page: https://www.justgiving.com/helping-graham-give
May 21, 2015 at 5:49 pm #153161Sridhar KatakamParticipantDoes Monarch provide an option to insert the social shares using a function call or shortcode?
I had a quick glance at https://www.elegantthemes.com/plugins/monarch/documentation/ and couldn't find any.
May 21, 2015 at 5:51 pm #153162itzsniderParticipantI am not sure Sridhar honestly as this is a copy a friend gave me to test it out for a week.
I am purchasing Addthis Pro this evening, BUT it seems again that this has nothing to do with the plugins/code and everything to do with how Genesis reads it as part of the entry.
I have the code (above) to utilize a shortcode if I need to put it under the 1st paragraph, but it looks ugly is all...
Thanks all for weighing in, once I get addthis up and running I will let you know more!
May 21, 2015 at 5:56 pm #153164Sridhar KatakamParticipantI don't think this has anything to do with Genesis.
I just switched to 2015 on my test site and it does the same.
May 21, 2015 at 5:58 pm #153165itzsniderParticipantAnd I was told by a plugin developer he has only seen that on Genesis themes.
Either way that is not what I want. It should not read the names (facebook, twitter etc) of a plugin as content.
Stay tuned.
May 23, 2015 at 8:33 pm #153452itzsniderParticipantOkay so after using Monarch, I have to say their support is awful.
I am debating on asking for a refund. It's just crap.
They have a plugin that gives them a "token" to login as a admin and the dummy broken my functions.php WITHOUT first asking if he could change my code.
This is what he wanted to add to my functions.php and it doesn't seem to have helped anyway......
This is really pissing me off, why can't things work.....
function _remove_script_version( $src ){ $parts = explode( '?ver', $src ); return $parts[0]; } add_filter( 'script_loader_src', '_remove_script_version', 15, 1 ); add_filter( 'style_loader_src', '_remove_script_version', 15, 1 ); function my_meta_desc_filter( $desc ) { preg_replace( '/Shares FacebookTwitterGoogle\+Pinterest /', '', $desc); return $desc; } add_filter( 'wpseo_metadesc', 'my_meta_desc_filter' );
More to come as I have it.
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.