Why is the function file on the host going back to the first setup?

I changed the theme and it doesn't work, it gives the following error:

public_html/wp-content/themes/7/dt-the7/inc/shortcodes/includes/gap/function.php line 56

      

I found the problem and deleted it function _check_active_widget()

, but this error appeared for all folders, so I changed the file function.php

. It worked well for a while. But after an hour, when I changed the site settings in WordPress, all the functional files changed to the first mood and they had it again function _check_active_widget()

. I delete them over and over, but it keeps coming back.

My question is:

Why isn't it working well?

Why is the mood reset?

Finally, how can I fix these feature files?

+3


source to share


1 answer


Try to combine the function in

 / home / fxijdcel / public_html / wp-content / themes / 7 / dt-the7 / inc / shortcodes / includes / cā€Œ olumns / functions.php on line 86


through
if (! function_exists ('_check_active_widget'))

This way you only declare this function if it hasn't already been declared

+1


source







All Articles