Skip to content

Instantly share code, notes, and snippets.

@hansswolfs
hansswolfs / wpml-tagline-active-language.php
Last active January 19, 2019 10:14
WPML - Modify site description (tagline) depending on active language - Genesis Framework
//* 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
hansswolfs / functions.php
Created January 1, 2019 20:24
Create a Gravity Forms form submission page
<?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.
@hansswolfs
hansswolfs / 0_reuse_code.js
Created December 5, 2015 19:35
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console