how can I create a wordpress website that has two contents version (images on mobile version are different from desktop ones) and redirect visitors based on the device they are using. The both contents version will use the same theme.
-
If contents are different then you may need to use two different installation or perhaps a multisite setup.– SisirCommented Jun 17, 2015 at 16:04
-
Thank you for your prompt answer @Sisir. But my main concern is how to detect visitors device or screen size and redirect them to the right content ?– lucasCommented Jun 17, 2015 at 16:21
-
1What you are asking is hard to do efficiently and reliably. You are better off with media queries.– s_ha_dumCommented Jun 17, 2015 at 16:24
-
I see your point @s_ha_dum, I wonder how to target the element ot hide or show since I am not sure if the theme will give me control on Id's or classes– lucasCommented Jun 17, 2015 at 17:33
-
The theme has no choice but to give you control of its IDs and Classes. CSS starts with "cascading" for a reason.– s_ha_dumCommented Jun 17, 2015 at 17:41
|
Show 1 more comment