Google Analytics
Adds the Google Analytics web statistics tracking system to your website.
Adds the Google Analytics web statistics tracking system to your website.
We want to change the image filename:
pexels-photo-721996.jpeg
to:
Flexbox container with child absolute positioned element vertically centered and left aligned
.container_221 { display: flex; justify-content: center; align-items: center; position: relative; background: green; height: 100%; width: 100%; min-width: 250px; } .text_221 { position: absolute; background: red; padding: 12px; }
Creates a WebP copy of image style derivatives to decrease loading times.
Whenever an image style derivative is created this module will also create a WebP copy of the derivative to be served to supporting browsers.
An example is shown below. This is within the .htaccess (htaccess) file.
# To display the image that has been indexed on PINTREST
# Redirecting old location to new location within Drupal
# See: https://stackoverflow.com/questions/10871812/htaccess-image-redirection-for-specific-images-on-one-to-one-basis
RewriteRule ^images/Island_Corian_Worktop_Iso_sm.jpg$ https://www.solidity.co.uk/sites/default/files/images/Island_Corian_Worktop_Iso_sm.jpg [L,R=301]
We can use the hook_form_alter() function. You can place it within your theme.theme file or in your custom module.
/**
* Implementation of hook_form_alter()
* To: change the class on the submit button on the search_block_form from 'btn-primary' to 'btn-secondary'
*/
function {mythemename}_form_alter(&$form, &$form_state, $form_id) {
if ($form_id == 'search_block_form') {
$form['actions']['submit']['#attributes']['class'][] = 'btn-secondary';
}
}
If you want to print out the variables you can as below or the Devel module.
Block Class allows users to add classes to any block through the block's configuration interface. By adding a very short snippet of PHP to a theme's block.tpl.php file, classes can be added to the parent <div class="block ..."> element of a block. Hooray for more powerful block theming!
1.1 Navigate to your View within the Views UI.
2.1 Under 'Advanced' select Add by Relationships