Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
I have just moved from D7 to D8/9.
I was using the following in my template.php for a pager styling.
This does not seem to work. It am getting an error.
Recently, I was discussing some theming challenges and the suggestion was made that I should use HOOK_form_alter over custom twig templates. But an explanation wasn't really provided.
It got me thinking, my theme I'm building is starting to amass a large number of twig templates for pages and fields. Probably about 30 - 40 right now. This is because some form elements require editing 2 - 3 templates to tap into all areas of the field. i.e. page template > form element container template > form element template > input template.
Hi, I saw a few nice themes, which i want to use. But unfortunately the side bar is on the right. I want to move it to the left. Has anyone a clue for me?
Maybe a silly question. Is there a way to change the default poweredby block. And if can i also add a php code in it to get te current year? Such as this: "Copyright 1995 - <?php echo date('Y');?> "
I'm trying to make a theme suggestion for a form element. I would like to use the field ID and the node ID. So, for a form element with field ID 'first name' on node 23, the suggestion would be: form-element--first-name--23.html.twig