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 adding a target="_top" attribute to a form using Drupals form API. Intention is to break out of a iframe (greybox), but can't figure out just how. Any suggestions?
I'm trying to get my primary links to appear in a CSS dropdown menu a la Nicemenus. The secondary and tertiary links will be system text, but I need the primary ones to be images, not text. does anybody have experience doing this with Nicemenus or another CSS/javascript dropdown menu system?
I'd like to be able to change the background color for comments posted by certain user roles. i.e: if a moderator makes a comment on a node, the CSS of the comment background would change appropriately. How do i access the User's Role variable and where do i place the code that calls the appropriate CSS style?
So far i have found a snippet that displays the user's role, but this seems to only work in the User Profile page and requires
hey guys i'm developing a new theme 4 drupal and right now i'm wondering if i can make a title to stretch a title to the space i want (in pixels) eg. 300x100