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've got a field collection for slides in a paragraph. Each field collection slide has a background image field and a headline field. The editor can add as many slides as they want. I'm trying to theme this output. So, I've been assuming I should loop through the field collection items and spit each out, but it's completely baffling me. I'm not the best PHP'er, but I get by.
In 'paragraphs-item--content-slider.tpl.php' this prints the first 2 just fine, as you would expect:
Hi, this may be a naive question as I'm a real beginner to web development. I built a blog website using Drupal 8, and downloaded and installed a theme. I would like to modify the theme, as I want to make the site title smaller and the navigation menu bigger. I first used the browser's inspect element tool to modify the CSS, which did exactly what I wanted. However, when I attempted to modify the style.css file and upload the modified version to the server, my changes did not take effect.
I have ten custom List (integer) Fields, each has 5 values to choose from on the list. Within my Twig configuration I've been programmatically using {% if node.field_options.value == 'X' %} to display some CSS and an Image based on value returned.
Performance wise, is there anything wrong with doing this or will it slow down rendering of the page?