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
{echo:get_field('field_name')} |
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
<?php | |
/* custom function for checking status of user in membership (add to code snippets or child theme) | |
* @return bool True if user has the status in that memberhip. | |
*/ | |
function rcp_member_status( $membership_level, $status ) { | |
$customer = rcp_get_customer_by_user_id( get_current_user_id() ); | |
if ($customer) { |
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
jQuery(document).ready(($) => { | |
const headingText = "New York Tipps - "; | |
tocbot.options.headingLabelCallback = (string) => { | |
return string.replace(headingText, ""); | |
} | |
tocbot.refresh() | |
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
jQuery(document).ready(($) => { | |
$('#%%ELEMENT_ID%% .oxy-dynamic-tabs_panel-group').on('keydown', (e) => { | |
if ( 65 === e.keyCode || 68 === e.keyCode ) { | |
e.stopPropagation() | |
} | |
}) | |
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
jQuery(document).ready(function($) { | |
$('.oxy-lightbox').on('extras_lightbox:close', () => { | |
$(this).find('presto-player').stop(); | |
}) | |
}) |
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
<?php | |
add_filter( 'bricks/element/render_attributes', function( $attributes, $key, $element ) { | |
$element_name = "xsocialshare"; | |
if ( $element_name === $element->name && strpos( $key, "link-") === 0 ) { | |
foreach($attributes as $attr=>$row){ | |
unset($attributes[$attr]['target']); |
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
/* colors when unselected */ | |
%root% .wpgb-facet .wpgb-button-facet li:nth-child(1) .wpgb-button { | |
background-color: red; | |
border-color: red; | |
color: white; | |
} | |
%root% .wpgb-facet .wpgb-button-facet li:nth-child(2) .wpgb-button { | |
background-color: red; |
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
<?php | |
/* do not render header if acf_hide_header field is true */ | |
add_filter('bricks/render_header', function( $header_html ) { | |
return is_singular() && get_field('acf_hide_header') ? '' : $header_html; | |
}); | |
/* do not render footer if acf_hide_footer field is true */ | |
add_filter('bricks/render_footer', function( $footer_html ) { |
NewerOlder