burger on mobile
burger on mobile
burger on mobile
$post should be a post ID (so $post->ID if you’ve got the global $post object in scope) the function call parameters are: $id: the id of the post (integer) $keyname: a string containing the name of the custom field $single: boolean – true means return a string for the first value, false means an array … Read more
Try tinysrc.net, they do the hard work for you. I haven’t tested it, but it sounds promising.
<script type=”text/javascript”> function removeLink() { theAs = document.getElementById(‘lg_image’).childNodes; // get all children of div#lg_image for( i = 0; i < theAs.length; i++ ) { // loop through the children if( theAs[i].nodeType != 3 ) { // if the child is not a whitespace, theImg = theAs[i].innerHTML; // it is the a which contains the img, … Read more
This depends on the theme in question, Some themes have a desktop and mobile versions built in. Some themes are made to fit the screen size (responsive). Some themes (for mobile) come as a plugin which activates it self when the user access the site from a mobile device. So In the either way its … Read more
XML-RPC is what you need. Enable it on your site and use WordPress XML-RPC API to get information which you need. Related thread on stackoverflow: Android XML-RPC library?
There are two options to run multiple sites from one installation: Use multi-site with a subdomain setup. You can use completely different domains then. Adjust the site URL depending on the currently requested host.
You either have to include/require the WPMD file that includes the function(s) you are using, or just use the globally defined $detect object, like so: global $detect; if (! $detect->isMobile() || $detect->isTablet()) { // output your share buttons } // EDIT The above conditional is the equivalent of your ! wpmd_is_phone() conditional. However, if you … Read more
New users CAN be allowed to register remotely without setting “anyone can register” in “general/settings”. The client is android and in addition to the android java client code using the ‘org.xmlrpc library’, the following was added to ‘functions.php’ in the child theme: function xml_add_method( $methods ) { $methods[‘xxx.wp_create_user’] = ‘xxx_wp_create_user’; return $methods; } add_filter( ‘xmlrpc_methods’, … Read more
I’ll not answer your questions in order, but in a way that make me easy follow a logical path. I’m assuming I should be using the wp_is_mobile(); wp_is_mobile() is a good way to go. In my experience it recognizes majority of mobile devices, and if you don’t care about an ipotetic and very low percentual … Read more