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
function my_remove_default_et_pb_custom_search() { | |
remove_action( 'pre_get_posts', 'et_pb_custom_search' ); | |
add_action( 'pre_get_posts', 'my_et_pb_custom_search' ); | |
} | |
add_action( 'wp_loaded', 'my_remove_default_et_pb_custom_search' ); | |
function my_et_pb_custom_search( $query = false ) { | |
if ( is_admin() || ! is_a( $query, 'WP_Query' ) || ! $query->is_search ) { | |
return; |
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: Bloom | |
* Plugin URI: http://www.elegantthemes.com/plugins/bloom/ | |
* Version: 1.3.2 | |
* Description: A simple, comprehensive and beautifully constructed email opt-in plugin built to help you quickly grow your mailing list. | |
* Author: Elegant Themes | |
* Author URI: http://www.elegantthemes.com | |
* License: GPLv2 or later | |
*/ |
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
[1] Saved replies chat. | |
Customer: | |
- Hey there. | |
- I'm using the 3.9 version of Divi Builder in the dashboard and would like to import the Agency Home layout, can you provide some instructions on how to load it from there? I don't like the Visual Builder. | |
Mitch: (tell them that they should already see that the customer mentioned latest version and the Backend Builder so they should only include the relevant info and screenshots from the saved reply) | |
- #s v divi library how to use |
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: Bloom | |
* Plugin URI: http://www.elegantthemes.com/plugins/bloom/ | |
* Version: 1.3.2 | |
* Description: A simple, comprehensive and beautifully constructed email opt-in plugin built to help you quickly grow your mailing list. | |
* Author: Elegant Themes | |
* Author URI: http://www.elegantthemes.com | |
* License: GPLv2 or later | |
*/ |
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
class OAuthSignatureMethod_HMAC_SHA1 extends OAuthSignatureMethod { | |
function get_name() { | |
return "HMAC-SHA1"; | |
} | |
public function build_signature($request, $consumer, $token) { | |
$base_string = $request->get_signature_base_string(); | |
$request->base_string = $base_string; | |
$key_parts = 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
if(!class_exists('OAuthSignatureMethod_HMAC_SHA1') ) { | |
class OAuthSignatureMethod_HMAC_SHA1 extends OAuthSignatureMethod { | |
function get_name() { | |
return "HMAC-SHA1"; | |
} | |
public function build_signature($request, $consumer, $token) { | |
$base_string = $request->get_signature_base_string(); | |
$request->base_string = $base_string; |
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 | |
class Cu_ET_Builder_Module_Contact_Form extends ET_Builder_Module { | |
protected function _render_module_wrapper( $output = '', $render_slug = '' ) { | |
return $output; | |
} | |
function init() { | |
$this->name = esc_html__( 'Contact Form', 'et_builder' ); | |
$this->slug = 'et_pb_contact_form'; | |
$this->vb_support = 'on'; |
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
<div id="fb-root"></div> | |
<script>(function(d, s, id) { | |
var js, fjs = d.getElementsByTagName(s)[0]; | |
if (d.getElementById(id)) return; | |
js = d.createElement(s); js.id = id; | |
js.src = 'https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v3.0'; | |
fjs.parentNode.insertBefore(js, fjs); | |
}(document, 'script', 'facebook-jssdk'));</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
function contact_form_module_setup() { | |
get_template_part( 'includes/builder/module/ContactForm' ); // require the new module file | |
remove_shortcode( 'et_pb_contact_form' ); // remove the original module shortcode | |
add_shortcode( 'et_pb_contact_form', array( new Cu_ET_Builder_Module_Contact_Form(), '_shortcode_callback' ) ); // add the new module shortcode | |
} | |
add_action( 'et_builder_ready', 'contact_form_module_setup' ); // hook with the et_builder_ready filter |
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
function video_module_setup() { | |
get_template_part( 'module/Video' ); remove_shortcode( 'et_pb_video' ); | |
add_shortcode( 'et_pb_video', array( new Cu_ET_Builder_Module_Video(), '_shortcode_callback' ) ); | |
} | |
add_action( 'et_builder_ready', 'video_module_setup' ); |