This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# Adding a Gravity Form form submission page | |
# Author: Hans Swolfs | |
# Website: https://hansswolfs.be | |
# Version: 1.0 | |
# Let's rock & roll | |
# add the filter to create the review page. | |
# the default filter is gform_review_page. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//* Modify the site description depending on active language - WPML - HTML5 Version - Genesis Framework | |
//* This snippet only works when a Genesis theme is active | |
//* Useful when for example you need to add extra CSS-classes to the tagline to style it with CSS | |
add_action('genesis_seo_description', 'hs_custom_site_description'); | |
function hs_custom_site_description( $tagline) { | |
$tagline = '<p class="site-description" itemprop="description">'; |