jQuery(document).ready(function($){ // HACK! // move the blog meta under the title, it's too much work to overwrite the fusion plugin shortcodes just for this! $('.fusion-meta-info').each(function(index,element){ $meta = $(element); $title = $meta.siblings('.post-content').find('.entry-title'); $title.after($meta); $meta.css('display','block'); }); //workaround for jumping menu // typeof jQuery.browser != 'undefined' && jQuery.browser.chrome == true && if($(window).width() > 700) { setTimeout(function (){$('.fusion-main-menu .fusion-menu').fadeIn(500);}, 1000); } // smooth anchor scrolling $('a[href*=#]:not([href=#])').click(function() { if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') || location.hostname == this.hostname) { var target = $(this.hash); target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); if (target.length) { $('html,body').animate({ scrollTop: target.offset().top }, 1000); return false; } } }); });