{"id":1066,"date":"2026-06-15T15:54:46","date_gmt":"2026-06-15T15:54:46","guid":{"rendered":"https:\/\/www.smashpops.com\/blog\/?page_id=1066"},"modified":"2026-06-15T16:24:21","modified_gmt":"2026-06-15T16:24:21","slug":"advanced-styling","status":"publish","type":"page","link":"https:\/\/www.smashpops.com\/blog\/advanced-styling\/","title":{"rendered":"Advanced styling"},"content":{"rendered":"<p>Usually, styling your popup is done in the &#8220;Design&#8221; section (for both game and win screens).<\/p>\n<p>However, you also have the freedom to create more advanced styling using custom CSS in &#8220;Game screen &gt; Design &gt; General &gt; Add custom CSS&#8221;. This CSS will be applied globally on the page the popup will be shown on, so it will be applied to any SmashPops element but also to any other element of your store, depending on the CSS selectors you choose. Let&#8217;s dive in to see the CSS selectors that we should use.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1068\" src=\"https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2026\/06\/styling1.jpg\" alt=\"\" width=\"378\" height=\"361\" srcset=\"https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2026\/06\/styling1.jpg 820w, https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2026\/06\/styling1-300x287.jpg 300w, https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2026\/06\/styling1-768x734.jpg 768w\" sizes=\"auto, (max-width: 378px) 100vw, 378px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>When you check &#8220;Add custom CSS&#8221;, a text field appears, where you can enter CSS that will be applied globally. Here are some useful CSS selectors that you can use to apply styles to elements :<\/p>\n<p><strong>.spps-ctn<\/strong> : This selects the main container (that contains the popup, the teaser and the use bar).<br \/>\n<strong>.spps-toast<\/strong> : This selects the teaser.<br \/>\n<strong>.spps-mc<\/strong> : This selects the popup.<br \/>\n<strong>.spps-mc .spps-cr<\/strong> : This selects the top right cross (to close the popup).<br \/>\n<strong>.spps-ubar<\/strong> : This selects the bar (that says &#8220;Your coupon is reserved for XX:XX&#8221;).<\/p>\n<p><strong>.spps-game-screen<\/strong> : This selects the game screen.<br \/>\n<strong>.spps-game-screen .spps-title<\/strong> : This selects the title of the game screen.<br \/>\n<strong>.spps-game-screen .spps-subtitle<\/strong> : This selects the subtitle of the game screen.<br \/>\n<strong>.spps-form<\/strong> : This selects the form with the email\/phone\/name inputs and checkboxes.<br \/>\n<strong>.spps-game-screen .spps-disclaimer<\/strong> : This selects the bottom note of the game screen.<br \/>\n<strong>.spps-game-screen .spps-btn<\/strong> : This selects the play button of the game screen.<br \/>\n<strong>.spps-wheel<\/strong> : This selects the wheel (if there is one).<\/p>\n<p><strong>.spps-win-screen<\/strong> : This selects the win screen.<br \/>\n<strong>.spps-win-screen .spps-title<\/strong> : This selects the title of the win screen.<br \/>\n<strong>.spps-win-screen .spps-label<\/strong> : This selects the subtitle of the win screen.<br \/>\n<strong>.spps-ticket-ctn<\/strong> : This selects the discount container of the win screen.<br \/>\n<strong>.spps-coupon-label<\/strong> : This selects the discount label of the win screen.<br \/>\n<strong>.spps-code<\/strong> : This selects the discount code of the win screen.<br \/>\n<strong>.spps-win-screen .spps-disclaimer<\/strong> : This selects the bottom note of the winscreen.<br \/>\n<strong>.spps-win-screen .spps-btn<\/strong> : This selects the continue button of the win screen.<\/p>\n<h2>General example<\/h2>\n<p>Let&#8217;s see an example where I change the font color of the game screen title:<\/p>\n<pre>.spps-game-screen .spps-title {\r\n  color: green!important;\r\n}<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1072\" src=\"https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2026\/06\/styling2.jpg\" alt=\"\" width=\"733\" height=\"391\" srcset=\"https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2026\/06\/styling2.jpg 1670w, https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2026\/06\/styling2-300x160.jpg 300w, https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2026\/06\/styling2-1024x546.jpg 1024w, https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2026\/06\/styling2-768x410.jpg 768w, https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2026\/06\/styling2-1536x820.jpg 1536w\" sizes=\"auto, (max-width: 733px) 100vw, 733px\" \/><\/p>\n<p>A few comments :<\/p>\n<ul>\n<li>When you write CSS, the change should be visible immediately in the builder (no need to reload or click on the \u201cPreview\u201d button).<\/li>\n<li>Most styles that are editable in the builder (like font size and color) are set inline. Which means that to override them, you may have to use the !important keyword (as in my example). For other styles, having enough <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\/Specificity\">specificity<\/a> should be enough. In case you\u2019re not familiar with this, don\u2019t worry : if you write a rule and it doesn\u2019t seem to be applied, you can try adding <a href=\"https:\/\/www.w3schools.com\/css\/css_important.asp\">!important<\/a> between the end of your value and the semicolon (this will make your CSS rule override any other directly), like this :\n<pre>.spps-game-screen .spps-title {\r\n  color: red<strong>!important<\/strong>;\r\n}<\/pre>\n<\/li>\n<\/ul>\n<h2>Using a custom font<\/h2>\n<p>Unfortunately, you can&#8217;t directly upload a custom font. However, you can definitely apply a custom font if it&#8217;s hosted somewhere else (on your store or Google Fonts for instance).<\/p>\n<p>If the font is already loaded on your website, you can just add the following to the custom CSS field of &#8220;Design &gt; General&#8221; (this will override any other font family setting) :<\/p>\n<pre>.spps-ctn * {\r\n  font-family: \"<strong>&lt;Name of the font&gt;<\/strong>\", inherit!important;\r\n}<\/pre>\n<p>As the font is only loaded on the website and not on the builder, <strong>the font will only render fine on your website<\/strong> (you&#8217;ll see another font on the builder).<\/p>\n<p>And in case the font is not loaded on your website, you can load it using CSS before using it :<\/p>\n<pre>@font-face {\r\n  font-family: \"<strong>&lt;Name of the font&gt;<\/strong>\";\r\n  src: url(\"<strong>&lt;URL of the font&gt;<\/strong>\");\r\n  font-weight: normal;\r\n  font-style: normal;\r\n}\r\n.spps-ctn * {\r\n  font-family: \"<strong>&lt;Name of the font&gt;<\/strong>\", inherit!important;\r\n}<\/pre>\n<p>This time, the font should appear in the preview (but if it&#8217;s already loaded on your website, do not load it twice!).<\/p>\n<h2>Changing the popup size on desktop<\/h2>\n<p>The popup may be quite big on a desktop-sized browser. If you&#8217;d like to change its size, you can use the following CSS :<\/p>\n<pre>@media (min-width: 769px) {\r\n  .spps-ol .spps-mc {\r\n    transform: scale(<strong>0.8<\/strong>)!important;\r\n  }\r\n}<\/pre>\n<p>You can modify the &#8220;0.8&#8221; value above to any value between 0 and 1 to adjust the size on desktop.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Usually, styling your popup is done in the &#8220;Design&#8221; section (for both game and win screens). However, you also have the freedom to create more advanced styling using custom CSS in &#8220;Game screen &gt; Design &gt; General &gt; Add custom CSS&#8221;. This CSS will be applied globally on the page the popup will be shown [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"powered_cache_disable_cache":false,"footnotes":""},"class_list":["post-1066","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v14.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Advanced styling - SmashPops Blog<\/title>\n<meta name=\"robots\" content=\"index, follow\" \/>\n<meta name=\"googlebot\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta name=\"bingbot\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.smashpops.com\/blog\/advanced-styling\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Advanced styling - SmashPops Blog\" \/>\n<meta property=\"og:description\" content=\"Usually, styling your popup is done in the &#8220;Design&#8221; section (for both game and win screens). However, you also have the freedom to create more advanced styling using custom CSS in &#8220;Game screen &gt; Design &gt; General &gt; Add custom CSS&#8221;. This CSS will be applied globally on the page the popup will be shown [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.smashpops.com\/blog\/advanced-styling\/\" \/>\n<meta property=\"og:site_name\" content=\"SmashPops Blog\" \/>\n<meta property=\"article:modified_time\" content=\"2026-06-15T16:24:21+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2026\/06\/styling1.jpg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.smashpops.com\/blog\/#organization\",\"name\":\"SmashPops\",\"url\":\"https:\/\/www.smashpops.com\/blog\/\",\"sameAs\":[],\"logo\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.smashpops.com\/blog\/#logo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2020\/04\/icon1024.png\",\"width\":1024,\"height\":1024,\"caption\":\"SmashPops\"},\"image\":{\"@id\":\"https:\/\/www.smashpops.com\/blog\/#logo\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.smashpops.com\/blog\/#website\",\"url\":\"https:\/\/www.smashpops.com\/blog\/\",\"name\":\"SmashPops Blog\",\"description\":\"Everything you need to know about e-commerce and email collection.\",\"publisher\":{\"@id\":\"https:\/\/www.smashpops.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/www.smashpops.com\/blog\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.smashpops.com\/blog\/advanced-styling\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2026\/06\/styling1.jpg\",\"width\":820,\"height\":784},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.smashpops.com\/blog\/advanced-styling\/#webpage\",\"url\":\"https:\/\/www.smashpops.com\/blog\/advanced-styling\/\",\"name\":\"Advanced styling - SmashPops Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.smashpops.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.smashpops.com\/blog\/advanced-styling\/#primaryimage\"},\"datePublished\":\"2026-06-15T15:54:46+00:00\",\"dateModified\":\"2026-06-15T16:24:21+00:00\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.smashpops.com\/blog\/advanced-styling\/\"]}]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"https:\/\/www.smashpops.com\/blog\/wp-json\/wp\/v2\/pages\/1066","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.smashpops.com\/blog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.smashpops.com\/blog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.smashpops.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.smashpops.com\/blog\/wp-json\/wp\/v2\/comments?post=1066"}],"version-history":[{"count":7,"href":"https:\/\/www.smashpops.com\/blog\/wp-json\/wp\/v2\/pages\/1066\/revisions"}],"predecessor-version":[{"id":1075,"href":"https:\/\/www.smashpops.com\/blog\/wp-json\/wp\/v2\/pages\/1066\/revisions\/1075"}],"wp:attachment":[{"href":"https:\/\/www.smashpops.com\/blog\/wp-json\/wp\/v2\/media?parent=1066"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}