Moesia child is now blank


#1

I have several child theme sites off moesia template (moesia-child) and all 5 of them as of 3:00PM MST tuesday went blank. stagingforce.com/test, stagingforce.com/waltdanley, etc.

I turned off plugins, talked to hosting company to no avail. They said it was a theme issue. When i choose the moesia (not child theme) theme within WP it works; however, that is not the correct template. I need to use child theme. URGENT help is needed my clients are complaining.

Thank you thank you.


#2

Hello there,

Looks like there is something wrong in your child theme, please enable WP_DEBUG to know what is caused it.


#3

Awan, I turned on debug and log file and nothing shows up in content directory.


#4

Awan, I turned on the main moesia theme as a stop gap, but need to turn on moeisa-child back on for all 5 sites. once we figure out what issue is.


#5

Maybe you have a similar problem to what I experienced after the Moesia theme update yesterday. I had large parts of my wife’s site disappear too. The problem ended up being my child theme overrode some of the parent Moesia theme javascript which was updated yesterday. I just had to port over those changes to my version of the script and then everything was copacetic.

I would check to see if any of the files changed in Moesia 1.36 versus Moeisa 1.35 are files you have overridden in your child theme. If they are, then you’ll want to port over the changes from those files to you child versions.

I’ve included the diff between 1.36 and 1.35 for you to use to see if there are files you need to update (lines starting with ‘-’ are old lines from 1.35 that were removed and lines starting with ‘+’ are the new lines added in 1.36. All other lines are not changed. The placed the diff in a pastebin here:

http://paste.ubuntu.com/14582365/

FYI, my issue was documented here:


#6

Thank you for your help. I am a novis at this and afraid to go through code and make those types of changes. I am ok to do total copy and paste. Here is the code that is in Moesia scripts.js file today (not as long as yours). THe moesia child folder only had 3 files in it (footer, functions, style.css). Can you write instructions for a third grader please. Is there an easier to do this? I appreciate all your guidance…THANKS!

//Sets the header image height
jQuery(function($) {
if ( $(window).width() > 1024 ) {
var height = $(window).height();
$(’.has-banner, .overlay’).css(‘height’, height);
$(window).resize(function() {
var height = $(window).height();
$(’.has-banner, .overlay’).css(‘height’, height);
});
}
$(window).resize(function(){
if ($(".header-image").css(“display”) == “none” ){
var height = $(window).height();
$(’.has-banner, .overlay’).css(‘height’, height);
} else {
$(’.has-banner, .overlay’).css(‘height’, ‘auto’);
}
});
});

//Page loader
jQuery(function($) {
$(’#page’).css(‘visibility’, ‘visible’);
});

//Menu dropdown animation
jQuery(function($) {
$(’.sub-menu’).hide();
$(’.main-navigation .children’).hide();
$(’.menu-item’).hover(
function() {
$(this).children(’.sub-menu’).slideDown();
},
function() {
$(this).children(’.sub-menu’).hide();
}
);
$(’.main-navigation li’).hover(
function() {
$(this).children(’.main-navigation .children’).slideDown();
},
function() {
$(this).children(’.main-navigation .children’).hide();
}
);
});

//Fit Vids
jQuery(function($) {

$(document).ready(function(){
$(“body”).fitVids();
});

});

//Waypoints
jQuery(function($) {
$(’.fact’).waypoint(function(down) {
$(’.fact’).each(function () {
var $this = $(this);
$({ Counter: 0 }).animate({ Counter: $this.attr(‘id’) }, {
duration: 1000,
easing: ‘swing’,
step: function () {
$this.text(Math.ceil(this.Counter));
}
});
});
},
{
offset: ‘90%’,
triggerOnce: true
});
$(’.skill-bar’).waypoint(function(down) {
$(’.skill-bar’).each(function() {
var bar = $(this);
var max = $(this).attr(‘id’);
var progressBarWidth = max * bar.width() / 100;
bar.find(‘div’).animate({ width: progressBarWidth }, 1000).html(max + "% ");
});
},
{
offset: ‘90%’,
triggerOnce: true
});
});

//Make the menu sticky
jQuery(function($) {
$(window).bind(“load”, function() {
$(".top-bar").sticky();
});
});

//Better support for third party widgets
jQuery(function($) {
$(’.so-panel.widget, .panel.widget’).addClass(‘container’);
});

//Open social links in a new tab
jQuery(function($) {
$( ‘.social-area li a, .social-widget a’ ).attr( ‘target’,’_blank’ );
});

//Smooth scrolling
jQuery(function($) {
$(‘a[href*=#]:not([href=#])’).click(function() {
if (location.pathname.replace(/^//,’’) == this.pathname.replace(/^//,’’) && location.hostname == this.hostname) {
var target = $(this.hash);
var topbar = $(’.top-bar’).height();
target = target.length ? target : $(’[name=’ + this.hash.slice(1) +’]’);
if ( this.hash != ‘#site-navigation’ && $(window).width() > 1024 ) {
if (target.length) {
$(‘html,body’).animate({
scrollTop: target.offset().top - topbar + 40
}, 800);
return false;
}
} else {
if (target.length) {
$(‘html,body’).animate({
scrollTop: target.offset().top
}, 800);
return false;
}
}
}
});
});

//Search form
jQuery(function($) {
$(’.nav-search’).click(function() {
$(’.nav-search-box’).addClass(‘search-visible’);
});
$(’.search-close’).click(function() {
$(’.nav-search-box’).removeClass(‘search-visible’);
});
});


#7

You do not need to make any changes to files if your child theme does not override the parent theme version. You said your child theme only overrides footer.php, functions.php and style.css, so those are the only files you should look for changes in. The new Moesia 1.36 update doesn’t modify either footer.php or functions.php, so you can ignore those.

That leaves only style.css which is overridden differently that the other files, meaning you get both the parent style.css file and the child style.css file. Have you made a local change to #page in either your child’s style.css or some custom css plugin that might be conflicting with the parent’s style.css?

As a test, can you comment out the parent’s style.css line that changed wrt #page? Meaning, change the following lines from the parent style.css so they look like:

#page {
// visibility: hidden;
-webkit-animation: fadein 1s;
animation: fadein 1s;
}

Does the above change help or not?