Skip to main content
153
results
Andrew Fletcher
Running a few SEO and performance tests and I discovered that the site logo image tag doesn't contain a width and height variables! How do you add image width and height to your site logo? Working on the base that your theme file is a custom theme, then there are two files that you will need to edit: theme file; and  system branding block file   Starting with the workhorse theme file Check if you have a hook_preprocess_block function in your custom theme file. The core code that you...
Andrew Fletcher
How do you exclude the current node from a list view? In some situations, for...
Andrew Fletcher
I installed Lando 3.6.2 and Laravel 9.  When I visit the web page, I...
Andrew Fletcher
I'm receiving an error with a path of Drupal\path_alias\AliasManager Upgrading...
Andrew Fletcher
Let say in composer.json you have "drupal/core-recommended": "^9.2" You're...
Andrew Fletcher
Have you tried adding custom synonyms to Solr on Drupal? How did you go? What do you need to do to connect a custom synonym list to your Solr?   Set-up : the tools What am I using? Search API Synonym- https://www.drupal.org/project/search_api_synonym Solr : 8.1   Steps to get a custom Solr working Install Search API Synonym Read through the instructions on the module page or have a look at the following article Setting up synonyms on your Drupal site with a few errors you might...
Andrew Fletcher
Updating to PHP 8.1, I found this interesting code stop... Deprecated function:...
Andrew Fletcher
Running Docker Dangerous word... I'm assuming that Docker is installed....
Andrew Fletcher
Is Docker installed? Check if your installation is ok and spin up Docker as...
Andrew Fletcher
Create and push to Docker Hub Creating your own custom image... you need to have...
Andrew Fletcher
If you are using theme_get_settings, such as: $value = trim(theme_get_setting('my_setting')); Then in your code editor you will also be seeing undefined  function 'theme_get_setting'.  This function has been deprecated for some time.   Instead, you need to use Passing the theme.manager and theme.initialization services to theme_handler constructor as optional parameters is deprecated. These parameters are also mandatory. $theme_handler = \Drupal::service('theme_handler');Get...
Andrew Fletcher
Having access to a site’s URL in your templates can come in handy for many...
Andrew Fletcher
I want to create a content type that has a paragraph.  Easy enough. What...
Andrew Fletcher
Creating URL's in Drupal programmatically: Internal path use...
Andrew Fletcher
Working in Drupal 9.x, I was loading images via the Media module.  Below 1...