Title: Plugin to change :&quot;must loggin&quot;
Last modified: August 22, 2016

---

# Plugin to change :"must loggin"

 *  Resolved [ybalias1](https://wordpress.org/support/users/ybalias1/)
 * (@ybalias1)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/plugin-to-change-must-loggin/)
 * The “Comment Guestbook” plugin I am using for a WP installation is producing 
   a message on my website that reads “You must be logged in to post a comment.”
 * Is there a plugin or another method to change this sentence?
 * My site is rami.ybarniv.com click on the Guestbook tab.
 * Thanks, Mike
 * [https://wordpress.org/plugins/comment-guestbook/](https://wordpress.org/plugins/comment-guestbook/)

Viewing 12 replies - 1 through 12 (of 12 total)

 *  Plugin Author [mibuthu](https://wordpress.org/support/users/mibuthu/)
 * (@mibuthu)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/plugin-to-change-must-loggin/#post-5523146)
 * First question: Do you want users to login before they can post a comment?
 *  Thread Starter [ybalias1](https://wordpress.org/support/users/ybalias1/)
 * (@ybalias1)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/plugin-to-change-must-loggin/#post-5523148)
 * Thanks a bunch, Mibuthu. I do want my site visitors to register and log in, but
   my question is about changing the text of the message itself.
 * I just want to change the wording of “you must login”, plus the font, size, and
   color of that message.
 * Is there a way you to access this sentence and change its contents?
 * Thanks again, Mike
 *  Plugin Author [mibuthu](https://wordpress.org/support/users/mibuthu/)
 * (@mibuthu)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/plugin-to-change-must-loggin/#post-5523182)
 * I will add an option for this.
 *  Thread Starter [ybalias1](https://wordpress.org/support/users/ybalias1/)
 * (@ybalias1)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/plugin-to-change-must-loggin/#post-5523183)
 * Thanks much, Mibuthu. I’ll be waiting for that!
 *  Plugin Author [mibuthu](https://wordpress.org/support/users/mibuthu/)
 * (@mibuthu)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/plugin-to-change-must-loggin/#post-5523184)
 * It’s available in the today released version 0.7.0.
 *  Thread Starter [ybalias1](https://wordpress.org/support/users/ybalias1/)
 * (@ybalias1)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/plugin-to-change-must-loggin/#post-5523185)
 * Thank you, Mibuthu, for your latest update, 0.7.0.
 * I do see the additional controls related to my original question, but they don’t
   seem to work for me.
 * I tried to insert your sample code into the box “Comment form styles:”
 *     ```
       .form-submit { text-align:center; }
        #submit { font-weight:bold; }
       ```
   
 * but it has no effect on the “must login” message.
 * That message is still determined in code line 2226 of wp-includes/comment-template.
   php.
 * I changed the string to:
    `sprintf( __( 'Please <a href="%s">LOG IN</a> to post
   a comment.' ), wp_login_url( apply_filters( 'the_permalink', get_permalink( $
   post_id ) ) ) )` and that works—although I know that’s NOT the correct way to
   do it.
 * Here is the page that contains the Guestbook, [http://rami.ybarniv.com/?page_id=314](http://rami.ybarniv.com/?page_id=314)
 *  Thread Starter [ybalias1](https://wordpress.org/support/users/ybalias1/)
 * (@ybalias1)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/plugin-to-change-must-loggin/#post-5523186)
 * Mibuthu, Hello once again:
 * I wish I knew how to edit my previous message because I need to correct it.
 * Changing the text of the “must login” message DOES WORK!!!
 * But changing the
    - Style
 *  of that single line doesn’t.
 * The Field in
 * > Comment Guestbook Settings
 *  called
 * > Comment form styles:
 *  DOES affect the whole page of messages, but I only want to change the style 
   of this single sentence “must login” while NOT touching the rest of the page.
 * Thanks again, Mike
 *  Plugin Author [mibuthu](https://wordpress.org/support/users/mibuthu/)
 * (@mibuthu)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/plugin-to-change-must-loggin/#post-5523187)
 * What if you add an additional <p> or <div> tag in your text where you can specify
   your own class for selecting only this message?
 *  Thread Starter [ybalias1](https://wordpress.org/support/users/ybalias1/)
 * (@ybalias1)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/plugin-to-change-must-loggin/#post-5523188)
 * Mibuthu, thank you for your tip but my programming ability is too limited to 
   actually write what’s necessary.
 * Maybe you can tell me how to exactly write this code in your “Comment Guestbook
   Settings” > Comment-Form Settings >
 * **Must login message:** `Please <a href="%s">register and log in</a> to post 
   a comment.`
 * This sentence appears in my website, [http://rami.ybarniv.com/?page_id=314](http://rami.ybarniv.com/?page_id=314)
 * Thanks much, Mike
 *  Plugin Author [mibuthu](https://wordpress.org/support/users/mibuthu/)
 * (@mibuthu)
 * [11 years ago](https://wordpress.org/support/topic/plugin-to-change-must-loggin/#post-5523189)
 * If you set the “Must login message” to:
    `<div class="mustlogin">Please <a href
   ="%s">register and log in</a> to post a comment.</div>`
 * Then you can define a “Comment form style” like this:
    `div.mustlogin { color:
   red }`
 *  Thread Starter [ybalias1](https://wordpress.org/support/users/ybalias1/)
 * (@ybalias1)
 * [11 years ago](https://wordpress.org/support/topic/plugin-to-change-must-loggin/#post-5523190)
 * Thank you Mibuthu,
 * I know how to edit the message per your first sentence, `<div..../div>`
    but 
   I don’t know how to define a “Comment form style”.
 * Specifically, where do I write `div.mustlogin { color: red }` ?
 * Thanks again, Mike
 *  Thread Starter [ybalias1](https://wordpress.org/support/users/ybalias1/)
 * (@ybalias1)
 * [11 years ago](https://wordpress.org/support/topic/plugin-to-change-must-loggin/#post-5523191)
 * Mibuthu, it’s me again, and this time with GOOD NEWS.
 * I now figured out that you meant to add `div.mustlogin { color: red }` to **YOUR
   OWN** “Comment form styles” > “Comment Guestbook Settings”. In other words, it’s
   inside my Dashboard and ready to be edited right there.
 * FROM MY POINT OF VIEW, THIS PROBLEM IS REALLY SOLVED—AT LAST!!!!!
 * Thank you so much, Mibuthu, for sticking this out with me until this Happy Ending.
   I am now ready to praise your Plugin as being an EXCELLENT contribution to the
   WP community.
 * Yours, Mike

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Plugin to change :"must loggin"’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/comment-guestbook_ebebeb.svg)
 * [Comment Guestbook](https://wordpress.org/plugins/comment-guestbook/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/comment-guestbook/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/comment-guestbook/)
 * [Active Topics](https://wordpress.org/support/plugin/comment-guestbook/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/comment-guestbook/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/comment-guestbook/reviews/)

 * 12 replies
 * 2 participants
 * Last reply from: [ybalias1](https://wordpress.org/support/users/ybalias1/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/plugin-to-change-must-loggin/#post-5523191)
 * Status: resolved