Skip to:
Content
Pages
Categories
Search
Top
Bottom

Mobile Theme Toggle

  • Avatar of shoeyn
    shoeyn
    Participant

    @shoeyn

    Before using buddypress, I used a mobile plugin called WPTouch then when I started using buddypress I used this plugin and absolutely loved it.
    The one thing which was missing from this plugin which was on WPTouch was the theme toggle at the bottom of the page.
    After a lot of work (I don’t know php at all) I managed to port the toggle across from WPTouch to Buddypress Mobile
    If anyone is interested in the code for it then just comment :)
    Toggle OnToggled Off

Viewing 7 replies - 1 through 7 (of 7 total)
  • Avatar of shoeyn
    shoeyn
    Participant

    @shoeyn

    I’ve sent you an email
    sorry for the delay, I had school

    Avatar of shoeyn
    shoeyn
    Participant

    @shoeyn

    have you had a look at the code?

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    Quick glance, haven’t had a chance to go through it. I’m debating if this will be a plugin in the future or just a theme. Can’t get the theme to work as a child theme if the files are not in wp-content/themes. Making it a child theme helps with updates and plugins.

    Avatar of shoeyn
    shoeyn
    Participant

    @shoeyn

    How could you make it into just a theme? You’d have to make this theme as default then in the functions.php you would have to have a script to detect if it isn’t mobile then load a different theme. Is that what your planning ?

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    Using a mobile detect plugin. child theme doesn’t work unless theme files are in WP-content/themes. The current plugin is a full theme. I want to use a child based on BP-default so upgrades are easier and plugins work better

    Avatar of gkiser
    gkiser
    Member

    @gkiser

    Looks great. Could you please send me that code too?

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    Next version has a theme switch

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Mobile Theme Toggle’ is closed to new replies.