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 trying to customize an image field for my content type, but i can't find where default image tpl is.
usually for views and blocks i clone the default tpl (for example: views-view.tpl.php) and i modify it renaming and editing the file content, but i can't find the same file for images field.
in particular what im trying to do is create a custom image field tpl for my content type and printing the image and the alternative text with some container div.
I am modifying Bartik into a new theme called Opal, and everything seems to work so far except for the search glyphicon "magnifying glass" symbol. It appears if I place my new theme back into 8.x core -- mysite.com/core/themes/opal -- but when I place my theme in the proper root directory, mysite.com/themes/opal, it disappears. Any advice would be most appreciated. I can always just spare the Opal folder in core when upgrading, but having it work in the proper folder would be better.
I'm trying to add a toggle() with a slide function in my Drupal 8.5 theme and it's not working very well. I go to the browser console and see thousands of errors like this:
TypeError: r.easing[this.easing] is not a function.
Searching I find that it's likely because the easing plugin is not loaded. Looking at my page source I see many files being pulled in from /core/assets/vendor/jquery.ui/ui/* but nothing from /effects/ let alone /effects/slider
I'm finding that I need to write some javascript to do media queries and find that the Modernizr library, which is included in core, is available to intelligently let me check the user's window size, etc. Usually when I try to learn a new library, I go to the browser console after reading some docs but find I cannot do so.