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 custom_pre_get_posts_query( $q ) { | |
$tax_query = (array) $q->get( 'tax_query' ); | |
$tax_query[] = array( | |
'taxonomy' => 'product_cat', | |
'field' => 'slug', | |
'terms' => array( 'PUT THE CATEGORY TO HIDE HERE' ), // Don't display products in the this category on the shop page. | |
'operator' => 'NOT IN' | |
); | |
$q->set( 'tax_query', $tax_query ); | |
} |
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
/* to make page content full width */ | |
body.page .entry .entry-content > *, .entry .entry-summary > * { | |
max-width: none; | |
} | |
/* to make posts content full width */ | |
.entry .entry-content p | |
{ | |
max-width: none; | |
} |
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
~/wp-content/plugins/atomic-blocks/dist/assets/js/dismiss.js?ver=1556813107:6 | |
When that is put into a browser, it gives this: | |
(function($) { | |
$(document).ready(function() { | |
const elems = document.querySelectorAll('.ab-block-notice.ab-dismissable[data-id]'); | |
elems.forEach(el => { |