Forums

Help! screwed up code in main index template (7 posts)

  1. JanetCrocker
    Member
    Posted 5 years ago #

    Whoops. I tried to add a "digg this" button and I've done something wrong. Now instead of the stuff about comments at the bottom of my post, I just see Edit')); ?>. Here's what the section of code looks like now. Can anyone please tell me how to fix it? I know zip about css. I thought I had saved a backup of the template but unfortunately screwed that up too! Please help!

    <div class="entrymeta"><a href="http://del.icio.us/post">)+'&title='+encodeURIComponent(<?php the_title() ?>),'delicious', 'toolbar=no,width=700,height=400'); return false;"> Bookmark on del.icio.us</a>
        	<the_time('F dS, Y'); echo " | Category: ";the_category(','); echo " | ";
    
    	comments_popup_link( 'No comments ',
    						 '1 comment ',
    						 '% comments ',
    						 'comments-link ',
    						 'Comments are off for this post ');
    	edit_post_link(__('<strong>Edit</strong>'));
    	?>
  2. Andrew Ozz
    WordPress Dev
    Posted 5 years ago #

    Get a fresh copy of your theme (download and extract it again) and overwrite the bad one with your ftp program. Then install the "Share This" plugin...

  3. JanetCrocker
    Member
    Posted 5 years ago #

    What is the share this plugin?

  4. Samuel B
    moderator
    Posted 5 years ago #

    Share this lets readers add a post or page to many different services like Digg, Technorati, etc.
    You can see it on my test blog - just click the "share this" link under the 1st post.
    my test blog

  5. JanetCrocker
    Member
    Posted 5 years ago #

    Thanks, that sounds like a great idea!! I guess if I upload the theme again I will have to re-do any change I've made (like adding my feedburner thingie) ... that'll teach me to go fiddling around without saving a backup first!! Thanks again for your help

  6. Andrew Ozz
    WordPress Dev
    Posted 5 years ago #

    Well... You can try to compare the edited file with the fresh one and undo just the last changes :).

  7. JanetCrocker
    Member
    Posted 5 years ago #

    OK. Thanks again for the help!

Topic Closed

This topic has been closed to new replies.

About this Topic