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
/* Fix for Convert Pro throwing reCaptcha badge out of position */ | |
.wpforms-recaptcha-container .g-recaptcha { | |
transform: none !important; | |
} |
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 // don't copy this line -- paste the code below into your theme's functions.php file | |
add_action( 'enqueue_block_editor_assets', 'jba_disable_editor_fullscreen_by_default' ); | |
/** | |
* Disable Block Editor default FullScreen mode in WordPress 5.4 | |
* | |
* @author @audrasjb | |
* @link https://jeanbaptisteaudras.com/en/2020/03/disable-block-editor-default-fullscreen-mode-in-wordpress-5-4/ | |
*/ | |
function jba_disable_editor_fullscreen_by_default() { |
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 | |
/** | |
* Add Yoast Primary Category to WooCommerce Breadcrumbs | |
* | |
* Uses the `woocommerce_get_breadcrumb` filter | |
*/ | |
add_filter( 'woocommerce_get_breadcrumb', 'probb_filter_wc_crumbs', 10, 2 ); | |
function probb_filter_wc_crumbs( $crumbs, $object ) |
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 // Do not copy this line | |
// Define a blacklist of posts that you don't want TCB to be enabled on | |
function sfp_tcb_blacklist() { | |
$blacklist = array( | |
'post', | |
'page', | |
'product' | |
); | |
return $blacklist; |
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 for ClickWP knowledgebase post type | |
* @since 3.0.5 | |
*/ | |
/** | |
* TODO | |
* 1. Popular posts section - KB articles tagged 'popular' |
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 | |
add_filter( 'astra_get_content_layout', 'child_astra_post_type_content_layout'); | |
/** | |
* Force the container layout for post type in Astra theme | |
*/ | |
function child_astra_post_type_content_layout ( $layout ){ | |
// Apply only to specific post types | |
if ( is_singular( array( 'fl-builder-template' ) ) ) { |
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 | |
add_action( 'wp', 'child_disable_astra_featured_image' ); | |
/** | |
* Disable Featured image on certain post types. | |
*/ | |
function child_disable_astra_featured_image() { | |
$post_types = array( 'page', 'tribe_events' ); | |
// return early if the current post type if not the one we want to customize. |
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> | |
<head> | |
<title></title> | |
<style></style> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.12.4/jquery.js"></script> | |
</head> | |
<body> | |
<a class="beacon-toggle" href="">Contact us</a> |
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 type="text/javascript"> | |
jQuery(function($) { | |
/* | |
Track clicks as GA events on all links with 'ga_event_click' CSS class | |
Use data attributes to identify event fields. Example use: | |
<a href="http://example.com" class="ga_event_click" data-category="Button" data-action="play video" data-label="Play Button" data-value="0">Click me</a> | |
data-category will default to 'click' if no value is provided | |
data-action will default to the URL if no value is provided |
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 | |
/* | |
Plugin Name: Lessons & Programs | |
Plugin URI: | |
Description: Adds Lessons post type and Programs taxonomies. For Genesis child themes, the Primary sidebar will be replaced with a Lessons sidebar. | |
Version: 1.0 | |
Author: ClickWP | |
Author URI: https://clickwp.com | |
Text Domain: lessons-programs | |
Domain Path: /languages |