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
/* # GENERATEPRESS HEADER # */ | |
/* GeneratePress header fix for phablets & small tablets | |
Change the 1024px value in two places to where you have nav/logo overlap */ | |
@media(min-width: 841px) { | |
.inside-header { | |
display: flex; | |
align-items: center; | |
} | |
.site-logo { | |
width: 20%; |
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', |
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
// 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
.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
.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
@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
/* 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
/* 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
<?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; | |
} | |
} | |
} |