Tagged Questions
1
vote
1answer
434 views
Hiding a php element from mobile browsers
I've stuck a static width content slider on my Wordpress sites front page. I'm using the Twenty Eleven theme with a small piece of code included into index.php to display the slider. Unfortunately ...
0
votes
1answer
123 views
Get permalink for a post from inside Wordpress and route to a related site
I built a mobile version of a wordpress site and added some PHP code in the wordpress index.php file to detect mobile users and HTTP-redirects them to m.website.com (which is not a wordpress ...
0
votes
1answer
111 views
Creating a mobile site by adding a new class to the body tag from functions.php
Essentially is there a way to use a function in functions.php to turn the <body> tag into <body class="mobile">? I have code that recognizes mobile devices but right now it's set up to ...
8
votes
3answers
1k views
What's the best way to use the Featured Image for responsive web design?
I have a brilliant idea and since WordPress already takes care of some of the work, I just need to find a good method to make this work.
I am working on a project that needs to be responsive to all ...
3
votes
3answers
576 views
Add Useragent to the body class?
I'm looking for a way to add body class depending on the User Agent of the client with php.
I'm looking to implement it this way:
page.php:
<body id="front" <?php ( function_exists ( ...