Missing Headers, Footer, and Global Blocks

We are having an odd issue with a website. None of our existing headers, footer, or global blocks are showing up in the requisite builder areas despite they are working fine on the front end. Moreover, If we aim to create a new header, footer, or global block even after saving they do not show up in the list.

We have toggled plugins and are up-to-date on all versions.

Hi Michael,

Thanks for reaching out.
It will be very difficult to recognize the issue without investigating through the admin dashboard. I would request you please provide login credentials for your site in a secure note to examine it further, including:

– WordPress Site URL & Login URL
– WordPress Admin username/password

To create a secure note, click the key icon underneath any of your posts.

Thanks

Hi Michael,

The issue is coming from your child theme because when I tried to activate the parent theme the header, footer and global blocks are showing properly. I suggest that you audit your code in your child theme because enhancing the code in the child theme is outside the scope of our theme support.

Hope that helps and thank you for understanding.

1 Like

Thank you! Very helpful!!! I did not think to probe the child theme, but I do believe I know where to target. We have some legacy code in there from a much earlier version of Pro.

Hi Michael,

Glad that we are able to help you.

Thanks

For anyone interested it was this little nugget that was causing the issues:

function searchfilter($query) {
if ($query->is_search && !is_admin() ) {
$query->set(‘post_type’,array(‘post’));
}
return $query;
}
add_filter(‘pre_get_posts’,‘searchfilter’);

Hi Michael,

Glad that you share it for others.

Thanks

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