Drop this inside a plugin:
add_filter('template', function($template){
// could be IE
if(preg_match('/MSIE [1-9]/i', $_SERVER['HTTP_USER_AGENT']))
return 'your_ie_theme_name';
// other
return $template;
});
Just so you know, browser detection trough PHP is not really that accurate. There’s a get_browser()
function available PHP, not sure if it’s any better though.
Related Posts:
- Link to specific Customizer section
- How do I change the header image height in Twenty Seventeen?
- When cropping a header image, retain meta data (i.e. name, description, etc.) from original image?
- How to create a new theme from scratch?
- Adding a Template to the Page Attributes Panel for both Posts and Pages?
- How do you change the theme location?
- How to see files in directories in “Edit Themes” screen
- How do I put my comment form above the comments?
- How can I check for malware in a Theme? [closed]
- Editing theme files and access to the Code pages only to super-admin?
- Theme Advanced Styles in Visual Editor and Paragraphs
- Want to have the Post editor remembering the last editing position
- Override parent theme translation on child theme
- Forbidden 403 error, permission to access, unable to read htaccess
- Theme of codinghorror.com
- Weird post pagination url redirect
- How to add template to theme in WP
- Download WordPress.com theme: how?
- Can I rename a theme’s folder and still receive updates?
- Child theme not visible
- Custom theme folder
- Create a dashboard-style site (not WordPress dashboard) – is there a theme? [closed]
- Multi-level page hierarchy
- loss of theme options while site deployment in production
- How to install WordPress theme and configure it? [closed]
- Switching a Site to WordPress and Leaving It Live Until Ready
- How can I make some themes usable only by admins?
- Own Theme Customizer displays error message when saving, saving still works
- 1 Database for multiple WordPress themes
- Troubles with Walker_Nav_Menu and closing
- Page has a parent and $post->post_parent returns 0
- Different logo on homepage
- Translation not working after editing plugin template
- How to apply different themes with custom design in one site?
- How to make Additional css changes global all across the web pages on WordPress website?
- WordPress without a theme – help!
- Problem Installing a Premium Theme– File Permission Issue on a Mac, Local Machine? [closed]
- How to install themes with the demo content?
- Is it good practice moving the main stylesheets after the plugin styles?
- Variant of the same theme for each page
- can’t see aditional themes in control panel
- Configure new installed WordPress in live server
- When someone likes an article on my blog, they are prompted to log in on WordPress.com [closed]
- What’s the default order used by WordPress to load CSS files?
- Where does WordPress get the theme name from to check for updates?
- Hi everybody, I have a problem of search box
- WordPress theme logo handling (Trying to use GIF as logo)
- How can I remove all traces of a theme?
- Unable to find translations in WordPress theme
- Updating WordPress Theme Files
- A thin line between native wordpress bahaviour and 3rd party themes
- Using filter in the widget causes fatal error
- Display Pointer only once?
- Theme title in admin shows full path [closed]
- Multiple sub directories for theme template pages
- Is there a way to see how a theme will look before buying it?
- Menu items do not “open” when mouse hover over them?
- From where wp ecommerce is loading plugin theme files?
- Making first post wider than other posts on home page(default)
- My blog suddenly can’t find my stylesheet?
- How to fix Scrape key check failed on WordPress VPS?
- How to push a theme update for a ciustom theme used on multiple independant self hosted sites?
- Removing a widget via theme editor
- theme customizations gone after enabling ssl
- Can’t embed certain youtube videos into theme
- How to customize a section of a widget only on certain pages or page
- How do I get the featured image to sit below the header in the twenty nineteen theme?
- How to use my .mo file in the Divi child theme instead of file in a parent /builder directory?
- How to fix Gutenberg with SiteOrigin page builder deleting content when editing
- Simple filter to change label name of Email Adress to something else
- Basic wordpress search shows no results
- How do I remove search bar that isn’t a widget?
- Show only the beginning of post
- Changing theme folder name disrupts widgets
- WordPress Customazation API section in section
- TwentyFourteen Theme : Changing grid layout
- How can I Update my Theme
- How to allow users to switch to the child theme from front end without plugin?
- Use random theme
- Change whole theme depending on resolution
- Replacing current theme folder by previous version of the same folder produces “undefined function get_header()” error
- Theme comment callback results nothing
- Does not work bookmarklet in the theme Tagology
- How do I block a subdirectory from WordPress theming?
- How to remove the option data of a theme when that theme is removed?
- Resetting Themes Folder to Default
- Sub-Theme (based on Taxonomies)
- How to Hide Blog Post Author?
- Convert theme to be based on Bootstrap?
- Include root files into header files
- Adding a wp_head hook from an included PHP file
- Deleting Widgets in sidebar in Panthea theme
- Static posts page is not working
- Cannot use some themes within Managed WordPress of Go Daddy [closed]
- How to track your theme usage on the internet?
- How to add Company Logo to Chosen Theme
- What security risk is not having “default” theme?
- Absolute and relative paths
- Get header/footer list for a theme
- Help!!! Old theme doesn’t load scripts and conflitcs with plugins