Skip to content

Instantly share code, notes, and snippets.

@JanHoek
JanHoek / add-responsive-toggle.php
Last active May 1, 2021 09:07
Pure CSS Responsive Menus For Genesis
<?php //* Don't copy the php
//* Activate the use of Dashicons
add_action( 'wp_enqueue_scripts', 'load_dashicons_front_end' );
function load_dashicons_front_end() {
wp_enqueue_style( 'dashicons' );
}
//* Add Extra div to nav for responsive menu
@JanHoek
JanHoek / to-top-functions.php
Last active May 10, 2019 04:34
Simple en smooth Back-To-Top button for Genesis
<?php //* Don't copy the php
// Enqueue To Top script
add_action( 'wp_enqueue_scripts', 'to_top_script' );
function to_top_script() {
wp_enqueue_script( 'to-top', get_stylesheet_directory_uri() . '/js/to-top.js', array( 'jquery' ), '1.0', true );
}
// Add To Top button
add_action( 'genesis_before', 'genesis_to_top');
@JanHoek
JanHoek / header-menu-columns.css
Created September 2, 2014 20:54
Multi Column Genesis Header Navigation
.nav-header a {
padding: 4px;
}
.nav-header .genesis-nav-menu > .menu-item {
width: 33%;
float:left;
}
@media only screen and (max-width: 1023px) {