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
/* | |
Add this code to the Avada Custom CSS. | |
Add the class "equal-height" to your Content Boxes Options container, not a single Content Box. | |
The editor preview will not show the change but reload the live page to see the results. | |
*/ | |
.fusion-content-boxes.equal-height { | |
display: flex; | |
align-items: stretch; | |
flex-wrap: wrap; |
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
/* For Avada by ThemeFusion */ | |
/* The equal height problem is only an issue for larger devices. */ | |
@media screen and (min-width: 1024px) { | |
/* Make the column content equal height. */ | |
.your-classname-here .fusion-column-wrapper { | |
height: 440px !important; /* Adjust for your content. */ | |
} | |
/* These CSS selectors depend on what Avada buttons you use. Note the button-2 class--change as needed. */ | |
.fusion-button.button-flat.button-small.button-default.button-2.fusion-button-default-span.fusion-button-default-type { |
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_enqueue_scripts', 'custom_disable_theme_js' ); | |
function custom_disable_theme_js() { | |
Fusion_Dynamic_JS::deregister_script('avada-comments'); | |
Fusion_Dynamic_JS::deregister_script('avada-general-footer'); | |
Fusion_Dynamic_JS::deregister_script('avada-mobile-image-hover'); | |
Fusion_Dynamic_JS::deregister_script('avada-quantity'); | |
Fusion_Dynamic_JS::deregister_script('avada-scrollspy'); | |
Fusion_Dynamic_JS::deregister_script('avada-select'); |
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 | |
/** | |
* Track membership level as Custom Dimension 1 (dimension1) in your Google Analytics tracking code. | |
* | |
* Requires Paid Memberships Pro and the Google Analytics Dashboard for WP by ExactMetrics (formerly GADWP) plugin. | |
*/ | |
function my_pmpro_membership_level_gadwp_analytics( $gadwp ) { | |
$commands = $gadwp->get(); // Get commands array | |
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 to avada child theme functions.php | |
//async all js | |
function add_async_attribute($tag, $handle) | |
{ | |
if ('my-js-handle' !== $handle) | |
return $tag; | |
return str_replace(' src', ' async="async" src', $tag); | |
} | |
add_filter('script_loader_tag', 'add_async_attribute', 10, 2); |
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
SELECT users.*, members.membership_id, level.name | |
FROM wp_users AS users | |
JOIN wp_pmpro_memberships_users AS members | |
ON users.ID = members.user_id | |
JOIN wp_pmpro_membership_levels AS level | |
ON members.membership_id = level.id | |
WHERE members.status = 'active' |
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
/** | |
* bbPress specific CSS | |
* | |
* @package bbPress | |
* @subpackage Theme | |
*/ | |
/* =bbPress Style | |
-------------------------------------------------------------- */ |
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 | |
/** | |
* Converts shortcode names from Fusion Core | |
* to a format that Fusion Builder will accept. | |
* | |
* @author ThemeFusion | |
* @copyright (c) Copyright by ThemeFusion | |
* @link http://theme-fusion.com | |
* @package Avada | |
* @subpackage Core |
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 | |
/** | |
* Calculate days remaining for current membership level and add it to new subscription. | |
* Only works for PMPro WooCommerce Integration | |
* Add this code to your PMPro Customizations Plugin - https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
* www.paidmembershipspro.com | |
*/ | |
function pmprowoo_add_days_to_level( $level_array ) { | |
$level_obj = pmpro_getLevel($level_array['membership_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
/* start new bbpress */ | |
.bbp-topic-voice-count { | |
display: none; | |
} | |
.bbp-topic-reply-count { | |
color: #aaa; | |
font-size: 80%; | |
margin-right: 20px !important; | |
width: inherit !important; |
NewerOlder