Skip to content

Instantly share code, notes, and snippets.

View christophbach's full-sized avatar

Christoph Bach christophbach

View GitHub Profile
@christophbach
christophbach / config.yaml
Created May 11, 2018 08:21
Patternlab viewport configuration
# besides all you other config stuff ;)
ishViewportRange:
s: [320, 639]
m: [640, 1023]
l: [1024, 2600]
ishMinimum: '320'
ishMaximum: '2600'
@christophbach
christophbach / contao-settings
Last active May 2, 2018 10:02
Add SVG elements to allowed HTML elements of Contao
<circle><defs><ellipse><g><line><linearGradient><rect><path><polygon><polyline><symbol><stop>
@christophbach
christophbach / functions.php
Last active June 6, 2018 08:48
Wordpress functions.php
/**
* Remove REST API
*/
function remove_rest_api () {
remove_action('wp_head', 'rest_output_link_wp_head', 10);
remove_action('wp_head', 'wp_oembed_add_discovery_links', 10);
}
add_action('after_setup_theme', 'remove_rest_api');