- http://www.codanada.com -- Coming soon!
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
/** | |
* Makes a BB Column clickable. | |
* Pre-requisite: There must be an A Tag contained within the column element. | |
*/ | |
(function($){ | |
// Exit if BB layout is in edit mode. | |
if ( 'undefined' != typeof window.FLBuilderConfig ) { | |
return; | |
} | |
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 | |
// Recommended for BB | |
define('WP_MEMORY_LIMIT', '512M'); | |
define('FL_BUILDER_MODSEC_FIX', true); | |
// Enable Debugging | |
define('WP_DEBUG', true); | |
define('WP_DEBUG_LOG', true); | |
// Etc |
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, remove WooCommerce Notices box from its default location on the page (somewhere at the top). | |
*/ | |
remove_filter( 'fl_theme_builder_before_render_content', 'FLThemeBuilderWooCommerceSingular::before_render_content' ); | |
/** | |
* Create this shortcode : [fl_woocommerce_notices] | |
* You can embed this anywhere on the Themer Layout via the HTML module. | |
*/ | |
add_shortcode( 'fl_woocommerce_notices', function() { |
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 | |
/** | |
* | |
* This happens only for non-logged in users or logged in users who don't have a SportsPress User Role. | |
* There are several custom taxonomies used by SportsPress, but the code below should fix it for the Leagues (sp_league) taxonomy. | |
* | |
* Use the following filter hooks to the other SportsPress taxonomies. | |
* -- 'sportspress_register_taxonomy_season' for Season (sp_season). | |
* -- 'sportspress_register_taxonomy_venue' for Venues (sp_venue) | |
* -- 'sportspress_register_taxonomy_position' for Positions (sp_position) |
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 this to the child theme's functions.php file. | |
*/ | |
add_filter( 'fl_builder_loop_query_args', function( $query_args ){ | |
$today = date( 'd.m.Y', time() ); | |
// Past ( today > start_date ) | |
if ( 'PAST_POST_MODULE_ID_HERE' == $query_args[ 'settings' ]->id ) { | |
$query_args[ 'meta_query' ] = array( | |
'key' => 'end_date', |
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
/** | |
* | |
* BB Theme Search Results Page with no sidebars. | |
* I added as well the ID = "bb-custom-search-result" so you can apply custom CSS to it. | |
* | |
* Try the CSS below, for example, to remove the right border and increase the width of the search results content. | |
* | |
* @media (min-width: 992px){ | |
* #bb-custom-search-result{ | |
* border: 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
/** | |
* | |
* Tweak the code here: | |
* | |
* https://kb.wpbeaverbuilder.com/article/634-smooth-scrolling-tweaks-with-code | |
* | |
* to make it work when the anchor link is coming from another page. | |
* | |
*/ |
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 | |
/** | |
* | |
* This is a stripped down code based on the sample in this doc: | |
* | |
* https://kb.wpbeaverbuilder.com/article/391-customize-field-connections-themer | |
* | |
*/ | |
add_action( 'fl_page_data_add_properties', function() { |
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 | |
/** | |
* Helper class for child theme functions. | |
* | |
* @class FLChildTheme | |
*/ | |
final class FLChildTheme { | |
/** |
NewerOlder