How do I switch to a theme based on role and page URI pattern?
-
For example,
Show theme X if the viewer has a user role of “administrator”, Contributor” and “editor” and the page URI pattern is page-name or page-name-2 or page-name-3″
Otherwise, show original theme.
Also, are there wildcards allowed for URI? so instead of saying page-name-1 and page-name-2 we could just say:
Show x theme for page-name/*
This would help in keeping us from having to type out all the page names to switch the theme on that started out with a certain pattern.
Let me know – great idea for a plugin.
- The topic ‘How do I switch to a theme based on role and page URI pattern?’ is closed to new replies.