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'm fairly new to Drupal and I've got a question. Namely, is there any way of adding a reference to a view or block by a hook? I have an article content type and an courses content type. I need to implement a block with a list of courses in the middle of content. My form looks like this:
Lead - textfield
Image
Long html text
List of courses
Long html text
other fields...
I want to let my users choose to display the list of courses or not .
I'm trying to change some aspects of my page.html.twig file: I want to control how the body field is displayed in the theme and exclude the display of an image field but still use its URI for a theme DIV element. How can I do this via TWIG?
As indicated in this Drupal doc, I am trying to preload my local font to avoid flash of invisible text (FOIT), but it does not work.
It should be super easy since the fonts folder is in the 'subtheme-name/fonts' folder but any combination doesn't work.
I am using Adaptivetheme, but I think it applies to all themes.
What could I be doing wrong...is there eventually another method?
A client has requested a specific "3D design" for the buttons on the website. See the exmple picture below:
I've searched for a suitable CSS library to create this 3D effect, but the best I've found is this page: https://bootsnipp.com/snippets/g6y1, which is pretty far from what is desired.
I have a module which has created a library. I've attached that library to a library and the css files are loaded when the template is loaded.
But the css styles are being overrided with the themes css stles.
For example the css file in my library will have button { padding: 5px; }, but my theme css will have button { padding: 10px; }, and the button gets padding 10px from theme instead of 5px from library.