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
{"content":[{"id":"cysbvm","name":"section","parent":0,"children":["qfwbya"],"settings":{}},{"id":"qfwbya","name":"container","parent":"cysbvm","children":["koquyf"],"settings":{"_rowGap":"2em","_display":"grid","_gridTemplateColumns":"repeat( auto-fit, minmax(250px, 1fr) )","_gridGap":"4em"}},{"id":"urtmqa","name":"xdynamictable","parent":"ezmxff","children":[],"settings":{"taxonomies":["category","post_tag"],"extrasCustomQueryCode":"<style>\nh1.my-heading {\n color: crimson;\n}\n</style>\n\n<h1 class='my-heading'>Just some custom HTML</h1>","content_items":[{"title":"Column","id":"sdwuen","data":"{post_title}"}],"content_items_static":[{"title":"Column"}],"row_items":[{"title":"Row"}],"hasLoop":true,"query":{"tax_query_advanced":[{"id":"ffjfsj","taxonomy":"category","field":"term_id","terms":"{term_id}"}]}}},{"id":"koquyf","name":"xtabs","parent":"qfwbya","children":["xxcmdj","jnuant"],"settings":{"tabActiveBackgroundColor":{"hex":"#dddedf"},"accordionBreakpoint":767,"iconTransform":{"rotateX":"0deg"},"ico |
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( 'bricksextras/breadcrumbs/', 'tax_custom_breadcrumbs' ); | |
function tax_custom_breadcrumbs( $crumbs ) { | |
$myPostType = 'pag_island'; | |
$myTaxonomy = 'pag-category'; | |
$crumbPosition = 1; | |
/* check the current view is the 'pag-category' taxonomy archive before changing anything */ |
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
document.addEventListener("DOMContentLoaded", () => { | |
const modal = document.getElementById('%%ELEMENT_ID%%').parentElement; | |
let prevClassState = modal.classList.contains('live'); | |
const mediaPlayer = modal.querySelector('vime-player') | |
const modalObserver = new MutationObserver(function(mutations) { | |
mutations.forEach(function(mutation) { | |
if(mutation.attributeName == "class"){ |
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
document.addEventListener("DOMContentLoaded", () => { | |
const modal = document.getElementById('%%ELEMENT_ID%%').parentElement; | |
let prevClassState = modal.classList.contains('live'); | |
const modalObserver = new MutationObserver(function(mutations) { | |
mutations.forEach(function(mutation) { | |
if(mutation.attributeName == "class"){ | |
var currentClassState = mutation.target.classList.contains('live'); | |
if(prevClassState !== currentClassState) { |
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($){ | |
$('body').on( 'added_to_cart', function(){ | |
let offCanvas = '#myoffcanvas'; // Change to your offcanvas selector (class or ID) | |
$('html,body').addClass('off-canvas-toggled'); | |
$(offCanvas).addClass('oxy-off-canvas-toggled'); | |
$(offCanvas).find('.offcanvas-inner').removeAttr('inert'); | |
setTimeout(() => { |
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('bricksextras/minify', 'preventMinify', 10, 2); | |
function preventMinify( $minifyScripts, $script_name ) { | |
if ('dynamictable' === $script_name) { | |
return false; | |
} else { | |
return true; | |
} |
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 new search input */ | |
add_filter( 'get_search_form', 'my_custom_search', 100 ); | |
function my_custom_search( $form ) { | |
$newInput = '<input type="hidden" name="" value="">'; /* change to your hidden input HTML */ | |
$submit = '<input type="submit" class="search-submit" value="Search">'; |
NewerOlder