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 have few content types such as news, lead story, events. I want to show those content types in a single page (Front Page and some other pages and that pages may content some static HTML content) with some logic using twig template. As an example I want to show one randomly selected lead story and three news items in a single page. How can I achieve this.
I know the title may be a bit difficult to understand. Basically, I have created a paragraph type in Drupal that holds a label and a link. Then I have page content that adds it and allows me to make more of them on the back end when building a page. Unfortunately, I want to style them in a way similar to some CTA buttons we already have, but the Twig debugging is saying that my paragraph type is a field, and thus isn't recognized as a paragraph. Could this be a result of a hook somewhere, or have I misunderstood what counts as a paragraph?
I know this is likely a question so basic that most people will be laughing, perhaps even chortling. But I come from a non-CMS background where to increase a font, say, or choose a different font-family, one simply navigates to the whatever.css file and finds the right line and changes it. It's usually quite easy to read, too.
I am kind of blown away at the difficulty of doing something as simple as identifying the title of my Bartik page and changing its color.
I would like to know of a process or software that can check through my drupal site and through my css file in my bootstrap sub-theme and highlight all the css that is no longer used in the site. I have 4000 lines built up over years and probably half of that is no longer needed.