• Resolved faizan143

    (@faizan143)


    Hello,

    Can you please tell how to disable this plugin entirely, I am sick of this now whenever we disable the plugin the website is crashed and says

    Fatal error: Call to undefined function shiftnav_toggle() in /home/public_html/mydomain.com/wp-content/themes/enfold-child/header.php on line 106

    I don’t want to use this plugin anymore and want to stick with the default enfold menu for mobiles.

    Tried to disable or uncheck stuff in plugin settings and now the menu is also not clickable on mobile.

    Can you please help me out to get rid of this?

    Thanks

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author sevenspark

    (@sevenspark)

    Hi faizan143,

    This is not an issue with the plugin, it is caused by a custom edit you’ve made in your child theme.

    As you can see from the error message – it occurs inside your child theme ( mydomain.com/wp-content/themes/enfold-child/header.php ).

    This means that someone working on your site has manually added the shiftnav_toggle() function inside your child theme’s header.php file. (As a side note, that is not correct implementation and should never have been added there in the first place).

    Once you disable ShiftNav, that function no longer exists, so you can’t call it in your theme. That’s why you are getting a fatal error when you deactivate the plugin – you’re trying to call a function that doesn’t exist (like the error message says).

    To resolve the issue, all you need to do is remove that function call in your child theme’s header.php, line 106.

    (As a side note, any time you add a function call in a theme that depends on a plugin, you should wrap it in a function_exists() condition so that it is not executed if the plugin is deactivated – to avoid this exact situation).

    Anyway, there is no issue here with the plugin, or its activation/deactivation process; it’s the custom edit to the theme that causes the problem when you remove its dependency. Just remove that customization in your theme and you’ll be good to go.

    Hope that helps

Viewing 1 replies (of 1 total)

The topic ‘How to disable this Plugin PLEASE!’ is closed to new replies.