Twenty Eleven: Change "Leave a reply" Prompt on Home Page

  • Author
    Posts
  • #954205

    Is there a way to change the words “Leave a reply” on the home page posts?

    Settings/Discussion/Comment works for the post itself, but not for the home page.

    I think I’ve found the right section, since I was able to change the size with this:

    .entry-header,.leave-reply {
    font-size:120%;
    }

    but I can’t figure out how to change the text to something else. Am I in the wrong section or is the text in the theme PHP, or…?

    Thank you!

    The blog I need help with is sensuousinkspiller.com.

    #954310

    In your code example, “.entry-header,.leave-reply” will cover both post titles and the “Leave a reply” link, so you’ll want to target just the 2nd one.

    Try this to update the “Leave a reply” text on the Twenty Eleven theme:

    .leave-reply {
    	visibility: hidden;
    }
    .leave-reply:before {
    	visibility: visible;
    	content: "Your text here";
    }
    #954315

    Thank you, this is perfect!

    I did realize about the entry-header, but I would never have figured out the visibility and content.

    Thank you!!

    #954349

    It does work, but then it also puts letters in the comment “bubble” at the top of the post. I suppose that disappears when there are comments, but when there aren’t it looks really odd.

    How could I fix that?

    Thanks!

    #954470

    Any ideas about this, since the code offered works, but causes problems in the comments “bubble” by putting the text in there?

    I could delete the “bubble” and can figure out how to do that, but I’d rather have something that worked.

    Thanks!

    #954471

    timethief
    Member
    #954472

    Thank you, timethief! That works to remove the bubble which is my second choice, and it may be easier to do that.

    #954473

    timethief
    Member

    Hooray! I’m so happy that helped. :)

    #954478

    To prevent the content text from showing up in the bubble too, try updating to this instead of hiding the bubble:

    .entry-meta .leave-reply {
    	visibility:hidden;
    }
    
    .entry-meta .leave-reply:before {
    	visibility:visible;
    	content:"I Love Your Comments!";
    }
    #954479

    Perfect, and I get the bubble back! :-)

    Thanks, designsimply!

    #954480

    Bubbles! :) hehe

The topic ‘Twenty Eleven: Change "Leave a reply" Prompt on Home Page’ is closed to new replies.