force desktop view on mobile wordpress plugin

Add this code in the functions.php of your theme, or appropriately place the JavaScript code in your WordPress site, as per your needs. Gradient Background css in the menu panels, New! i am failed to setup this process. After you click on the WordPress Theme Customizer and open it, you will see all the options in the left-hand menu. I meant to put that the site is not active yet so no live version available. New Smooth Scroll animation in page internal navigation links, New! Revert the HTML of the Mobile Menu to the wp_footer hook instead wp_open_body because there are still many themes not following the guidelines, Fix! Let's discuss theme first, if its responsive theme, then it surely will change the layout of site and even might miss some div blocks. I looked at all the other similar questions and couldn't find an answer. Acidity of alcohols and basicity of amines, Using indicator constraint with two variables. Additionally we are very satisfied with the amazing support of the plugin! Increased the maximum width trigger, to keep the menu visible in larger resolutions, New! Last updated on December 13th, 2022 by Editorial Staff | Reader DisclosureDisclosure: Our content is reader-supported. Closing menu with enter is now possible when focusing on the close button, Fix! Please see our documentation. Width Trigger was with 1px of offset, Improved! 5. Force Desktop View with WordPress Website on Mobile Devices ccastilla37 (@ccastilla37) 4 years, 4 months ago Hello all, I am totally new with WordPress and not knowledgeable with CSS or editing a theme on Editor. Depending on what theme you're using, you may see slightly different options in the left-hand menu here: At the bottom of the screen, click the mobile icon. Browse other questions tagged, Where developers & technologists share private knowledge with coworkers, Reach developers & technologists worldwide, I tried the answers on the link above but they didn't work. Using Google Chrome's DevTools Device Mode Google Chrome browser has a set of developer tools that let you run various checks on any website, including seeing a preview of how your website looks on mobile devices. A great way to create mobile-specific popups and lead-generation forms is with OptinMonster. Hello, Thank you for all the information you are sharing on here i am able to follow your guides step by step to be able to come up with my blog my question is how would i be able to fix the problem of my widgets ( home,about, contact us) not displaying when my website is pulled on a mobile device but on a computer everything is looking good. By continuing to use our website and/or clicking OK, you're agreeing to our use of cookies in accordance with our cookies policy. Thus, if we change this information, we can fool the site to believe, that the device is a desktop and the browser engine will take care of rendering the desktop version. add_filter( ocean_meta_viewport, no_meta_viewport ); Thnaks a lot for your support and the whole code. Method 2: Check if you have any caching plugins on your site or any server level caching enabled. But it gets better. Also, I put the website live so you can see it on mobile. Avoid undefined index when acessing to an array position, Fix! The topic Force Desktop View with WordPress Website on Mobile Devices is closed to new replies. However, I do not get it to work I included the code into my functions.php escluding the opening PHP tag as obviously there is already one in my functions.php. 4 Answers Sorted by: 43 You just need to set the Viewport <meta name="viewport" content="width=1024"> Instead of this (Responsive version) <meta name="viewport" content="width=device-width, initial-scale=1.0"> Look at here. There has been a big discussion of it on Github: Covid-19 has given a lot of impetus to requests for a version of Jitsi which opens directly in mobile Safari/Chrome. This means if you go on to purchase a product using such a link, we receive a small commission (at no additional cost to you). In the example above, the menu has collapsed, and the Search icon has moved to the left instead of the right of the menu. In the drop-down menu that pops up, select "Tablet" or "Mobile" before clicking. THANKS A LOT for your help! Now, you don't want to buy a different domain for every website you want to be "non-mobile". Autoclose opened submenus when opening a new one, New! 4. You can even rotate the mobile screen using the rotate icon. I see that right now you have the mobile theme active on your site. This plugin is a popular solution. Hold Command (Mac) or Control (Windows) Hold down the Command key (Mac) or Control key (Windows) while you move an element. In a previous article, we had mentioned, how to make images and text responsive. We only recommend products we work with or love. Remove customizer CSS regeneration, Fix! Remove shadow in the naked header mode, Improvment! The free version of Zakra uses an agency layout to deliver a solid, helpful template for a wide range of businesses and provides ten free demos. Instructor Role vs LearnDash Dashboard: Which has a better Frontend Course Builder? return false; Yes, it can be a lot of work, but you'll develop habits as you go. Every browser will handle these errors differently, so leaving it up to the browser to decide the result, you won't see the same results in every browser (located above body closing tag in HTML). Include plugin version in the bottom of the admin options, Fix! In this article, were going to cover two different methods of testing how your site looks on mobile using desktop browsers. All Rights Reserved. I removed the bracket. Changed the Icon prefixing to avoid conflicts, Fixed! Media Queries: How to target desktop, tablet, and mobile? The plugin works perfectly on our website but when accessing the page on a mobile device Jitsi asks the user to download their App to join the meeting. Depending on what builder your using, you can do this in the elements settings by selecting and editing the element. Fix! New selector to hide the menus from Astra theme, Divi theme, New! These let you do several extra things. You have to understand that errors like this leave a lot up to interpretation of the browser, to which each may use a different engine or different method which can't guarantee uniform results. hi, wonderful article but what if, its the CSS that decides the min and max width for each concerned device (enables the resolution to either mobile or desktop view). jQuery(#viewDesktopLink).text(); If you dont like the video or need more instructions, then continue reading. Some solutions allow you to create an entire mobile website, while others adapt your site features, so they're easier for mobile users to see. How to match a specific column position till the end of line? I am totally new with WordPress and not knowledgeable with CSS or editing a theme on Editor. Not the answer you're looking for? }, if($(viewDesktopLink).text() == ) The following people have contributed to this plugin. Ive been doing some reading around opening Jitsi Meet in a mobile browser. How do you force a website to be in landscape mode when viewed on a mobile device? The other is to provide the user an option to switch back to the mobile site. Thanks, I finally found out that theme responsivness could by disabled in theme settings. I can drag multiple files, but dragging a mixture of folders and files to a new folder only moves the files, not the folders. Fix Menu settings and widgetized areas in translated websites, Fix! Scale or crop the image as needed using the corresponding options on the right. You might even want to create different versions of key landing pages that are optimized for mobile users needs (more on this later). How to Learn WordPress for Free in a Week (or Less), How to Install WordPress Complete WordPress Installation Tutorial, show different campaigns to mobile users vs desktop users, best plugins to convert a WordPress site into a mobile app, 24 Must Have WordPress Plugins for Business Websites, 7 Best Email Marketing Services for Small Business, 5 Best Drag and Drop WordPress Page Builders Compared, 30 Proven Ways to Make Money Online Blogging with WordPress. (If you have not completed the previous steps, please see here for instruction.) Looked great in the browser's mobile device emulator but didn't show up at all on my phone. How Much Does It Really Cost to Build a WordPress Website? Add new hooks to the top of the left and right menu panel, New! } Method #1: Add a WordPress Mobile Menu Using Plugins This method is more effortless and recommended for beginners as it does not require coding knowledge. For this, I have added the additional ID viewDesktopLink1 to the javascript, which is working fine on my desktop browser (when I make it smaller) and it works well on my iPhone. Hi Rohan, e.preventDefault(); // set viewport content width How to force desktop view on mobile devices - Bootstrap? jQuery(meta[name=viewport]).attr(content, width= + desktopBreakpoint ); Thanks. e.preventDefault(); Check other options if needed to find a desired theme. }. 12+ Things You MUST DO Before Changing WordPress Themes, How to Start a Podcast (and Make it Successful) in 2023, How to Properly Move Your Blog from WordPress.com to WordPress.org, How to Fix the Error Establishing a Database Connection in WordPress. iPad and iPhone users can also request the desktop version of a site from within Safari. Not the answer you're looking for? I want it to look exactly like the desktop version when I view it on mobile devices. Add specific body classes with jQuery when the theme doesnt implement the body_class(), Fix! The procedure is simple. This will open up the WordPress theme customizer. However, clicking on the link does not change the content width in the viewport section. Click Add New : 3. How Intuit democratizes AI development across teams through reusability. Only force autoplay videos on desktop, Improvment! https://www.cnet.com/how-to/how-to-request-desktop-version-of-a-web-site-in-chrome-for-android/, Do Not Sell or Share My Personal Information. Touchy. The bottom part is what Ive added in order to accomplish what I want to do but no luck, , /* for desktop devices or wide screens, do not show the link */, place the JavaScript code in your WordPress site, device specific stylesheets were being loaded. So first of all I'm noob at programming and I just started learning CSS. Thank you Rohan for your guide. Remember, you don't know what you don't know until you're taught, so fully self teaching in coding is tough. }); Ruben at the point where you have set viewport content width, try updating it to this Previewing the mobile layout helps you see how your website looks on mobile devices. Fix Bug in Padding top of the Body, Fix! Has 90% of ice around Antarctica disappeared in less than a decade? Links Free Demo WPTouch Pro is a premium WordPress plugin with powerful settings to make your website mobile-friendly. This particular article has been inspired by a use case in a clients theme development project. In this method after openning wordpress website right click anywhere in the browser and select inspect elements option in newly opened menu. $version = $theme->get( Version ); it is fully working now. Since i am running in a wordpress multi site a dont have access in function.php to put this code. Improved! @smith didn't want to totally bombard with too many changes, but you're right. If your theme has been around for a while though, it might be time for a little update. Click on it, and head on to create a new menu. And btw I have no idea what that front-end framework is, I'm just practicing with notepad++ and a browser. Also I just tried it out on a mobile device and it seems to work. See how WPBeginner is funded, why it matters, and how you can support us. :), How Intuit democratizes AI development across teams through reusability. Do it Yourself How to Migrate Subscriptions from Shopify to WooCommerce? Would you like to support the advancement of this plugin? But there was a specification to provide an option as a link to force the desktop version on a mobile device. Available for free or premium in line, flat, gradient, isometric, glyph, sticker & more design styles. This will open up the WordPress theme customizer. You can also find us onTwitterand Facebook. To subscribe to this RSS feed, copy and paste this URL into your RSS reader. Remove blank space below the header in a specific theme, Fix! Media Queries: How to target desktop, tablet, and mobile? Thank you Well, i would suggest, please check it this theme responsive, if yes, make it static. Gap on the right side when using the Slideout Push Content, New! Youll also notice your websites appearance change to the mobile view. Smush. The viewport information and the media queries work together to display the content. Any idea why that could be? Comment document.getElementById("comment").setAttribute( "id", "a7bebcd700a020888a339066766c61ca" );document.getElementById("i0e9384a54").setAttribute( "id", "comment" ); Don't subscribe To learn more, see our tips on writing great answers. Now, you dont want to buy a different domain for every website you want to be non-mobile. AppPresser. About an argument in Famine, Affluence and Morality. Enable Cache ON This is the final step required for enabling the caching functionality of the plugin. hello.nice article youve put up.. Im having this challenge.i use two themes one for mobile and the other for desktop but when i visit my desktop via site.com/?nomobile it shows the desktop theme alright when i try reading any post it redirect to the mobile view of the post..any fix for it please?? You can also hold down the Shift key, then click and move your mouse to simulate pinching the mobile screen to zoom in or out. Is it possible to rotate a window 90 degrees if it has the same length and width? Is there a proper earth ground point in this switch box? Code structure was reorganized, New! Advantages of Building an App Disclosure: Our content is reader-supported. It is really give me headaches lol. I made a page with these codes: And I want to force desktop version even on mobile, like even when I open that page with mobile, the same page must show up with no change in resolution and other stuff. }); Basically the viewport information, is the most important factor, which helps identify the device the site is being displayed on. I want to force View Full Site so that the responsive theme is auto display to any mobile. jQuery(meta[name=viewport]).attr(content, width= + desktopBreakpoint ); // prevent default link action You can try it out and let me know if it works. You can send us an email using the contact form available on the following link. 1.Simply open your browser and goto WordPress website and resize your browser to your required resolution. add_action( wp_enqueue_scripts, oceanwp_child_enqueue_parent_style ); function no_meta_viewport() { We have been searching for several months, have been testing several other Mobile Plugins for Wordpress. Right/left Menu Panel Width in percentage(%) and not only in Pixels(px), Improved! Most CDNs resize images for mobile, but it's usually a paid feature (screenshot is for FlyingCDN) Source: WP Speed Matters Facebook Group. WordPress Mobile Pack This plugin helps users transform the content of their website into an amazing progressive mobile web application. Varnish By default, Varnish stores and serves the same cache for both desktop and mobile. How do I align things in the following tabular environment? Child theme inherits the functionalities and styling from the main theme. Polylang language URL compatibility, Fix! dear sir, However, the code is added into my BODY tag and not into the header, therefore. Go to appearance > themes and check oceanwp child theme is active or not? Fix submenus JS issue Replace jQuery by $, Fix! LAKARTA.IT This page isnt working, ttimesacademy.in is currently unable to handle this request. Do new devs get fired if they can't solve a certain bug? UX improvments on the settings page, New! To answer your question more directly, it's difficult. Your final test should always be to look at your site on an actual mobile device. The nature of simulating nature: A Q&A with IBM Quantum researcher Dr. Jamie We've added a "Necessary cookies only" option to the cookie consent popup.

Budget Standard Recreational Vehicle List, Paul Germain Columbus, Ohio, Dmitry Sholokhov Partner, Which Dream Smp Member Would Adopt You, Articles F