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
function genesis_sample_blocks_body_classes( $classes ) { | |
if ( ! is_singular() || ! function_exists( 'has_blocks' ) || ! function_exists( 'parse_blocks') ) { | |
return $classes; | |
} | |
if ( ! has_blocks() ) { | |
$classes[] = 'has-no-blocks'; | |
return $classes; | |
} |
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
/* ========================================================================== | |
Color loop | |
========================================================================== */ | |
$colors: ("black": $black, "dark": $dark, "dark2": $dark2, "gray": $gray, "orange": $orange, "red": $red, "light": $light, "lightred": $lightred, "white": $white); | |
$dark: ("black": $black, "dark": $dark, "dark2": $dark2, "gray": $gray, "orange": $orange, "red": $red); | |
@each $name, | |
$color in $colors { |
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
// Import some colors and other global variables (no styles included here) | |
@import 'global'; | |
// Make sure that we only target things on single blog posts in the editor | |
body.post-type-post { | |
// Only affect things inside the editor-styles-wrapper | |
.editor-styles-wrapper { |
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
function add_relative_styles_to_gutenberg() { | |
wp_enqueue_style( 'gutenberg-blog', get_theme_file_uri( '/css/gutenberg-blog.css' ), false ); | |
} | |
add_action( 'enqueue_block_editor_assets', 'add_relative_styles_to_gutenberg' ); |
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
function gutenberg_editor_style_setup() { | |
// Add support for editor styles | |
add_theme_support( 'editor-styles' ); | |
// Enqueue editor styles | |
add_editor_style( "/css/gutenberg-style.css" ); | |
} | |
add_action( 'after_setup_theme', 'gutenberg_editor_style_setup' ); |
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
<iframe width='750px' height='400px' frameborder='no' src='https://miatam.wildapricot.org/widget/directory' onload='tryToEnableWACookies("https://miatam.wildapricot.org");' ></iframe><br/><font style='color:#ccc;font-size:9px;font-family: Verdana, Arial, Helvetica, sans-serif;'>Powered by Wild Apricot <a style='color:#ccc' href='http://www.wildapricot.com/features' target='_blank'>Membership Software</a></font><script type="text/javascript" language="javascript" src="https://miatam.wildapricot.org/Common/EnableCookies.js" ></script> |
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
/////////////////////////////// | |
// EVENTS QUERY MODIFICATION // | |
/////////////////////////////// | |
add_action( 'pre_get_posts', 'elodin_sugar_query_modificationss', 999 ); | |
function elodin_sugar_query_modificationss( $query ) { | |
if ( !$query->is_main_query() ) | |
return $query; |
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
<script> | |
jQuery(document).ready(function( $ ) { | |
//* vars for easier reference later | |
var togglelegendbutton = $( '.legendtoggle' ); | |
var legenddiv = $( '.organizerDiv' ); | |
var tabcontent = $( '.tabcontent' ); | |
//* this function does everything needed to toggle it | |
function togglethelegend() { |
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
<!-- ---------------------------------------------------------------------- --> | |
<!-- NOTE: Please add the following <META> element to your page <HEAD>. --> | |
<!-- If necessary, please modify the charset parameter to specify the --> | |
<!-- character set of your HTML page. --> | |
<!-- ---------------------------------------------------------------------- --> | |
<META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=UTF-8"> | |
<!-- ---------------------------------------------------------------------- --> | |
<!-- NOTE: Please add the following <FORM> element to your 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
// Add 'yst_prominent_words to the array of excluded taxonomies | |
function modify_categories_dropdown( $taxonomies ) { | |
$taxonomies[] = 'yst_prominent_words'; | |
return $taxonomies; | |
} | |
add_filter( 'beautiful_filters_taxonomies', 'modify_categories_dropdown', 10, 1 ); |