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 copy this line | |
// Copy from under this line and paste into your child theme's functions.php | |
$unslash_iterarions = 2; //at least 2 times | |
for ( $i = 1; $i <= $unslash_iterarions; $i++ ) { | |
add_filter( 'llms_access_before_save_plan', 'wp_unslash', $i ); | |
} |
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
body.llms-is-focused .content-area { | |
background: #fff none; | |
padding:0; | |
overflow-y: auto; | |
position:fixed; | |
width:100%; | |
height:100%; | |
top:0; | |
left:0; | |
bottom:0; |
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
add_filter( 'tc_disabled_front_js_parts', 'pc_disable_dropdown_placement_script' ); | |
function pc_disable_dropdown_placement_script( $_parts ){ | |
return array_merge( $_parts, array('Czr_DropdownPlace' => array()) ); | |
} |
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 | |
/** | |
* The template for displaying Listing Archive pages | |
* | |
* @link http://codex.wordpress.org/Template_Hierarchy | |
* | |
* @package WP Listings | |
* @since 0.1.0 | |
*/ |
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 | |
/** | |
* The Template for displaying all single listing posts | |
* | |
* @package WP Listings | |
* @since 0.1.0 | |
*/ | |
add_action('wp_enqueue_scripts', 'enqueue_single_listing_scripts'); | |
function enqueue_single_listing_scripts() { |
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
add_filter('tc_opt_tc_img_smart_load', 'smartload_in_one_page'); | |
function smartload_in_one_page() { | |
//is_page parameter : Page ID, title, slug, or array of such | |
return is_page('A') ? true : false; | |
} |
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
@media (max-width: 979px) { | |
.tc-header { | |
border-bottom: none; | |
} | |
header.tc-header { | |
min-height: 40px; | |
} | |
.tc-header .brand { |
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
//remove customizr metaboxes from custom post types edit screen | |
add_action( 'add_meta_boxes', 'remove_customizr_metaboxes', 20 ); | |
function remove_customizr_metaboxes() { | |
//array of custom post types | |
$custom_post_types = get_post_types( array( '_builtin' => false ) ); | |
$current_post_type = get_post_type(); | |
if ( in_array( $current_post_type, $custom_post_types ) ) { | |
remove_meta_box('layout_sectionid', $current_post_type, 'normal' ); | |
remove_meta_box('slider_sectionid', $current_post_type, 'normal' ); | |
} |
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
//first of all disable the grid in the contexts where we want the full length | |
add_filter('tc_is_grid_enabled', 'show_post_in_full_length' ); | |
//force showing the full length text | |
add_filter('tc_show_excerpt' , 'show_post_in_full_length'); | |
//force showing the thumb (if it exists) | |
add_filter('tc_show_thumb' , 'show_thumb_in_post_list_full_length'); | |
function show_post_in_full_length($bool) { | |
if ( ! is_home() ) | |
return $bool;//<= if current context is not home | |
//then use the global option set in Appearance > Customize > Pages & Posts layout |