Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #580533

    Hi,

    I’ve added social share buttons to many of my pages (please see Private Content for an example).

    I’ve also added the Yoast for SEO plugin so I can set the text I want displayed for Facebook and Twitter.

    Updates to this text do not appear to take effect. It still uses the post title for sharing the post on Facebook as well as Twitter.
    The same problem is happening with the picture too.

    Please can you tell me how I am able to fix this so that the content I enter for the plugin replaces the default text.

    Thanks

    #581487

    Hi eviang!

    Thank you for using Enfold.

    The social share section has its own sharing pattern and the plugin’s settings won’t affect it. You can use the following filter in the functions.php file:

    // modify social share args
    add_filter('avia_social_share_link_arguments', 'avia_add_social_share_link_arguments', 10, 1);
    function avia_add_social_share_link_arguments($args) {
    	$args['twitter']['pattern'] = 'https://twitter.com/share?text=[title]%20@something&url=[shortlink]';
    	return $args;
    }

    EDIT: You have to modify the text query: “?text=[title]%20@something”

    The “[title]” is the title of the current post or page, the %20 is a space and the @something is the twitter handle if you want to include it or add any other text.

    Usage examples:

    https://kriesi.at/support/topic/share-button-twitter-handle-not-showing-when-people-are-sharing/#post-578267
    https://kriesi.at/support/topic/changing-words-on-share-function/#post-481864

    Cheers!
    Ismael

    #582904

    Hi Ismael,

    That all looks a little bit technical for me.

    I think my problem is much more simple and I’m seeking further assistance with resolving it please.

    If you look in the Private Content section, I’ve listed 6 pages each of which have a Featured Image (which is the same as the ‘Facebook Image’ in the Yoast SEO plugin.

    This Featured Image is not displaying. An alternative picture is displaying instead. I wish for my Featured Image to display.

    Please advise how this is able to be corrected.

    Thanks,
    Evian

    #583869

    Hi,

    Please try running your URLs through this tool: https://developers.facebook.com/tools/debug/. That should clear cache at Facebook, unfortunately I’m not sure how to do it on Twitter.

    Best regards,
    Rikard

    #583876

    Thank you Rikard.

    I have been to this page before, but the problem remains.

    Please take a look at the Private Content. I have shared one particular page.
    You will see that Facebook recognizes as a particular ‘og:image’ that is different from the image that is shown under the section of the page that says “Based on included and inferred properties, the below preview is what users will see when they share this URL.”

    Why is this happening?

    #585313

    Hi Ismael,

    Do you know why the Twitter social share feature is not working?

    I enter the data in the Yoast plugin (see Screenshot 1), click Twitter social share (see Screenshot 2), but it is not pulling the data but rather using the default data (just the page name) (see Screenshot 3).

    Please advise how I am able to correct this?

    Thanks.

    #586607

    Hi!

    The social share section has its own sharing pattern and the plugin’s settings won’t affect it. You can use the following filter in the functions.php file:

    Like what I said in my previous post, the share section has its own sharing pattern which includes the url to the page and the post title. The settings in the yoast plugin will not affect this pattern. If you need to include the yoast info into this pattern, you will have to contact the plugin author.

    Best regards,
    Ismael

    #586768

    Ismael – Your previous advice was incredibly technical and not easy to understand.

    I am not a software engineer and do not know how to code.

    You recommended that using a filter in the functions.php file. I do not know what this means, nor did you explain how to do that.

    This is exactly the reason why I downloaded a simple to use plugin like Yoast SEO.

    Please clarify what needs to be done – whether with or without the Yoast SEO plugin – to enable me to specify the tweet I wish to be tweeted that is not simply just the page heading and URL.

    Thank you.

    #586770

    Furthermore – if I followed your recommendation, the edits to what would be tweeted would be exactly the same for each page.

    I want to have a custom tweet for each page, which is why I want to work with the Yoast SEO plugin.

    The Yoast SEO plugin should override anything in the functions.php file.

    Please advise why the Enfold theme is not compatable with the Yoast SEO plugin, and how I am able to use the default settings in the plugin to apply to the Social Share element of the Enfold page editor.

    #588021

    Hey!

    does it work for you when activating a default WordPress theme instead? please let us know about your results.

    Cheers!
    Andy

    #588097

    Hi Andy,

    Before I test that (and sorry if this is a stupid question) but is there any risk in me changing themes, even momentarily, and then reverting back to the Enfold theme and expecting everything to be exactly how it was prior to changing themes?

    Thanks.

    #589585

    Hi!

    I’m sorry but what you’re asking is custom work and is outside the scope of support. The theme’s social share section has its own sharing pattern which can’t be influenced by any other plugin but it doesn’t mean that the theme is incompatible with the yoast plugin. You’re just expecting a third party plugin option or data to automatically work with the theme’s native social sharing function. We provided you with a filter that can be use yourself or that can be forwarded to the plugin authorities in order to alter the sharing pattern. I’m sure the yoast support can help you with it. Please ask them how to fetch the info or data in the Yoast SEO social title and description.

    NOTE: Deactivating the plugin will not remove the theme options because it is saved in the database.

    Best regards,
    Ismael

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.