Skip to content

Instantly share code, notes, and snippets.

<?php
/**
* Module Divider class.
*/
class ET_Builder_Module_Field_Divider extends ET_Builder_Module_Field_Base {
/**
* List of available dividers for the sections.
* @var array
*/
public $dividers = array();
/*! ET frontend-builder-scripts.js */
(function($){
var $et_window = $(window);
window.et_load_event_fired = false;
window.et_is_transparent_nav = $( 'body' ).hasClass( 'et_transparent_nav' );
window.et_is_vertical_nav = $( 'body' ).hasClass( 'et_vertical_nav' );
window.et_is_fixed_nav = $( 'body' ).hasClass( 'et_fixed_nav' );
window.et_is_minified_js = $( 'body' ).hasClass( 'et_minified_js' );
window.et_is_minified_css = $( 'body' ).hasClass( 'et_minified_css' );
go to header.php and find
<span id="et-info-phone"><?php echo et_sanitize_html_input_text( $et_phone_number ); ?></span>
Please note that the code shows up 2 times and not just one time so replace it in both places
replace it with
<span id="et-info-phone"><a href="callto:<?php echo et_sanitize_html_input_text( $et_phone_number ); ?>"><?php echo et_sanitize_html_input_text( $et_phone_number ); ?></a></span>
<?php
class ET_Builder_Module_Slider_Item extends ET_Builder_Module {
function init() {
$this->name = esc_html__( 'Slide', 'et_builder' );
$this->slug = 'et_pb_slide';
$this->fb_support = true;
$this->type = 'child';
$this->child_title_var = 'admin_title';
$this->child_title_fallback_var = 'heading';
<script>
jQuery( document ).ready(function() {
jQuery('.nav li ul').addClass('my_et_menu').hide();
jQuery('.nav li a').click(function(){
jQuery(this).parent().find('ul').first().toggle();
Find:
( $title ? sprintf( '<%1$s class="et_pb_module_header">%2$s</%1$s>', et_pb_process_header_level( $header_level, 'h1' ), $title ) : '' ),
( $subhead ? sprintf( '<span class="et_pb_fullwidth_header_subhead">%1$s</span>', $subhead ) : '' ),
replace it with
( $title ? sprintf( '<%1$s class="et_pb_module_header">%2$s</%1$s>', et_pb_process_header_level( $header_level, 'h1' ), do_shortcode($title) ) : '' ),
( $subhead ? sprintf( '<span class="et_pb_fullwidth_header_subhead">%1$s</span>', do_shortcode($subhead) ) : '' ),
onmouseover= " this.src= http://
with
onmouseover= " this.src=' http://
find:
<?php if ( ! in_array( $post_format, array( 'link', 'audio', 'quote' ) ) ) : ?>
replace with
<?php if ( ! in_array( $post_format, array( 'link', 'audio' ) ) ) : ?>
## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType text/html "access 1 month"
ExpiresByType application/pdf "access 1 month"