Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By SkyFlame on
http://i.imgur.com/YdiGmSO.png
So here are two issues:
- How to add placeholder into the text input?
- How to remove label of the text input ("E-mail")?
I suppose it can be solved with drupal hooks, but how exactly?
Comments
=-=
https://www.drupal.org/project/stringoverrides
https://www.drupal.org/project/in_field_labels
Yes, it can be done
Yes, it can be done in two ways:
1. Using drupal hook in custom module
2. Use Form Placeholder module.
Let me know incase of any query/concern for the same.
Thanks!
I get a mistake:Fatal error:
I get a mistake:
Fatal error: Cannot redeclare simplenews_form_alter() (previously declared in /home/sky5672/html/sites/all/modules/simplenews/simplenews.module:749) in /home/sky5672/html/sites/all/themes/softstorage/template.php on line 100
So I have to create a custom module even for changing these two little things?
=-=
As there is no configuration for what you seek, yes you would either create a module or use one provided for you.
I've added to template.php in
I've added to template.php in my theme's function these code:
165 is a number of the block in my case.
So thanks for help!