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.
Image_field, link_field, and List Field that consist of:
s|Small
m|Medium
l|Large
In twig I want to have an if statement that if you select "s", wrap image_field and link_field with a div class of .small. If you select "m", wrap image_field and link_field with a div class of .medium...etc.
I tried doing this, but I'm still getting ALL my content rendered with .small div class:
NOTE: I got it sorted after finding a similar topic posted 11 months ago. I was using libraries-override when I just needed to point to the library in my theme.
I'm trying to override a stylesheet in my Business Responsive theme with my own stylesheet in my Business Sub (sub-theme made from the Business Responsive theme).
I have several referinces to my node from entity reference fields inside paragraphs on other nodes (other CT also) and I'm looking for a way to get ALL entities refering TO my current node in twig. Everything I can find online, seems to deal with getting referenced entities FROM the current node.
I have problems when I include tables into a body in a basic page in Drupal 9. They don't fit to the page when I change the size of the window, they come off the edges, into other block (right sidebar for instance), while the text is justified perfectly...I am using the theme Drupal 8 W3CSS Theme 8.x-1.19 that it is responsive.