Disable Shadowbox.JS on certain Wordpress themes

I am trying to set up two versions to my Wordpress website: Full website, for computers, and Mobile version, for smartphones. I achieve this by means of a user-agent detection script included in...

Screen width / viewport size: JS to PHP. To manipulate Wordpress output / views

I'm looking to get desktop and mobile functionality in a single Wordpress theme. There are several solutions available that use a post/get method to send the screen size to php. For example:...

Youtube Chromeless Player With Mobile Browser Support

Basically I would like to display a chromeless video on desktop browsers and a fallback that works for mobile browsers. The default video on the iPad is fine. But by displaying the chromelesss...

PhoneGap explanation

I have an existing web application that is used by my coworkers. This web application uses pure HTML, CSS, and JavaScript. I am only communicating via the back-end with web services. I would like...

Determine the current page in PHP within a wordpress plug-in

This issue has been driving me up a wall. I've been working on a mobile website for a friend who uses wordpress. I'm attempting to modify a wordpress plugin that "rethemes" each page for mobile...

disable hover and active pseudo class for mobile devices

Is it possible to disable the hover and active pseudo classes for mobile devices only? I've found this html.touch { /* Touch is enabled */ } html.no-touch { /* Touch is disabled */ } Which...

Ask user if they want to see the mobile version of the page, redirect accordingly

I just need to find out how to detect if the user is on a mobile device, and ask them if they want to see the mobile instead of the regular site, and redirect accordingly. Is there a non-PHP...

Load different CSS stylesheet with javascript

I need to use javascript to load a different stylesheet based on a URL variable that is being passed. The scenario is this: We need to maintain a mobile website with one CSS stylesheet, and a...

Android WebView not loading second page from cache

I have an Android app that simply houses a website. I would like the app to cache the pages of the website for offline use. I'm doing a simple test to see if the cache is working but unfortunately...

Redirect a user if on mobile device (not tablet) but provide back link

This is completely new to me and haven't a clue what I'm doing so I would really prefer a simple to implement solution (if it exists). I need to redirect users who visit www.domain.co.uk (hosted...

Wordpress Mobile Detect Plugin and if echo issues

I'm using WP Mobile Detect to see if site visitors are on a mobile device. The Plugin is installed and I'm good on that front. Now, I'm trying to setup an if / else php statement to display a tel:...

Loading javascript conditionally in Wordpress functions.php

I created a child theme of the TwentyTwelve theme in Wordpress for my photography website. In the photo gallery pages, clicking on a thumbnail image either triggers Fancybox or Photoswipe,...

Varnish with wordpress breaks the wordpress visual editor?

Hi I have a very weird issue with Wordpress 3.5 Varnish 3.02 and Ubuntu where the visual editor has disappeared. The buttons to switch between the html/visual has disappeared and only the html...

Strange website redirect issue on mobile browser that's influenced by cache

I'm at a loss here. I have a new Wordpress site at synergration.com. If you access it on a mobile device (phone, not tablet) it will generally load fine the first time. Once you click on to...

wordpress mobile detection load specific JS

I would like to know is there any wordpress plugin or codes to detect the user using mobile/tablet and load some specific javascript? I found online that there are some WP plugin to load theme...

Responsive Adwords Ads

So, we run ads on our WP site, Mostly from direct clients. However, I'm wanting to do two things: transition one position over to AdSense to see what it gives us in terms of revenue. Second, as...

How can I add the array key data item in google maps marker infowindow for an array of markers?

I am building a js function to init a google map and add an array fo markers to a map with the individual locations set for them from the array. The markers get added okay and they position fine...

JavaScript: Detect Mobile Embedded Browsers (Captive Portal)

I have a MikroTik HotSpot. In mobile browsers (Android, iOS, WP), when a user is connecting to HotSpot, the captive portal browser (or embedded browser) pops up. If we want to disable this...

Sorting Items from table in Wordpress using WP_List_Table Sorts Number Column as Text

I am using WP_List_Table to create a custom plugin. I am using code copied from another source, and everything is working fine, except when sorting the table according to the ID column or Order...

How to change the layout of master slider from 'partialview' to 'fillwidth' only on tablet/mobile

I am using MasterSlider.js to make the carousal, I want to give it partialview on desktop and fillwidth view on tablet and mobile. I am trying to change it through detecting the window width but...

Show Different Wordpress Menus in Different Countries

I want to assign different menus based on a user's location. I've installed the GeoIP Detection plugin that detects a user's country code. I assigned the variable $userInfo =...

Replacement for Touch.FrameReported in Windows Phone 8.1 / Windows 10 Mobile

In my old Windows Phone 8.0 project i use Touch.FrameReported for Multitouch detect. But I can't find it in Windows Phone 8.1 and Windows 10 Mobile Universal App. Is there a similar command in wp...

How to add a custom mobile theme in an existing WordPress theme

I've seen some WordPress themes that comes with a mobile theme, added inside the folder of the theme, and I am trying to create a custom mobile theme for my existing theme, and I've placed it...

Detect Keyboard event in Flutter

How to detect keyboard events on TextFormField in Flutter? If the user deletes the last letter and presses the delete button again, the cursor should jump back to the previous TextFormField. I...

Lighthouse detecting invisible layout shifts ? (incredibly high CLS)

I'm optimizing the speed of a WordPress website (on mobile only for the moment), with success except for CLS. The CLS became extremely high after optimizing CSS delivery (with WP-Rocket), but I...