My Footers/Headers keep disappearing

Hi,

Long time X Pro user - I’ve used it on dozens of sites. This is a new issue I started having last week that has cost me a lot of time. This issue has happened on two different sites on two different hosts.

Here’s what’s happening:
I’ll be editing a header or footer and I refresh the site to check my updates and there’s no header/footer (whichever one I’m editing). I go back to the editor and all of the header/footer content is gone and I have no way to recover it.

Hello Frank,

Thanks for asking. :slight_smile:

I checked the header and in that I added couple of elements and then saved the changes. On my end I can see changes getting reflected without any issues. I suggest you to try clearing the cache and then see how it goes.

In case problem is still there on your end, please record a video screencast for us to understand the issue that you are facing.

Thanks.

My entire footer content is gone.

I’ve been working on it for a week. It’s been fine until today. The content was just deleted.

Any way to recover past revisions? I will lose a ton of time having to recreate the footer. I’ve never had this issue before.

Hi Frank,

Unfortunately, the footer has no restore feature. Perhaps you have saved it as a template? You can import it back. Another way is restoring database to when it’s still working and you may contact your hosting provider for that request.

And as a recommendation, please don’t add any link to your footer or header builder with target, example, <a target="_blank"></a>, it’s known conflict between the builder and WP 5.1. And it will remove the content, perhaps WP 5.1 has internal processing that now removes links with blank target as part of security, but resulting to corrupted data. I’m not fully sure and it’s just recent.

Thanks!

That’s definitely what happened then… but I have to have _blank links in the header and footer. Standard practice is that social media and other 3rd party links should open in a new tab.

Hi again,

As a work around you can add the target="_blank" attribute using a custom script so it doesn’t conflict with your header or footer. Just assign a class new-tab to all of your social links and then add the following code in the Theme Options > JS:

jQuery(document).ready(function($){
	$('.new-tab').each(function(){
		$(this).attr('target', '_blank' );
	});
});

This will add target="_blank" attribute to all the links that has a class new-tab. Don’t forget to clear all caches including your browser’s cache after adding the code. Let us know how this goes!

That did the trick! Thank you!

You are most welcome. :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.