Sign Up |

Sharebar & Facebook/False Description&No Thumbnail

(10 posts) (2 voices)
  1. lolcina Posted 1 year ago #

    Hy, i have a problem with the share on facebook.

    If i click on Share I don't show the thumbnail only the post title and the link and this description (or error):

    Share(function() { var s = document.createElement('SCRIPT'), s1 = document.getElementsByTagName('SCRIPT')[0]; s.type = 'text/javascript'; s.async = true; s.src = 'http://widgets.digg.com/buttons.js'; s1.parentNode.insertBefore(s, s1); })(); TweetEmail Share(function() { var s = document.create

    What can i do ? Please help me

  2. lolcina Posted 1 year ago #

    no one can help me ?

  3. Monjurul Dolon Posted 1 year ago #

    Hi,

    This is a problem with your theme or another plugin -- take a look at the page source code, the META description is a bunch of code that is being pulled by Facebook as the text being shared. Something is overriding the normal META description (possibly the theme itself) and making it into code.

    Hope that helps!
    Monji

  4. lolcina Posted 1 year ago #

    Thank you. I think this is because of the SEO Plugin.

    But I unistall it but its still the same. How can i change to the normal META descirption ?

  5. lolcina Posted 1 year ago #

    Maybe this is not right ?


    /**
    * SEO-Friendly META description, based on Thematic Framework.
    */
    function arras_document_description() {
    if ( class_exists('All_in_One_SEO_Pack') || class_exists('Platinum_SEO_Pack') ) return false;

    if ( is_single() || is_page() ) {
    if ( have_posts() ) {
    while( have_posts() ) {
    the_post();
    echo '<meta name="description" content="' . get_the_excerpt() . '" />';
    }
    }
    } else {
    echo '<meta name="description" content="' . get_bloginfo('description') . '" />';
    }
    }

  6. Monjurul Dolon Posted 1 year ago #

    Can you try changing the theme to the default WordPress Twenty-Ten theme to see if you still receive the error? That way you'll know whether it's the theme or another plugin causing the issue.

  7. lolcina Posted 1 year ago #

    that was a good idea!

    yes it`s because of the theme. what can i do now?

  8. Monjurul Dolon Posted 1 year ago #

    Try commenting out that section of code you pasted in that previous post, as it does mess with the META description.

  9. lolcina Posted 1 year ago #

    i tried and i get this error:

    Fatal error: Call to undefined function arras_document_description() in .../header.php on line 5

    :S ?

  10. Monjurul Dolon Posted 1 year ago #

    Try this: just comment out the "echo" lines - leave the rest as is. That way the function can still be called but it should produce no output. I'm not sure if it's replacing your normal META tags though - if that's the case, you may want to install something like All-In-One SEO or something similar to generate them from the WP admin panel.


Reply

You must log in to post.

© Copyright 2010 DevGrow - Design. Develop. Grow. 20 queries. 0.41 seconds.