WordPress.org

Ready to get started?Download WordPress

Forums

Genesis Title Toggle
[resolved] Plugin Breaking website in iPhone (6 posts)

  1. ls41
    Member
    Posted 2 years ago #

    When Genesis Title Toggle is activated, its giving Fatal Error in Safari/iPhone.

    Fatal Error : Call to Undfined function genesis_get_option() ..... /genesis-title-toggle.php on line 120

    http://wordpress.org/extend/plugins/genesis-title-toggle/

  2. Bill Erickson
    Member
    Plugin Author

    Posted 2 years ago #

    This might be an obvious question, but are you using the Genesis theme?

    Are you running any sort of plugin that changes the theme for mobile devices? This plugin uses Genesis-specific code. When you activate the plugin, it checks to make sure you're using Genesis, but that's the only check. If you change themes later on (or only on mobile devices) I can imagine it failing.

  3. ls41
    Member
    Posted 2 years ago #

    I'm using Genesis with Prose with Genesis Connect for BuddyPress.

    I have WP Touch. There is conflict between these 2 plugins.

    Deactivating WP Touch loads the page.

    With WP Touch Active - Fatal Error.

  4. Bill Erickson
    Member
    Plugin Author

    Posted 2 years ago #

    I haven't used WP Touch, but my guess is that it somehow prevents Genesis from loading (loading its theme instead), which is causing the issue. There's nothing really I can do here. This is a Genesis plugin - uses Genesis-specific features - and will break if Genesis is not running. This will happen if you use any Genesis-specific plugins with WP Touch.

    If you must have WP Touch, I recommend you rebuild the plugin inside your child theme. That way it only runs when the child theme is active.

    A better solution would be to make your theme mobile-friendly so that you don't have to change themes for mobile devices. Take a look at the bottom of the Driskill child theme's CSS file ( http://demos.studiopress.com/driskill/wp-content/themes/driskill/style.css ). Here's another example of mobile-friendly style I've added to the Genesis base stylesheet: https://gist.github.com/1339924

  5. ls41
    Member
    Posted 2 years ago #

    Thanks Bill for your support. I will check the links.

  6. Bill Erickson
    Member
    Plugin Author

    Posted 2 years ago #

    Actually, since when the theme is disabled the code shouldn't be running anyway, I might be able to fix this by simply checking for a genesis function at the beginning of all my functions.

    Send me an email at bill.erickson@gmail.com and I'll get you an updated plugin to test. Once you confirm it works as desired, I'll update the public plugin.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic