Skip to content

Instantly share code, notes, and snippets.

hansswolfs / wpml-tagline-active-language.php
Last active Jan 19, 2019
WPML - Modify site description (tagline) depending on active language - Genesis Framework
View wpml-tagline-active-language.php
//* 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">';
hansswolfs / functions.php
Created Jan 1, 2019
Create a Gravity Forms form submission page
View functions.php
# Adding a Gravity Form form submission page
# Author: Hans Swolfs
# Website:
# Version: 1.0
# Let's rock & roll
# add the filter to create the review page.
# the default filter is gform_review_page.
hansswolfs / 0_reuse_code.js
Created Dec 5, 2015
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console