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 fix for problem break points | |
Change the 900px value in two places to where you have nav/logo overlap */ | |
@media(min-width:768px) AND (max-width:900px) { | |
.inside-header { | |
display: flex; | |
flex-flow: row wrap; | |
justify-content: center; | |
} | |
#site-navigation { | |
min-width: 900px; |
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( 'pre_option_elementor_maintenance_mode_mode', function ( $option ) { | |
$parameter = 'bypass_maintenance'; // change this to whatever you like | |
if ( isset( $_GET['bypass_maintenance'] ) and $_GET['bypass_maintenance'] ) { | |
return 0; // needs to be falsy but not 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
<?php | |
// Convert Mobile to tel link | |
add_filter('acf/format_value/name=ACF_MOBILE_FIELD_NAME', 'convert_phone_to_link', 20, 3); | |
function convert_phone_to_link ($value, $post_id, $field) { | |
if (!$value) { | |
return $value; | |
} | |
$tel_link = preg_replace('/[^0-9]/', '', $value); |
OlderNewer