How do I add a widget from an Android phone?
Yes at the top of the page click on “Screen Options” then click “Enable accessibility mode”,
Yes at the top of the page click on “Screen Options” then click “Enable accessibility mode”,
Here’s what I’ve put together from different articles/themes: files to modify: functions.php header.php style.css js (create folder “js” in theme root directory) The Javascript: jQuery(function() { jQuery(“<select />”).appendTo(“nav”); jQuery(“<option />”, { “selected”: “selected”, “value” : “”, “text” : “Go to…” }).appendTo(“nav select”); jQuery(“nav a”).each(function() { var el = jQuery(this); jQuery(“<option />”, { “value” : el.attr(“href”), … Read more
You want the first parameter ($post_type) of register_post_type() – by default this is used for the “slug“, so in your case it’s: content-block The name and singular-name labels you refer to are just for display purposes – see get_post_type_object() for an example. So this should work (note I’ve not tested the rest of your advert … Read more
I managed to solve this: Create the function So I created a new custom walker function in functions.php and copied all the code of the core wp nav walker function (wp-includes/class-walker-nav-menu.php). Check for a menu item that has children I then added this array_search in public function start_el to check if the parent element has … Read more
Yes, there are a few – did you search for them? Here are the top results from Google: WPTouch Carrington Mobile WordPress Mobile Pack
Just wrap you code up in a conditional: if ( $GLOBALS[‘is_iphone’] ) { // do funky stuff for mini screens } global $is_iphone; will trigger TRUE for all mobile devices incl. tablets. Edit for WP 3.4+ Now there’s wp_is_mobile() to make checks for User-Agent. It’s basically a wrapper for $is_iphone and does the same.
Or you can use another way, may be bit long but will give you full control how you want to drive your site/template. Make responsive CSS. Call desktop styles in tablet view/resolution with media queries and for the smaller device, set styles as you want. This will give you control in a way that you … Read more
Personally I always tend to stick to using responsive design rather than a completely different theme. You then will only have theme to keep updated. Check out this article for more information http://www.techrepublic.com/blog/webmaster/how-to-get-started-with-responsive-web-design/1769
My child theme inlcudes php as well as css files. Whenever I switch to a different theme for mobile browsers it works but the custom post types, cats etc are missing in action. I am kind of lost. Your problem is that you’re doing too much with the theme. Themes are all about presentation, not … Read more
wp_is_mobile should be the switch you need, but you may be talking about a lot of edits to a lot of components to do what you describe. I don’t know enough about the rest of your code to guess at what kinds of things you would need.