Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #816557

    Hello All
    I’m having problems with the Yoast SEO Premium extension in combination with the Enfold theme. The main reason I wanted to use the premium extension is that it shows a Facebook preview of a post/page which I thought would be useful for some of my clients.

    I first confirmed that it works as expected against a very simple wordpress installation (on my local PC) using theme Twenty Fifteen and only the Yoast SEO plugin and the Yoast SEO Premium plugin activated. The latter shows Facebook previews of a post or page, taking the Featured Image as the default image for the FB preview, and the first few lines of the post as the description – kinda what you’d expect. If there is no Featured Image defined for the post/page, the Yoast premium plugin locates the first image within the post if there is one. All works well so far….

    I switch to Enfold, and no image shows in the Yoast Facebook preview :o((. The Featured Image is not detected, but images within the post are. I’m wondering what is different with how Enfold treats a Featured Image? I don’t mind getting my hands dirty coding a solution if there is one, as Enfold is my goto theme for all my clients …

    If necessary, I’m happy to share my Yoast SEO premium license with you, and I can deactivate at my end so you can debug where the conflict lies. Let me know…

    Your help is greatly appreciated.

    #817199

    Hey dianado,

    Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
    You can have a look here meanwhile:
    https://kriesi.at/support/topic/seo-by-yoast-overriding-the-facebook-image-problem/

    Best regards,
    Victoria

    #817588

    Hey Victoria

    Yoast already took a look at a live site belonging to one of my clients and suggested I switch off plugins, theme etc. They were happy with the open graph side of things. Since switching off plugins, or switching the theme wasn’t practical on a live site, I installed a very simple WordPress site (using Mamp PRO on my local dev PC) with only Enfold and Yoast SEO installed. Just to recap, I activated the Yoast SEO license on my local site – all good. The plugin worked as expected with the Twenty Fifteen theme, no dice with Enfold. I got back to Yoast with the issue and they have referred it to their development team. I don’t think its a server permission issue as per the link you shared, as it works with one theme and not Enfold. Wouldn’t the problem occur across all themes if that were the case?

    I’ve given you access to a live site with the license activated. Please take care as you look around and let me know if you find anything.

    Many thanks
    Diana

    #818182

    Hi Diana,

    In the screenshot in private you can see that the image is there in html and shows for share, can you specify the pages that you want us to look at, where the issue exists.

    Best regards,
    Victoria

    #818655

    Hi Victoria
    You happened to look at one of a couple of posts I’d added an FB image to using the Yoast premium plugin ;o). I’ve listed the titles of a few posts for you to look at ( in the private content section). Basically posts earlier than the one you examined will have the preview image missing.

    Many thanks
    Diana

    #819773

    Hi,

    If you’re not seeing the correct featured image initially, ask facebook to scrape the url. Example:

    // https://developers.facebook.com/tools/debug/sharing/?q=http%3A%2F%2Fwww.crhlaw.com.au%2Felder-law%2Fmore-legal-oscars%2F

    Best regards,
    Ismael

    #819815

    Hey Ismael. I’ve used the Facebook Debug tool already to scrape images but the issue isn’t to do with how a post actually looks when it is shared to FB ;o). I’m kinda confused by the direction the answers are taking. The issue here is with a featured image not being picked up in the post editor, further down where the Yoast SEO plugin inserts it’s tabs. With the premium Yoast plugin installed, there is an extra feature available in the post editor (within Yoast’s tabs) that displays a preview of how the post would look if it is shared. With one of the ‘default’ themes like Twenty Fifteen, the Yoast FB preview picks up the post’s featured image okay. When I switch to Enfold, no preview image. Hence why I asked further up if the Enfold theme saves a post’s Featured Image in a different way say to the Twenty Fifteen theme. Yes or no would do, as that question hasn’t been answered. I feel like I’ve explained this several times… You’re normally right on-the-money with many of your answers so just a bit of background with how the Featured image is handled would help. I don’t think that looking at the dashboard is going to give any of us answers as to why the premium plugin isn’t working with Enfold.

    Many thanks
    Diana

    #819966

    Hi Diana,

    You posts are built with Default editor, it is a core WordPress functionality as is the feature image. WordPress only uses Enfolds templates to show the page in this case. I checked the posts in private. Images is picked up by the Yoast for FB for the “More legal …”, for the second post Yoast script picked up image for twitter, but not for FB, you can see in the html. And for the last post the image is there in html and is attached for share. You might want to look into Yoasts code for those scripts generating social media snippets.

    Best regards,
    Victoria

    #1007457

    Hi,

    I am having the same issue with the latest version of Yoast SEO Premium and Enfold. Did you somehow luckily resolve the issue @dianado?

    I am providing the admin console details in the private content section for the moderators to have a look at the issue for my website as well.

    Thank you for your help.

    Ege

    #1007613

    Hi,

    I fixed b adding this code to the child theme functions.php:

    
    add_filter('wpseo_twitter_image', 'avia_set_yoast_og_image', 10, 1);
    add_filter('wpseo_opengraph_image', 'avia_set_yoast_og_image', 10, 1);
    function avia_set_yoast_og_image($url)
    {	
    	if(has_post_thumbnail())
    	{
    		return get_the_post_thumbnail_url();
    	}
    
    	return $url;
    }
    
    

    Please note: In the backend (wordpress editor page) you won’t see any changes on existing posts/pages. The reason is Yoast saves the social data (facebook image, title, etc.) to a post meta and you would need to reset this data to see the changes (please ask the Yoast support how to reset the og meta data which is used in the settings panel). Also Facebook uses a cache for the shared entries. You can use this tool: https://developers.facebook.com/tools/debug/sharing to refresh the cache (click on “scrape again”) and reload the page several times, sometimes you need to click on “scrape again” two times.

    I tested the fix on this page and it works http://www.gonulturgut.com.tr/atolyelerimiz/sanat-atolyeleri/oynarken-ogrenme-atolyesi/ (in the frontend; the backend shows the old image because of the reasons I mentioned above).

    Best regards,
    Peter

    #1007741

    Hi Ege
    It was a while back now, and I ended up requesting a refund for the Yoast Premium licence as it was an issue that I could not resolve – I still use the free version of Yoast and I can make do without the social previews. Yoast acknowledged at the time that it was an issue and that they would refer it back to their development team. I didn’t hear back from them and it is a pity that it is still occurring. This would probably need the power of the team at Kriesi to pursue this.

    Sorry that I couldn’t be of more help.

    Warm regards
    Diana

    #1007791

    Hi Diana,

    Thanks for sharing your experience, much appreciated :-)

    Best regards,
    Rikard

    #1007803

    Pleasure Rikard :o). You and your colleagues do so much to help the rest of us out.

    Diana

    #1007832

    Hi Diana,

    Thanks for the kind words :-)

    Best regards,
    Rikard

    #1007851

    Hi again,

    I wrote to Yoast’s support team as well and they simply suggested me to use the Facebook object debugger if I face the same problem ever again. However, it can easily become a headache if anyone has to do this manually for all pages/posts.

    How does your modification to the child theme’s function.php help resolve this issue @Dude? Does it somehow automize the process?

    Thank you for your reply @dianado.

    Regards,

    Ege

    #1007926

    Hey!

    No – my code just forces Yoast SEO to use the featured image as facebook image if a featured image is set for the post. It does not automize the facebook debugger, etc.

    Cheers!
    Peter

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