• Resolved bigez

    (@bigez)


    It’s been killing me. When I first started my blog (collegebasketballtalk.com), I knew I went somewhere and changed what it said in the comments link. Now, I can’t find where I changed it.

    I’ve tried to change it again in the index.php file. This is what it now says there:
    <span class="meta-comments"><?php comments_popup_link('Leave a comment, fella!', '1 Intelligent Comment', '% Intelligent Comments'); ?></span></h4>

    But I’m still getting my old text in the comments link at the top of each post on the main page (and on the single posts pages). Can anyone help?

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter bigez

    (@bigez)

    To the top!!! Need help in the worst way. Thanks!!!

    Mark Ratledge

    (@songdogtech)

    SOMEBODY HELP!

    Chill. We’re all volunteers here.

    Do you have a comments.php template file? Look there.

    Thread Starter bigez

    (@bigez)

    Chill. We’re all volunteers here.

    I’m very “chill.”

    Here’s what my comments.php looks like. Thanks for your help.

    <?php
    // Do not delete these lines
    	if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
    		die ('Please do not load this page directly. Thanks!');
    
    	if ( post_password_required() ) { ?>
    		<p class="nocomments">This post is password protected. Enter the password to view comments.</p>
    	<?php
    		return;
    	}
    ?>
    
    <!-- You can start editing here. -->
    
    <div id="comments">
    <?php if ( have_comments() ) : ?>
    	<h5><?php _e('Comments','flexx'); ?></h5>
    
    	<ol class="commentlist">
    	<?php wp_list_comments(); ?>
    	</ol>
    	<div class="navigation">
    		<div class="alignleft"><?php previous_comments_link() ?></div>
    		<div class="alignright"><?php next_comments_link() ?></div>
    	</div>
     <?php else : // this is displayed if there are no comments so far ?>
    
    	<?php if ('open' == $post->comment_status) : ?>
    		<!-- If comments are open, but there are no comments. -->
    
    	 <?php else : // comments are closed ?>
    		<!-- If comments are closed. -->
    		<p class="nocomments">Comments are closed.</p>
    
    	<?php endif; ?>
    <?php endif; ?>
    </div><!--end #comments-->
    
    <div id="respond">
    <?php if ('open' == $post->comment_status) : ?>
    
    <h5><?php comment_form_title( 'Leave a Reply', 'Leave a Reply to %s' ); ?></h5>
    
    <div class="cancel-comment-reply">
    	<small><?php cancel_comment_reply_link(); ?></small>
    </div>
    
    <?php if ( get_option('comment_registration') && !$user_ID ) : ?>
    <p>You must be <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>">logged in</a> to post a comment.</p>
    <?php else : ?>
    
    <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
    
    <?php if ( $user_ID ) : ?>
    
    <p>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="Log out of this account">Log out &raquo;</a></p>
    
    <?php else : ?>
    
    <p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> />
    <label for="author"><small>Name <?php if ($req) echo "(required)"; ?></small></label></p>
    
    <p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> />
    <label for="email"><small>Mail (will not be published) <?php if ($req) echo "(required)"; ?></small></label></p>
    
    <p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
    <label for="url"><small>Website</small></label></p>
    
    <?php endif; ?>
    
    <!--<p><small><strong>XHTML:</strong> You can use these tags: <code><?php echo allowed_tags(); ?></code></small></p>-->
    
    <p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></p>
    
    <p><input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" />
    <?php comment_id_fields(); ?>
    </p>
    <?php do_action('comment_form', $post->ID); ?>
    
    </form>
    
    <?php endif; // If registration required and not logged in ?>
    <?php endif; // If comments are open ?>
    
    </div><!--end #respond-->
    Mark Ratledge

    (@songdogtech)

    Don’t paste huge chunks of code as per the Forum Rules – use the WordPress Pastebin

    Thread Starter bigez

    (@bigez)

    Sorry about that… I didn’t know. If anyone can help, I’d be greatly appreciative!

    The code would not be in the comments.php but inside the loop area of the index.php, so it is possible you had the right code, but it could be the characters you used, you need a couple of html codes?

    'Leave a comment, fella!'

    The comma and shreik may need to be html codes, I have added a space between & #44; and & #33; or the code will not show here, you would remove the space.

    'Leave a comment& #44; fella& #33;'

    Leave a comment, fella!

    HTH

    David

    Thread Starter bigez

    (@bigez)

    No such luck. Any other ideas?

    I’ll give you a hint… Months ago, I changed my ZERO COMMENTS link text to “0 Comments, Somebody get us started!”

    Now, even though it still shows up for posts without a comment, I can’t find that string of text in any of php anywhere.

    If you or anyone else has any other suggestions, I’ll gladly take them

    Thanks for the help so far.

    bigez,
    comments_popup_link(), this WordPress function call only works in the loop, and you say you have changed it in the ‘loop?’

    1. Validate the page and see if there is a html error.
    2. make sure you do not have a page cache plugin activated as these store a html page and offer this until they expire.
    3. Upload the index.php file to WordPress pastebin and paste the link here

    If it is a live website then post the url with the error here, so we can view the source.

    HTH

    David

    I checked out your website and the comments are delivered by a plugin service (1410#disqus_thread), so the text is not in the html, so did you change it in a plugin settings?

    When you click on the comments you get taken to a different website, what is all that about??

    HTH

    David

    Thread Starter bigez

    (@bigez)

    It is a live website… you can check out the source atcollegebasketballtalk.com.

    Here’s a link to the index.php: https://www.wordpress.pastebin.com/p5whjc49.

    There are errors, but I’ll be honest:
    (1) most have to do with the ad broker that I use. I’m afraid to change up the code that they gave me because I would still like to get paid.
    and…
    (2) I’m not very verse in code and don’t know how to fix a lot of this. I don’t know if anyone would like to help me with this, but I’d sure appreciate the help.

    I did not edit the disqus plugin.

    Thanks for your help!

    Code is correct, however the comments on the website are using the disqus plugin and code.

    I use the same system on my posts, to cut down the spam.

    Follow these steps, no code hacking required.
    1. Go to your website, Admin > Comments > ‘Disqus’
    2. Top right of the page ‘Manage’
    3. Login to disqus
    4. Settings > ‘Customise’
    5. On the page ‘Appearance’
    6. Edit boxes for ‘Comment Count Link’
    7. Preview and Save

    HTH

    David

    Thread Starter bigez

    (@bigez)

    Done! Bless you! Huge thanks!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘SOMEBODY HELP! Changing text in my comments link.’ is closed to new replies.