Skip to content
Code Snippets
Useful code to copy and paste
  • ALL
  • Acquia
  • Acquia API
  • Acquia Cloud IDE
  • Acquia Cloud Site Factory
  • Bash
  • Bootstrap
  • C#
  • CSS
  • curl
  • Drupal 8-9
  • Drupal Modules
  • Drush
  • HTML
  • JavaScript
  • jQuery
  • Lando
  • MacOS
  • PHP
  • Raspberry Pi
  • Terminal
  • Unity
  • Website Templates
  • WordPress

Tag: drupal 8

ACSF Drush Alias Generator

Streamline Your ACSF Workflow with the ACSF Drush Alias Generator

March 29, 2025 Leonardo Signorelli

Managing multiple Drupal sites on Acquia Cloud Site Factory (ACSF) can be challenging, especially when running Drush commands across different…

Continue Reading →

Posted in: Acquia, Acquia Cloud Site Factory, Bash, Drupal 10, Drupal 8-9, Drush, Terminal Filed under: Acquia, Acquia Cloud Site Factory, ACSF, Bash, Drupal, Drupal 10, drupal 8, Drupal 9, drush, Shell Script

Establishing Basic Content Security Policies for Your Drupal Website

July 13, 2024 Leonardo Signorelli

In this article, I will provide guidelines on setting up a foundational Content Security Policy (CSP) for your Drupal application.…

Continue Reading →

Posted in: Drupal 10, Drupal 8-9, Drupal Modules, Security Filed under: Drupal, Drupal 10, drupal 8, Drupal 9, Security

Render JPEG, PNG, and GIF images as WebP in Drupal

December 26, 2023 Leonardo Signorelli

WebP is a modern image format that provides superior lossless and lossy compression for images on the web. Using WebP,…

Continue Reading →

Posted in: Drupal 10, Drupal 8-9 Filed under: Drupal 10, drupal 8, Drupal 9, Drupal8, GIF, JPEG, PNG, WebP, WebP images

Acquia Cloud Platform: Upgrading a Drupal 9 site from PHP 7.4 to PHP 8.0 using Acquia Lando

September 19, 2022 Leonardo Signorelli

PHP 7.4 is coming to an end of life! So I need to upgrade to PHP 8.0 ASAP! From Acquia’s…

Continue Reading →

Posted in: Acquia, Drupal 8-9, Drush, Lando, MacOS Filed under: Acquia, Acquia Cloud, Acquia Lando, Drupal, drupal 8, Drupal 9, Drupal8, drush, lando, PHP 8.0, PHP 8.0 Upgrade, PHP Upgrade

Custom Drush Commands

October 11, 2019 Leonardo Signorelli

Goal: Increase the image storage size for the “Single Page – Page Header Row” from 256kb to 512kb. Admin URL:…

Continue Reading →

Posted in: Drupal 8-9, Drush Filed under: drupal 8, drush

Styling a Drupal 8 events “View” page to have thumbnails (CSS)

April 8, 2019 Leonardo Signorelli

Example:https://cms.staging.uccs.edu/business/business-research-index Configuring the View page: FORMAT: Unformatted listSettings: SHOW: FieldsSettings: FIELDS:Add and organize the following fields as shown in the…

Continue Reading →

Posted in: CSS, Drupal 8-9 Filed under: CSS, drupal 8

Button Styles (HTML + CSS)

March 26, 2019 Leonardo Signorelli

These are the button styles that our team uses at work, I save them here for an easy copy and…

Continue Reading →

Posted in: Drupal 8-9, HTML, WordPress Filed under: CSS, drupal 8, html, wordpress

Accordion with effect (HTML + JavaScript)

Leonardo Signorelli

Example: https://codepen.io/astralmemories/pen/drEypr Code: <style> .ui-accordion-content a:link, .ui-accordion-content a:hover, .ui-accordion-content a:active, .ui-accordion-content a:visited {   color: #428bca; } </style> <link href=”https://code.jquery.com/ui/1.11.2/themes/smoothness/jquery-ui.css” rel=”stylesheet”>…

Continue Reading →

Posted in: Drupal 8-9, HTML, JavaScript Filed under: drupal 8, html, javascript

Load another page’s item into a div using jQuery.

December 18, 2018 Leonardo Signorelli

Load another page’s item into a div using jQuery: <script src=”https://code.jquery.com/jquery-1.10.2.js”> </script> <div id=”PlaceToPutTable”>&nbsp; </div> <script> $(“#PlaceToPutTable”).load(“https://www.uccs.edu/admissions/request #block-uccsbase-home-content”); </script> More…

Continue Reading →

Posted in: Drupal 8-9, HTML, jQuery Filed under: drupal 8, html, jQuery

Insert HTML before element in JavaScript

July 16, 2018 Leonardo Signorelli

With this method (supported by all major browsers, including IE 4), you can take an arbitrary HTML string, and insert…

Continue Reading →

Posted in: Drupal 8-9, HTML, JavaScript, WordPress Filed under: drupal 8, html, javascript, wordpress

Post navigation

Page 1 of 2
1 2 Next →

If you find my articles useful and would like to show your appreciation, consider buying me a cup of coffee ☕️. Your support is greatly appreciated and helps me continue creating valuable content. Thank you!

Donate
  • ALL
  • Acquia
  • Acquia API
  • Acquia Cloud IDE
  • Acquia Cloud Site Factory
  • Bash
  • Bootstrap
  • C#
  • CSS
  • curl
  • Drupal 8-9
  • Drupal Modules
  • Drush
  • HTML
  • JavaScript
  • jQuery
  • Lando
  • MacOS
  • PHP
  • Raspberry Pi
  • Terminal
  • Unity
  • Website Templates
  • WordPress
Copyright © 2025 Code Snippets — Escapade WordPress theme by GoDaddy