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_Blog extends ET_Builder_Module_Type_PostBased { | |
function init() { | |
$this->name = esc_html__( 'Blog', 'et_builder' ); | |
$this->plural = esc_html__( 'Blogs', 'et_builder' ); | |
$this->slug = 'et_pb_blog'; | |
$this->vb_support = 'on'; | |
$this->main_css_element = '%%order_class%% .et_pb_post'; |
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 - Create a folder called module in the child theme folder. | |
2 - Duplicate the includes/builder/module/FilterablePortfolio.php file of the parent theme into this new created folder of the child theme. | |
3 - Open the FilterablePortfolio.php file in child theme and change the name of the class ET_Builder_Module_Filterable_Portfolio (line 3) to something else (ex: Cu_ET_Builder_Module_Filterable_Portfolio). | |
4 - Do the same with the last line: new Cu_ET_Builder_Module_Filterable_Portfolio; | |
5 - Add this code in the functions.php file of the child theme: | |
function filterable_module_setup() { | |
get_template_part( 'module/FilterablePortfolio' ); remove_shortcode( 'et_pb_filterable_portfolio' ); | |
add_shortcode( 'et_pb_filterable_portfolio', array( new Cu_ET_Builder_Module_Filterable_Portfolio(), '_shortcode_callback' ) ); | |
} |
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( document ).ready(function() { | |
jQuery("#et-info").prepend('<span id="et-info-phone" class=""><a href="tel:phone_number_goes_here" rel="nofollow">city_name_goes_here</a></span>'); | |
}); | |
</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
@media (max-width: 767px) { | |
.custom-section { | |
background: url(url_goes_here); | |
} | |
} |
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
@media (min-width: 1025px) { | |
#main-header .et-top-search { | |
float: right; | |
padding-right: 20px; | |
bottom: 90px; | |
position: relative; | |
} | |
#main-header .et-top-search .et-search-field { | |
background: rgb(229, 229, 229); | |
width: 120px; |
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
@media (max-width: 980px) { | |
.page-id-8 .et_pb_section.et_pb_section_1 { | |
background-image: none !important; | |
background-color: #666; | |
} | |
.page-id-30 .et_pb_section.et_pb_section_1 { | |
background-image: none !important; | |
background-color: #666; | |
} | |
} |
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(document).ready(function(){ | |
jQuery(".custom-slider a").attr('target', '_new'); | |
}); | |
</script> |