WordPress.org

Ready to get started?Download WordPress

Forums

Subscribe2
[resolved] Hide "Your email" with subscribe2 (7 posts)

  1. oldmankit
    Member
    Posted 2 years ago #

    I have the subscribe2 widget in my sidebar. Everything looks great except for the redundant words "your email" which is followed by <br>. The full HTML is:

    <label for="s2email">Your email:</label>
    <br>

    How do I get rid of or hide this? I've searched but found no answers.

    Thanks for your help.

    http://wordpress.org/extend/plugins/subscribe2/

  2. mattyrob
    Member
    Plugin Contributor

    Posted 2 years ago #

    @oldmankit,

    You are probably going to have to edit the code to do this. If you are using Subscribe2 version 7.2 you need to make edited and remove that string from lines 3422 and 3424.

  3. oldmankit
    Member
    Posted 2 years ago #

    @MattyRob

    Thank you for the awesomely quick reply. I will try that at a time that is not Sunday afternoon (I need to chill out today!)

    I've never edited plugin code before. Does this mean I will have to edit it every time I upgrade?

    Thanks again.

  4. mattyrob
    Member
    Plugin Contributor

    Posted 2 years ago #

    @oldmankit,

    Yes, you'll need to make an edit after each upgrade. That's one of the benefits of open source code - you can change it how you like. It's also one of the downsides - you may need make the new edit frequently if you upgrade lots!

  5. oldmankit
    Member
    Posted 2 years ago #

    @MattyRob

    Thanks again for your support on this one.

    I thought about this and decided to try-out MailChimp. Now they also have a line of text that I considered redundant (my site is very minimalist) but the difference was it was within a specific div class which I can hide easily with css (display: none;). If I compare that to editing the code every time I upgrade, then it's a no-brainer.

    All the same, this plugin is great, and it is truly free and self-managed (unlike MailChimp). Thanks again.

  6. KennyT3
    Member
    Posted 1 year ago #

    Hope all is well. I had found the bit of code to remove "your email" text from the widget before, but now I recently updated Subscribe2 and I cant locate the code to remove it. Can someone please let me know what file it is that I have to edit?

    Thank You in advance

  7. mattyrob
    Member
    Plugin Contributor

    Posted 1 year ago #

    @KennyT3,

    In version 8.5 you will need to edit the classes/class-s2-frontend.php file on lines 58 and 60.

    The other way to do this without losing changes on upgrades is to make a translation file that changes that text string to an empty one and use an obscure language code.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags