wordpress fancybox responsive mobile or pc version [closed]

I am presuming you are using the Easy Fancybox plugin, or some equivalent plugin. Your problem could be solved by applying custom css after Fancybox has loaded, as suggested by the plugin author here. In essence, you can use media-queries to specify the size of the Fancybox to be different on various devices. See for … Read more

Center-Align Images on Mobile Only

You target mobile in CSS based on the display width, like this: @media only screen and (max-width: 768px) { // Mobile-specific CSS here } And then, depending on your code or theme, something like this for the actual CSS: img { display: block; margin: 0 auto; }

different startsite for IOS and change menu

If the url’s for both site is different, You can simply check if site is being viewed from mobile or not and than you can redirect to your second site if it is mobile… Here is one of code who detects whether it is mobile or not… http://detectmobilebrowsers.mobi/ You can use such code detect mobile … Read more

Making WordPress-built website mobile friendly

To make your WordPress site more mobile-friendly, your easiest choices are to install either a plugin or a theme that is mobile-friendly. I don’t have any specific recommendations for you (and asking for recommendations is off-topic on this site), but there are lots of options to choose from. Don’t run more than one “mobile” plugin … Read more

Font size on image captions on mobile

Please Use font-size: 2.5vw; it is responsive and set according to size. .wp-caption .wp-caption-text { **font-size: 16px** !important; color: #000000; text-align: center; background-color: #F2F2F2; padding-top: 1px; margin: 1px; }

Redirect to other page when mobile

You could use wp_is_mobile with wp_redirect if ( wp_is_mobile() AND is_front_page() ) { wp_redirect( $location, $status ); exit; } You can add the js directly to a front-page.php or home.php file or enqueue it directly from either file. Example: add_action(‘wp_enqueue_scripts’, ‘load_script’); function load_script(){ wp_enqueue_script( ‘script-handle’, get_stylesheet_directory_uri() . ‘/js/your-script.js’, array( ‘jquery’ ) ); }

Links not showing up on “AMPforWP”

i didn’t use this plugin but if i were you i use .htacces to redirect mobiles users to amp url Assuming your amp version is under /amp (http://example.com/amp), you can try redirecting your visitors in your .htaccess file like this: RewriteEngine On RewriteCond %{REQUEST_URI} !/amp$ [NC] RewriteCond %{HTTP_USER_AGENT} (android|blackberry|googlebot\-mobile|iemobile|iphone|ipod|\#opera\ mobile|palmos|webos) [NC] RewriteRule ^([a-zA-Z0-9-]+)([\/]*)$ https://example.com/$1/amp [L,R=302] … Read more