{"id":27559,"date":"2023-09-06T15:22:27","date_gmt":"2023-09-06T10:22:27","guid":{"rendered":"https:\/\/mcstarters.com\/blog\/?p=27559"},"modified":"2024-01-10T17:58:01","modified_gmt":"2024-01-10T12:58:01","slug":"applying-custom-css-only-desktop-in-elementor","status":"publish","type":"post","link":"https:\/\/mcstarters.com\/blog\/applying-custom-css-only-desktop-in-elementor\/","title":{"rendered":"Step-by-Step Guide: Applying Custom CSS Only Desktop in Elementor"},"content":{"rendered":"\n<p>Discover how to seamlessly apply custom CSS on desktop versions using Elementor, enhancing your website&#8217;s visual appeal and functionality. Follow our comprehensive guide to learn the tips and techniques used by professionals.<\/p>\n\n\n\n<p>Are you new to the world of web development and want to personalize your site built with Elementor?<\/p>\n\n\n\n<p> You have landed at the right place. In this beginner-friendly guide, we will walk you through the step-by-step process of applying a <a href=\"https:\/\/elementor.com\/help\/custom-css-pro\/\" data-type=\"link\" data-id=\"https:\/\/elementor.com\/help\/custom-css-pro\/\" rel=\"nofollow noopener\" target=\"_blank\">custom CSS<\/a> only desktop version of Elementor, a popular website-building platform. This customization not only adds a personal touch to your site but also enhances the user experience manifold.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"300\" src=\"https:\/\/mcstarters.com\/blog\/wp-content\/uploads\/2023\/09\/Custom-CSS.jpg\" alt=\"Custom CSS\" class=\"wp-image-27592\" title=\"\" srcset=\"https:\/\/mcstarters.com\/blog\/wp-content\/uploads\/2023\/09\/Custom-CSS.jpg 800w, https:\/\/mcstarters.com\/blog\/wp-content\/uploads\/2023\/09\/Custom-CSS-768x288.jpg 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Apply Custom CSS only Desktop in Elementor<\/h2>\n\n\n\n<p>To apply a Elementor custom CSS only desktop in Elementor, follow these steps:<\/p>\n\n\n\n<p class=\"step\"><strong>Step 1:<\/strong> Open your page in Elementor and select the widget where you want to apply the custom CSS.<\/p>\n\n\n\n<p class=\"step\"><strong>Step 2: <\/strong>Go to the &#8220;Advanced&#8221; tab, and in the &#8220;Custom CSS&#8221; section, input your CSS code, prefaced with a media query to target desktop screens only, like:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Large Desktops(1281px<\/strong>)<\/h3>\n\n\n\n<pre class=\"wp-block-code bg-code\"><code>\/*\n##Device = Desktops\n##Screen = 1281px to higher resolution desktops\n*\/\n\n@media (min-width: 1281px) {\n\n\/* CSS for larger desktops goes here *\/\n\n}<\/code><\/pre>\n\n\n\n<p>Here, any styles inside this media query will only be applied to screens that are 1281 pixels wide or wider. This is typically used for larger desktop screens.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Laptops and Small Desktops (between 1025px and 1280px)<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code bg-code\"><code>\/* \n  ##Device = Laptops, Desktops\n  ##Screen = B\/w 1025px to 1280px\n*\/\n\n@media (min-width: 1025px) and (max-width: 1280px) {\n  \n  \/* CSS for medium-sized screens goes here *\/\n  \n}<\/code><\/pre>\n\n\n\n<p>This media query targets screens between 1025 pixels and 1280 pixels wide, which typically includes many laptops and some desktop screens. The <code>and<\/code> conjunction ensures both conditions (minimum width and maximum width) are met.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Small Desktop Screens (961px to 1024px):<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code bg-code\"><code>@media (min-width: 961px) and (max-width: 1024px) {\n  \/* Your custom CSS rules for smaller desktop screens go here *\/\n}\n<\/code><\/pre>\n\n\n\n<p>This query aims at small desktop screens, which are slightly larger than tablet screens but not quite as wide as standard desktops, helping to fine-tune the visual layout for this specific range.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Medium-Large Desktop Screens (1281px to 1440px):<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code bg-code\"><code>@media (min-width: 1281px) and (max-width: 1440px) {\n  \/* Your custom CSS rules for medium-large desktop screens go here *\/\n}\n<\/code><\/pre>\n\n\n\n<p>Targeting medium to large desktop screens, this query helps to adjust styles for displays that are wider than standard desktop screens but not into the extra-large category, offering a balanced layout for this screen range.<\/p>\n\n\n\n<p><strong>Extra Large Desktop Screens (1441px to 1920px):<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code bg-code\"><code>@media (min-width: 1441px) and (max-width: 1920px) {\n  \/* Your custom CSS rules for extra-large desktop screens go here *\/\n}\n<\/code><\/pre>\n\n\n\n<p>This media query is for extra-large desktop screens, such as high-resolution monitors, where there is an ample amount of screen real estate to work with, allowing for expansive layouts and more detailed designs.<\/p>\n\n\n\n<p class=\"step\"><strong>Step 3:<\/strong> Click &#8220;Update&#8221; to save your changes and preview the desktop view to ensure the CSS is applied correctly.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion <\/h2>\n\n\n\n<p>As we conclude our beginner-friendly guide to applying custom CSS exclusively on the desktop version using <a  class=\"btl_autolink_hyperlink\"  href=\"https:\/\/mcstarters.com\/blog\/elementor-pro\"    target=\"_blank\" rel=\"nofollow\">Elementor Pro<\/a>, we hope you found the steps easy to follow and implement. The journey from installation to navigating the advanced settings doesn&#8217;t have to be complicated. Our step-by-step approach aims to ease your pathway into the world of website customization.<\/p>\n\n\n\n<p class=\"bg-light\">Click Here: <a href=\"https:\/\/mcstarters.com\/blog\/how-to-upload-svg-files-in-elementor\/\" data-type=\"post\" data-id=\"27351\">How to Upload SVG In Elementor?<\/a><\/p>\n\n\n\n<p>Mastering desktop CSS Elementor tasks opens up a realm of opportunities to enhance your website&#8217;s aesthetics and functionality. Feel free to revisit this guide as you progress in your Elementor journey, and don&#8217;t hesitate to experiment with different CSS codes to give your desktop version a unique and personalized touch. Happy customizing!<\/p>\n\n\n<div id=\"rank-math-faq\" class=\"rank-math-block\">\n<div class=\"rank-math-list \">\n<div id=\"faq-question-1693980022489\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><strong>Is custom CSS available in Elementor?<\/strong><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>Yes, Elementor provides a built-in option for adding custom CSS.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1693980247943\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><strong>Where do I put custom CSS in Elementor?<\/strong><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>You can input custom CSS within the &#8216;Advanced&#8217; tab of Elementor for specific elements or sections.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1693980250293\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><strong>How do I edit in mobile view without affecting the desktop in Elementor?<\/strong><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>To edit the mobile view separately, use Elementor&#8217;s &#8216;Responsive Mode&#8217; by clicking the device icons at the bottom of the left-hand panel in the editor.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1693980284696\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><strong>How do I add inline CSS to Elementor?<\/strong><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>To add inline CSS to a specific element, select it, go to the &#8216;Advanced&#8217; tab in Elementor, and use the &#8216;Custom CSS&#8217; field.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1693980334145\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><strong>How to apply Elementor custom CSS without Pro?<\/strong><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>You can apply custom CSS in Elementor without <a  class=\"btl_autolink_hyperlink\"  href=\"https:\/\/mcstarters.com\/blog\/elementor-pro\"    target=\"_blank\" rel=\"nofollow\">Elementor Pro<\/a>; this feature is available in the free version. Simply follow the steps to input your custom CSS code for styling your website&#8217;s elements.<\/p>\n\n<\/div>\n<\/div>\n<\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Discover how to seamlessly apply custom CSS on desktop versions&#8230;<\/p>\n","protected":false},"author":2,"featured_media":27585,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[4],"tags":[307,306],"class_list":["post-27559","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-elementor","tag-desktop-only-css","tag-elementor-css"],"_links":{"self":[{"href":"https:\/\/mcstarters.com\/blog\/wp-json\/wp\/v2\/posts\/27559","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mcstarters.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mcstarters.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mcstarters.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mcstarters.com\/blog\/wp-json\/wp\/v2\/comments?post=27559"}],"version-history":[{"count":0,"href":"https:\/\/mcstarters.com\/blog\/wp-json\/wp\/v2\/posts\/27559\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mcstarters.com\/blog\/wp-json\/wp\/v2\/media\/27585"}],"wp:attachment":[{"href":"https:\/\/mcstarters.com\/blog\/wp-json\/wp\/v2\/media?parent=27559"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mcstarters.com\/blog\/wp-json\/wp\/v2\/categories?post=27559"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mcstarters.com\/blog\/wp-json\/wp\/v2\/tags?post=27559"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}