• Resolved kilzac

    (@kilzac)


    Hi,

    I’m using the_excerpt_rss to generate meta description on my theme, and i’m very sure i have unticked the Addthis setting to show buttons in excerpts. but whenever theres the_excerpt_rss being generated in the meta description for a page, the whole Javascript code that makes the buttons appear do not get generated when the page loads, thus the buttons do not appear. i can make them appear if i manually add the entire Javascript code into the footer.

    i’ve tested this with Addthis version 2.3.1 and this problem does not occur. but as soon as i update to the latest version, poof, the buttons disappear under the condition i mentioned above.

    https://www.ads-software.com/plugins/addthis/

Viewing 4 replies - 1 through 4 (of 4 total)
  • @kilzac:

    Sorry to here you are having issues with the plugin.

    Shall we know which version of the plugin you are using(3.5.10 or 4.0.1)? Also it would be helpful if we can know the theme you are using.

    Thread Starter kilzac

    (@kilzac)

    @srijith V:

    Both the 3.5.10 and 4.0.1 are having this issue. infact this has happened to some of my previous work, so i believe Addthis version 3.x.x onwards might be having this issue. i just didn’t bring it up earlier cos with some luck, and by pressing around and saving the Addthis settings could somehow get the Javascript to re-appear. but this time, no such luck.

    i’m using WordPress default “twentytwelve” theme for further customizations. i run the following codes in the <head> :

    <?php if ( is_single() || is_page()) : if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    <meta name=”description” content=”<?php the_excerpt_rss(); ?>” />
    <?php endwhile; endif;?>

    once i remove <?php the_excerpt_rss(); ?>, the Javascript re-appears without me having to manually push it into the <?php wp_footer(); ?>

    @kilzac:

    Unfortunately we failed to reproduce the issue with twentytwelve and several other free themes.The script is loading fine with the the_excerpt_rss();.

    There is a possibility of conflict with another plugin and /or some thing broke when the theme was edited. Please try deactivating each plugin and reloading a page. You might be able to find the issue.

    Thread Starter kilzac

    (@kilzac)

    @srijith V:

    I did as you’ve suggested; revert to stock/clean twentytwelve theme, but with the_excerpt_rss and meta description mod, disabled all plugins and only ran Addthis. didn’t work either.

    then i deactivated, and reactivated the Addthis plugin and there, the buttons reappeared. then i started to turn back on all my others plugins and no more problems after that even after returning to the modified theme i was working on.

    i can’t say for sure if its plugins conflict as i run only a few popular plugins like Contact Form 7 and the other websites that were having the same problem, don’t even share the same set of plugins.

    Nevertheless, its solved for now.

    Thanks for the tips.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Buttons won't appear when excerpt_rss used as meta description’ is closed to new replies.