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 tried looking around but didn't seem to get any farther so i'm hoping I can get some answers to my question quicker this way. Any help would be appreciated.
This is from a already custom theme created that I am just trying to modify but in page.tpl.php there are variables like $page['main_nav'] and $page['more_footer']. Are these pages or blocks created in drupal? Like where do I access, example "Main_nav", so I can change the layout?
I need to change the text of the "Save" button of a node creation form of a certain content type (form is displayed in front-office). I tried this preprocess function :
function mytheme_my_content_type_form_alter(&$variables, &$form){
if ( isset($form['actions']['publish']) ) {
$form['actions']['publish']['#value'] = 'Submit';
}
}
I am trying to modify Bartik theme slightly. Basically, I only need one modification. Namely, here is my problem:
When the field type is the "entity reference", the font for the field label is smaller in compared to other cases (such as field type "datetime" or other).
If anyone has knowledge of where can I make corresponding modifications in css, it would be of high significance for me.
I try to exactly follow what is in the book: Drupal8 Theming with Twig (Chumley, Chaz. Drupal 8 Theming with Twig. Packt Publishing, made when it was 8.0.1, I I see in a screenshot. Is it because i did something wrong or because it is now version 8.2.1, but the results with HTML in Views are tagged. In the book, the following should be copied in the rewrite result, overwrite ... text of the image field with this: