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
First, add some CSS to your theme: | |
.facetwp-template { display: none; } | |
.facetwp-template.visible { display: block; } | |
Then you can use this JS to dynamically add the CSS class after the first refresh: | |
(function($) { |
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 echo do_shortcode('[ultimatemember_message_button user_id='.$user_id.']'); ?> |
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 | |
/** uncheck the parent when checking a child checkbox **/ | |
add_action( 'wp_footer', function() { ?> | |
<script> | |
(function($) { | |
$(document).on('click', '.facetwp-depth .facetwp-checkbox', function() { | |
if ( $( this ).hasClass( "checked" ) ) { | |
$(this).parent().prev().removeClass('checked'); | |
FWP.autoload(); |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<meta http-equiv="x-dns-prefetch-control" content="on"> | |
<link rel="dns-prefetch" href="https://c.mql5.com"> | |
<meta name="format-detection" content="telephone=no"> | |
<link rel="shortcut icon" href="https://c.mql5.com/i/favicon.ico"> | |
<meta name="msapplication-config" content="none"/> |
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 | |
/* Template Name: games dynamic */ | |
global $avia_config; | |
/* | |
* get_header is a basic wordpress function, used to retrieve the header.php file in your theme directory. | |
*/ | |
get_header(); | |
if( get_post_meta(get_the_ID(), 'header', true) != 'no') echo avia_title(); | |
?> | |
<div class='container_wrap container_wrap_first main_color shop_columns_3 <?php avia_layout_class( 'main' ); ?>'> |
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 | |
/** | |
** update of https://facetwp.com/fade-template-content-during-refresh/ to only fade in on pre-load | |
**/ | |
add_action( 'wp_footer', function() { ?> | |
<style> | |
.facetwp-template { | |
opacity: 0; | |
} |
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
<script> | |
(function($) { | |
$(document).on('facetwp-refresh', function() { | |
location.reload() | |
}); | |
})(jQuery); | |
</script> |
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
<script> | |
(function($) { | |
$(document).on('facetwp-refresh', function() { | |
if (FWP.loaded) { // after the initial pageload | |
FWP.parse_facets(); // load the values | |
FWP.set_hash(); // set the new URL | |
location.reload(); | |
return 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 | |
/* Template Name: games dynamic */ | |
global $avia_config; | |
/* | |
* get_header is a basic wordpress function, used to retrieve the header.php file in your theme directory. | |
*/ | |
get_header(); | |
if( get_post_meta(get_the_ID(), 'header', true) != 'no') echo avia_title(); | |
$loading_gif_url = home_url().'/wp-content/uploads/2016/08/loading.gif'; |
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 | |
/** | |
* The Template for displaying product archives, including the main shop page which is a post type archive | |
* | |
* This template can be overridden by copying it to yourtheme/woocommerce/archive-product.php. | |
* | |
* HOWEVER, on occasion WooCommerce will need to update template files and you (the theme developer). | |
* will need to copy the new files to your theme to maintain compatibility. We try to do this. | |
* as little as possible, but it does happen. When this occurs the version of the template file will. | |
* be bumped and the readme will list any important changes. |