/home/desid573/verdenaturopathy.com.au/site3/wp-content/themes/Ellen_Theme/js
Edit: /home/desid573/verdenaturopathy.com.au/site3/wp-content/themes/Ellen_Theme/js/custom.js (2358B)
jQuery(document).ready(function($) {
// wrap blog elements for 2 columns / list layout
$('.ellen_listblog .et_pb_post, .sophia_blogsides .et_pb_post, .sophia_blogsides2 .et_pb_post').each(function () {
if ($('.wrapped', this).length < 1) {
$('>:not(.entry-featured-image-url)', this).wrapAll('
');
}
$('.entry-featured-image-url img', this).wrap('
');
overlay= $('.et_overlay', this);
$('.img-wrap', this).append(overlay);
});
});
//Remove meta seperator pipes (|) and by from Divi Blog module meta
jQuery(function($) {
$(document).ready(function() {
$('.ellen_listblog .post-meta, .ellen_gridblog .post-meta').each(function() {
$(this).html($(this).html().replace(/\|/g, " "));
});
});
});
//Header
jQuery(function($) {
$(document).ready(function() {
$("body ul.et_mobile_menu li.menu-item-has-children, body ul.et_mobile_menu li.page_item_has_children").append('
');
$('ul.et_mobile_menu li.menu-item-has-children .mobile-toggle, ul.et_mobile_menu li.page_item_has_children .mobile-toggle').click(function(event) {
event.preventDefault();
$(this).parent('li').toggleClass('dt-open');
$(this).parent('li').find('ul.children').first().toggleClass('visible');
$(this).parent('li').find('ul.sub-menu').first().toggleClass('visible');
});
iconFINAL = 'P';
$('body ul.et_mobile_menu li.menu-item-has-children, body ul.et_mobile_menu li.page_item_has_children').attr('data-icon', iconFINAL);
$('.mobile-toggle').on('mouseover', function() {
$(this).parent().addClass('is-hover');
}).on('mouseout', function() {
$(this).parent().removeClass('is-hover');
})
});
});
//Video Popup
jQuery(document).ready(function($) {
$('a.video_popup, .video_popup a').magnificPopup({
type: 'iframe',
mainClass: 'mfp-fade',
removalDelay: 160,
preloader: true,
fixedContentPos: false
});
});