ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

trying to add addthis.com code but it does not show up

July 21, 2009 6:09pm

Subscribe [1]
  • #1 / Jul 21, 2009 6:09pm

    cmscritic

    10 posts

    I am trying to add this code to my blog index page:

    <!-- AddThis Button BEGIN -->
    <a href="http://www.addthis.com/bookmark.php?v=250&pub=xa-4a662da547d25384">http://s7.addthis.com/static/btn/lg-share-en.gif</a>[removed][removed]
    <!-- AddThis Button END -->

    but it does not show up anywhere on the page. I am inserting it like so.. I have cache turned off on all pages.. am i missing something?:

    {embed="includes/.head"}
      </head>
    <body>
        {embed="includes/.header"}
        {embed="includes/.navigation"}
    <div class="container_12 content">
        <div class="grid_8">
            {exp:weblog:entries weblog="blog" orderby="date" sort="desc" limit="15" disable="member_data|trackbacks"}
                <div class="entry">
                    <a href="http://{title_permalink=blog/comments}"><h2 class="title">{title}</h2></a>
                    {simplecontent}
    <!-- AddThis Button BEGIN -->
    <a href="http://www.addthis.com/bookmark.php?v=250&pub=xa-4a662da547d25384">http://s7.addthis.com/static/btn/lg-share-en.gif</a>[removed][removed]
    <!-- AddThis Button END -->
                    <div class="posted">Posted by {author} on {entry_date format='%m/%d'} at {entry_date format='%h:%i %A'}
                        
    
                        {categories}
                            <a href="http://{path=blog/index}">Topics:// {category_name}</a> |
                        {/categories}
    
                        {if allow_comments}
                            <a href="http://{title_permalink=blog/comments}">Comments ({comment_total})</a> |
                        {/if}
                        {if allow_trackbacks}
                            ({trackback_total}) <a href="http://{trackback_path=blog/trackbacks}">Trackbacks</a> |
                        {/if}
                        <a href="http://{title_permalink=blog/index}">Permalink</a>
                    </div>
                    {paginate}
                    <div class="paginate">
                        <span class="pagecount">Page {current_page} of {total_pages} pages</span>  {pagination_links}
                        </div>
                        {/paginate}
                    </div>
                {/exp:weblog:entries}
            </div>
        <div class="grid_4">
            {embed="includes/.blogsidebar"}
        </div>
        <div class="clear"></div>
    </div>
    {embed="includes/.footer"}
    {embed="includes/.analytics"}
    </body>
    </html>
  • #2 / Jul 21, 2009 7:17pm

    Greg Aker

    6022 posts

    Greetings Mike:

    Do you have a link to the page in question we can see?

    -greg

  • #3 / Jul 21, 2009 10:04pm

    cmscritic

    10 posts

    Hi Greg,

    I’ve actually figured it out. I didn’t realize that blog/comments and the index were a separate template.. I’ve since added the addthis.com code to each and now everything is fine. Thank you for the response.

  • #4 / Jul 21, 2009 10:09pm

    Greg Aker

    6022 posts

    I’m glad you got it sorted out.  Please don’t hesitate to start a new thread if anything else comes up!

    -greg

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases