WordPress.org

Ready to get started?Download WordPress

Forums

Digg Digg
[resolved] Digg Digg adds some code to the description tag - help (4 posts)

  1. gclass
    Member
    Posted 2 years ago #

    Hello,
    I am using digg digg plugin to add float bar on my blog, I also us a plugin to create facebook meta tags.
    the description tag content is taken out of the post's excerpt.

    but after activating digg digg the tag's content is looking like this:

    <meta property="og:description"
    content="This is my post's description.
    var dd_offset_from_content = -900; var dd_top_offset_from_content = 0; jQuery(document).ready(function($) { window.setTimeout('loadLinkedin_5457()',1000); }); function loadLinkedin_5457(){ jQuery(document).ready(function($) { $('.dd-linkedin-5457').remove();$.getScript('http://platform.linkedin.com/in.js'); }); }" />

    can you point how can I solve this?
    (tried to disable/enable w3 total cache)
    Thx
    G

    http://wordpress.org/extend/plugins/digg-digg/

  2. Andrew Yates
    Member
    Plugin Author

    Posted 2 years ago #

    Hi gclass.

    Digg Digg adds itself to the excerpt which is why this is happening. To resolve it you can add the following to your themes functions.php file...

    remove_filter('the_excerpt', 'dd_hook_wp_content');

  3. gclass
    Member
    Posted 2 years ago #

    Andrew thx for your reply.

  4. mezzofanti
    Member
    Posted 1 year ago #

    Andrew,

    Can you please explain where to insert that line in the functions.php file? It didn't work for me.

    There must be a way to stop Digg Digg from interfering with excerpts.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.