Skip to content

Instantly share code, notes, and snippets.

<?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';
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' ) );
}
<script type="text/javascript">
(function($) {
function setup_collapsible_submenus() {
var $menu = $('.et_pb_fullwidth_menu .et_mobile_menu'),
top_level_link = '.et_pb_fullwidth_menu .et_mobile_menu .menu-item-has-children > a';
$menu.find('a').each(function() {
$(this).off('click');
<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>
@media (max-width: 767px) {
.custom-section {
background: url(url_goes_here);
}
}
@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;
<script>
jQuery(window).load(function(){
if (jQuery("#top-menu .cartcontents").text() == '0 artikelen'){
jQuery("#top-menu .cartcontents").text('');
}
jQuery("#top-menu .wpmenucartli").addClass('visible');
});
</script>
@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;
}
}
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery(".custom-slider a").attr('target', '_new');
});
</script>