-
Notifications
You must be signed in to change notification settings - Fork 805
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minileven: can't load custom theme with jetpack_mobile_template or jetpack_mobile_stylesheet #2061
Comments
Makes sense, but isn't in line with our current goals for Jetpack and isn't high priority enough to focus on right now. Would be open to PRs from the community addressing this. |
Losing code changes on each update is obviously bad, so should store mobile theme in uploads or themes dir.. But I can confirm that this workaround is working:
It does however mean that URLs in css and JS output will be: |
This issue has been marked as stale. This happened because:
No further action is needed. But it's worth checking if this ticket has clear reproduction steps and it is still reproducible. Feel free to close this issue if you think it's not valid anymore — if you do, please add a brief explanation. |
Jetpack's Mobile Theme detection includes 2 filters,
jetpack_mobile_template
andjetpack_mobile_stylesheet
, that allow you to define a custom Mobile Theme instead of the default Minileven:jetpack/modules/minileven/minileven.php
Line 84 in 77629b6
Unfortunately, the custom theme still has to be located inside the Minileven module directory. It would be nice if you could use the filters to load a theme from the /themes directory, or from another plugin.
Reported here:
https://wordpress.org/support/topic/custom-mobile-theme-1
The text was updated successfully, but these errors were encountered: