Change Subscription Block Form; remove text - "The subscriber's email address."; add placeholder

Created on 8 January 2021, almost 4 years ago
Updated 22 January 2023, almost 2 years ago

How to remove the text that showing below the field "The subscriber's email address." please, its useless, thanks

💬 Support request
Status

Needs work

Version

3.0

Component

Miscellaneous

Created by

🇬🇧United Kingdom freelylw

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇭🇷Croatia portulaca

    Thank you @robcarr for posting this! It works!

    For anyone also looking to change the Submit button text and adding a title attribute to it:

    <?php
    /**
     * Implements hook_form_alter().
     */
    function mytheme_form_alter(&$form, &$form_state, $form_id) {
      if($form_id == 'simplenews_subscriptions_block_simplenews_mycategory') {
        $form['actions']['submit']['#value'] = t('Notify me');
        $form['actions']['submit']['#attributes']['title'] = t('Receive email reminders about new articles published on this site');
        $form['mail']['widget'][0]['value']['#attributes']['placeholder'] = 'myemail@example.com';
      }
    }
    ?>
    
Production build 0.71.5 2024