This file contains hidden or 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
<?php | |
/* Shortcode to add parent title above main title if exists */ | |
add_shortcode( 'page_parent', 'output_page_parent' ); | |
function output_page_parent() { | |
global $post; | |
$post_parentID = $post->post_parent; | |
if($post_parentID) { | |
$output = '<h4><a href="'.get_permalink( $post_parentID ).'">'.get_the_title( $post_parentID ).' ></a></h4>'; | |
} | |
$output .= '<h1>'.get_the_title( $post ).'</h1>'; |
This file contains hidden or 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
<?php | |
function check_field_connections( $is_visible, $node ) { | |
if ( isset( $node->settings->connections ) ) { | |
foreach ( $node->settings->connections as $key => $connection ) { | |
if ( ! empty( $connection ) && empty( $node->settings->$key ) ) { | |
return false; | |
} | |
} | |
} |
This file contains hidden or 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
/* Move the wp-admin bar to the bottom */ | |
#wpadminbar { | |
bottom: 0; | |
position: fixed; | |
top: initial; | |
} | |
body.logged-in.admin-bar { | |
margin-top: -32px; | |
} | |
@media(max-width:782px) { |
This file contains hidden or 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
/* Move the wp-admin bar to the bottom when in mobile view */ | |
@media(max-width:782px) { | |
#wpadminbar { | |
bottom: 0; | |
position: fixed; | |
top: initial; | |
} | |
body.logged-in.admin-bar { | |
margin-top: -46px; | |
} |
This file contains hidden or 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
@media(min-width:768px) { | |
#wpadminbar { | |
opacity: 0; | |
transition: all 0.5s ease; | |
} | |
#wpadminbar:hover { | |
opacity: 1; | |
} | |
body.admin-bar { | |
margin-top: -32px !important; |
This file contains hidden or 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
.fl-row-full-height .fl-row-content-wrap { | |
min-height: calc(100vh - 282px); | |
} |
This file contains hidden or 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
.full_width-editorial > .fl-row-content-wrap { | |
padding: 0 6%; | |
} |
This file contains hidden or 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
// From https://wpbeaches.com/anchor-link-offset-to-other-pages-with-fixed-header-size/ | |
jQuery(document).ready(function($) { | |
// set a variable for the anchor link which is the location.hash | |
var anchorLink = $(window.location.hash); | |
// test to see if the link is a anchor link, if not the length will have no value, this is done to avoid js errors on non anchor links | |
if ( anchorLink.length ) { | |
// set an element as the fixed entity, header in this case and get its height | |
var offsetSize = $("header").innerHeight(); |
This file contains hidden or 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
@media(min-width: 841px) { | |
.inside-header { | |
display: flex; | |
align-items: center; | |
} | |
.site-logo { | |
width: 20%; | |
} | |
.site-logo:not(.sticky-logo) img { | |
width: 140px; |
This file contains hidden or 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
<?php | |
add_filter( 'generate_default_color_palettes', 'tu_custom_color_palettes' ); | |
function tu_custom_color_palettes( $palettes ) { | |
$palettes = array( | |
'#000000', | |
'#FFFFFF', | |
'#F1C40F', | |
'#E74C3C', | |
'#1ABC9C', | |
'#1e72bd', |