Site logo

Archived topic

Latest update broke my site

13 replies · Started by Jorge on March 12, 2021

Viewing posts 1–14 of 14

Hi there,

After updating to the latest version a hook got broken. I have fortunately installed it in my staging site so no damage to the main site so far.

I have a hook set up to show a blue box "basado en evidencia" in all of my posts under the date. When clicking on the box a pop-up with a message appears. The Problem after the update is that the message appears without clicking on the box, and it looks broken.

Any help please?

Thanks a lot

Hi Jorge, is it Wordpress 5.7..?? I also have problems with that..

Latest generatepress update. Before updating no issues with WP 5.7

Hi there,

did the hook contain any javascript ? As i cannot see any being loaded for the modal on your main site

Hi David,

Thanks for the reply. No, it didn't

How is the Modal created ? Is it using a plugin ?

Hi David,

No, it's created using custom CSS.

There has to be some JS - checking your main domain site ( not the staging ) there is an onClick event that adds a class to the Body element of the site which is whats being used to display the Modal... can't see that in the staging site

I don't know how JS works as I hired a guy to customize for the button among other things.

I have reverted back to where the staging was before updating to the latest generatepress update.

Can you please confirm that the JS is on the staging know?

Then I'll update again so you can see the issues.

Thanks

Hi there,

It seems to be working now, but I'm not able to find where the JS is being added.

If a theme update is breaking it, it means the custom code was integrated incorrectly. You may need to reach out to the developer who did it to make sure they used a child theme and didn't make any changes to the parent theme files.

Hi Tom,

Thanks for the reply. That may be the issue. I'm pretty sure he didn't use a child theme so when the theme gets updated the file is deleted.

I didn't know about child theme before doing this so I couldn't say.

Any idea of where the code could be?

Thanks a lot

You could try checking the function.php file of the parent theme.

If not then please check with your developer.

Thanks Leo, I'll try that

No problem :)

This archived topic is closed to new replies.