• Resolved ginaf40

    (@ginaf40)


    Hi
    I’m address Accessibility issues on our website.
    Although I have added the text “subscribe” as a label for the subscribe button in the plugin settings, on the web page the label is missing.
    Is there a way to get it to appear?
    Thanks
    Gina

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor kishanranawat

    (@kishanranawat)

    Hi @ginaf40,

    We have checked the issue on your site but could not find it. The label for the button is being shown correctly as “Subscribe”.

    We have noticed that currently Email Subscribers’ form is placed in the sidebar area. Are we looking at the wrong place to find the issue or the issue has been resolved now? Please let us know.

    Let us know if you have any other queries. We would be happy to help you.

    Thread Starter ginaf40

    (@ginaf40)

    Many thanks for your response.
    Although you can see the word “subscribe” on the button, the <label> for the button is empty.

    <label style="position:absolute;top:-99999px;left:-99999px;z-index:-99;"><input type="email" name="es_hp_email" class="es_required_field" tabindex="-1" autocomplete="-1" value=""></label>

    I am reviewing our site for Accessibility and need to have labels for all form elements. Are you able to help with this?

    Plugin Contributor kishanranawat

    (@kishanranawat)

    Hi @ginaf40,

    Thanks for giving us more information regarding your use case.

    The empty label which you have mentioned above is for the honeypot validation and used in preventing spam submission.

    Therefore currently, it won’t be possible to add a label for the Subscribe button only using Email Subscribers plugin but you can use the WordPress action hook ‘ig_es_after_form_fields‘ to display a label before the button. If you have a little bit of experience in PHP programming language, then you can easily use the above action hook.

    Hope this helps you. Let us know if you have any further queries.

    Thread Starter ginaf40

    (@ginaf40)

    Many thanks for your advice – I shall look into adding it using that hook.
    Gina

    Thread Starter ginaf40

    (@ginaf40)

    I added a hook that works.
    I can’t refer to the actual ID of the button because it has a dynamically changing ID, so I had to refer to an <input> just before it.
    Do you know how to target the ID of the button (below)?
    (id=”es_subscription_form_submit_1600441239″)

    add_action( 'ig_es_after_form_fields', 'add_label_to_Subbutton' );
    /**
     * Adds a label to the Subscribe button
     * for tech blogs
     */
    function add_label_to_Subbutton() {
    	echo "<label for='es_subscribe'  class='visuallyhidden'>Subscribe button:</label> ";
    }
    

    <input type="submit" name="submit" class="es_subscription_form_submit es_submit_button es_textbox_button" id="es_subscription_form_submit_1600441239" value="Subscribe">

    Thanks
    Gina

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Label is empty for subscribe button’ is closed to new replies.