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.
Hi there,
I use Bootstrap and D7 and I need to output two search forms with different design (another placeholder, icon and text for button etc). For single search from I not have any problem, I use theming via form_alter custom function into template.php.
I think, for the problem solving I can output second search form with another ID, then change form via form_alter. But I not have any ideas, how can I render second search form with new form ID.
Anybody help my? Thx for any answer.
Regards, Anatolii.
I want to have a slideshow of pictures instead of the basic header in bartik theme. How can i do that? I'm trying with some modules but ... It's not really working.
I would like to override node.tpl.php but I'm not sure how to reference the individual fields in a content type in D7.
I have a content type to which I added a field field_picture and I want to reference this and the body of the content separately in the .tpl.php. I tried to print render($content['body']); but this outputs both the body (text) in the content and the image I have in the field_picture. So I take it 'body' refers to the entire content, but how do you reference just the body field and/or the field_picture field?
I've recently moved my installation to a new web server and was heavily reliant upon Firefox and Chrome's inspector to style my site. I've subthemed Bartik and on the old web server, this worked just fine.
I am trying to add a region to my theme (subtheme of AdaptivetTheme), and i followed the intructions, but now i don't know how to connect the {{ page.navbar2 }} in \templates\generated\page.html.twig to the the file in \templates\navigation\navtwo.html.twig or if i am even supposed to be doing that...
Trying to copy an existing region as an example. The subtheme comes with a Navbar region and is listed in \templates\generated\page.html.twig as {{ page.navbar }} and it displays the contents of \templates\navigation\menu.html.twig (right?)