Community Forums › Forums › Archived Forums › Design Tips and Tricks › "Leave a Comment" Code Snippet doesn't work
Tagged: code snippet, comment link, modify text
- This topic has 6 replies, 2 voices, and was last updated 12 years, 6 months ago by
Carla the Moose.
-
AuthorPosts
-
April 25, 2013 at 1:10 pm #37705April 25, 2013 at 2:22 pm #37715
Carla the Moose
MemberI'm having the same problem with the post-meta Code Snippet that's supposed to let me remove "Filed under."
I just submitted a support ticket, since I'm anxious to get this figured out. I'll post back here once I learn why these code snippets aren't working for me. 🙂
April 25, 2013 at 8:33 pm #37763Carla the Moose
MemberSupport told me that the Simple Edits plugin overrides any functions code that I add to functions.php. I'm not sure why it would do that, but it does. That's why the Code Snippets weren't working.
So I removed the plugin. But the only thing that displayed under my post title was the comments link. The link was reflecting the change I made via the snippet. However, the date and categories aren't showing up.
I thought Simple Hooks would take care of this, but now I have two comments links displaying. So one problem was kind of addressed, but now it has a friend.
Hopefully they can help me iron it out. 🙂
May 24, 2013 at 9:40 am #42485kworthington
MemberI am having the same problem - changing "Leave a Comment" to simply "Comments" - though I am using a different snippet:
//* Modify comments header text in comments
add_filter( 'genesis_title_comments', 'custom_genesis_title_comments' );
function custom_genesis_title_comments() {
$title = '<h3>Comments</h3>';
return $title;
}This is on the Executive child theme. I'd really appreciate some help. Thanks.
May 24, 2013 at 11:45 am #42501Carla the Moose
MemberI copied the comments header code snippet and pasted it into my functions file. It worked without any problems.
I started this thread in reference to the comments link in the post-info section under the blog post title. But you want to change the comments header text and not the post-info link, right?
Your best bet is to start a new thread or submit a support ticket. 🙂
May 24, 2013 at 12:37 pm #42510kworthington
MemberThanks, WiggleChicken - I appreciate the reply.
My client actually decided that the LEAVE A COMMENT block shouldn't be at the top of the Executive theme's posts, so I simply removed it. If this comes up again, I will certainly submit a support ticket.
Thanks again.
May 24, 2013 at 2:00 pm #42515Carla the Moose
MemberIt sounds like you were trying to change the comments link in the post-info code just under the post title. The code snippet you included above is for the comments header. If they change their mind, just grab the first code snippet that says Comments Link.
I'm actually a fan of placing the comments link at the bottom. Some sites do both, but I think it's cleaner at the bottom.
Anyhoo, post back here if you need help. It's really just a matter of grabbing the other code snippet, but I'd be happy to lend a chicken foot should you need some guidance with that.
Cheerios! 🙂
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.