<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Aliko Sunawang</title>
    <description>The latest articles on DEV Community by Aliko Sunawang (@sunawang).</description>
    <link>https://dev.to/sunawang</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F209633%2F06959dd6-9c38-4e62-a7ca-eaddf6c87e76.jpg</url>
      <title>DEV Community: Aliko Sunawang</title>
      <link>https://dev.to/sunawang</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sunawang"/>
    <language>en</language>
    <item>
      <title>How to Create Fill-in Button Hover Effect in Elementor</title>
      <dc:creator>Aliko Sunawang</dc:creator>
      <pubDate>Tue, 21 Apr 2026 06:43:59 +0000</pubDate>
      <link>https://dev.to/sunawang/how-to-create-fill-in-button-hover-effect-in-elementor-57lp</link>
      <guid>https://dev.to/sunawang/how-to-create-fill-in-button-hover-effect-in-elementor-57lp</guid>
      <description>&lt;h2&gt;
  
  
  Table of Contents
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Understanding the Logic&lt;/li&gt;
&lt;li&gt;Implementing the Logic in CSS Code&lt;/li&gt;
&lt;li&gt;
Applying the Code to Elementor Button Widget

&lt;ul&gt;
&lt;li&gt;Applying the Code on Elementor Pro&lt;/li&gt;
&lt;li&gt;Applying the Code on Elementor Free&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;Premade Button Hover Effects&lt;/li&gt;

&lt;/ul&gt;

&lt;p&gt;A little trick to add a premium impression to your Elementor design is by adding a button hover effect outside the default hover effects that Elementor offers. And it requires custom CSS.&lt;/p&gt;

&lt;p&gt;In this post, I will show you how to create a button hover effect widely used by premium sites: fill-in effect.&lt;/p&gt;

&lt;h2&gt;
  
  
  Understanding the Logic
&lt;/h2&gt;

&lt;p&gt;In Elementor, the Button widget has the class selector of &lt;code&gt;.elementor-button&lt;/code&gt;. In the HTML structure, the selector belongs to the &lt;code&gt;&amp;lt;a&amp;gt;&lt;/code&gt; tag. Inside the &lt;code&gt;&amp;lt;a&amp;gt;&lt;/code&gt; tag, there are two &lt;code&gt;&amp;lt;span&amp;gt;&lt;/code&gt; tags for the text and icon elements.&lt;/p&gt;

&lt;p&gt;Elementor wraps the button with a &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; to make it easy for designers to style up the button.&lt;/p&gt;

&lt;p&gt;In Elementor itself, you can add a new class to a widget. Including the Button. When you add a new class, it will be assigned to the widget wrapper, the &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt;. And here is the key part.&lt;/p&gt;

&lt;p&gt;To create a fill-in hover effect, you can use the &lt;code&gt;::before&lt;/code&gt; pseudo selector to add a new element(layer) before the button wrapper.&lt;/p&gt;

&lt;p&gt;To make the &lt;code&gt;::before&lt;/code&gt; layer invisible on normal state, you can use the &lt;code&gt;scale&lt;/code&gt; function on the &lt;code&gt;transform&lt;/code&gt; property and set the value to &lt;code&gt;0&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Then, you can set the function value to &lt;code&gt;1&lt;/code&gt; on the hover state to make the &lt;code&gt;::before&lt;/code&gt; layer be visible.&lt;/p&gt;

&lt;p&gt;To set the slide direction, you can use &lt;code&gt;transform-origin&lt;/code&gt; property.&lt;/p&gt;

&lt;h2&gt;
  
  
  Implementing the Logic in CSS Code
&lt;/h2&gt;

&lt;p&gt;Here is an example of the CSS snippet for fill-in hover effect with the direction from left and back to left.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.my-hover-effect .elementor-button::before{
    content:'';
    position: absolute;
    background:#000000; /* change the fill color here */
    width:100%;
    height: 100%;
    top:0;
    left: 0;
    transform:scaleX(0);
    transform-origin: left;
    transition: transform .6s ease;
}

.my-hover-effect .elementor-button{
    overflow: hidden;
    vertical-align: middle;
    position: relative;
}

.my-hover-effect .elementor-button:hover::before{
    transform:scaleX(1);
}

.my-hover-effect .elementor-button-text, .my-hover-effect .elementor-button-icon{
    z-index: 1;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;There are four blocks on the CSS snippet above. Here is the explanation:&lt;/p&gt;

&lt;h3&gt;
  
  
  Block 1
&lt;/h3&gt;

&lt;p&gt;This block sets the background color of the &lt;code&gt;::before&lt;/code&gt; pseudo element black and sets the position to absolute. I use the &lt;code&gt;scaleX&lt;/code&gt; function so the effect takes place in a horizontal direction. The &lt;code&gt;left&lt;/code&gt; keyword on the &lt;code&gt;transform-origin&lt;/code&gt; property instructs the slide effect to start from the left direction to the right direction.&lt;/p&gt;

&lt;p&gt;To change the slide direction, you can change the &lt;code&gt;left&lt;/code&gt; keyword to &lt;code&gt;right&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Block 2
&lt;/h3&gt;

&lt;p&gt;This block plays a role as a "container" for the button to hold the sliding overlays without them spilling outside the borders. &lt;/p&gt;

&lt;p&gt;With this block, you have freedom to set the border radius of the button.&lt;/p&gt;

&lt;h3&gt;
  
  
  Block 3
&lt;/h3&gt;

&lt;p&gt;This is where the fill-in (slide) effect takes place when you hover your cursor over the button.&lt;/p&gt;

&lt;h3&gt;
  
  
  Block 4
&lt;/h3&gt;

&lt;p&gt;This block moves the button text and button icon to the top layer on the button (you can use a higher z-index value if you want). This makes sure that these elements (text and icon) keep visible on hover.&lt;/p&gt;

&lt;h2&gt;
  
  
  Applying the Code to Elementor Button Widget
&lt;/h2&gt;

&lt;p&gt;Before you apply the CSS snippet to a Button widget, you can style up the button via the Elementor editor just like usual.&lt;/p&gt;

&lt;p&gt;You can set things like background color, text color, and so on.&lt;/p&gt;

&lt;p&gt;The CSS snippet I provided above has the CSS class of &lt;code&gt;my-hover-effect&lt;/code&gt;. You can add this class to the &lt;strong&gt;CSS Classes&lt;/strong&gt; field on the &lt;strong&gt;Advanced&lt;/strong&gt; tab in the Elementor settings panel.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6te0kr2427o8cefewnz2.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6te0kr2427o8cefewnz2.jpg" alt="Adding CSS class in Elementor" width="800" height="1351"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Applying the Code on Elementor Pro
&lt;/h3&gt;

&lt;p&gt;Since Elementor Pro allows you to add custom CSS directly to a widget, you can simply paste the above code to the &lt;strong&gt;Custom CSS&lt;/strong&gt; field in the editor.&lt;/p&gt;

&lt;p&gt;Simply go to the &lt;strong&gt;Advanced&lt;/strong&gt; tab and open the &lt;strong&gt;Custom CSS&lt;/strong&gt; field. Paste the code here.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbm3j0pypigisud589uzv.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbm3j0pypigisud589uzv.jpg" alt="Pasting CSS code in Elementor editor" width="800" height="1556"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Applying the Code on Elementor Free
&lt;/h3&gt;

&lt;p&gt;If you don't have Elementor Pro, you can use the HTML widget to add the CSS code. So, add the HTML widget to the canvas area. You can place it anywhere. Not necessarily to the same container as the Button widget.&lt;/p&gt;

&lt;p&gt;Once the HTML widget is in place, type &lt;code&gt;&amp;lt;style&amp;gt;&amp;lt;/style&amp;gt;&lt;/code&gt; and place the CSS snippet between these tags.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6j5pkw14l3ibbia1us4e.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6j5pkw14l3ibbia1us4e.jpg" alt="Paste the CSS snippet in HTML widget" width="800" height="1303"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Premade Button Hover Effects
&lt;/h2&gt;

&lt;p&gt;If you are interested, I have created 40+ hover effects for the Elementor Button widget. You can use the effects on both Elementor Free and Pro&lt;/p&gt;

&lt;p&gt;&lt;a href="https://pagebuildertemplates.com/elementor-button-hover-effects/" class="crayons-btn crayons-btn--primary" rel="noopener noreferrer"&gt;Download 40+ Elementor Hover Effects&lt;/a&gt;
&lt;/p&gt;

</description>
      <category>wordpress</category>
      <category>css</category>
      <category>elementor</category>
      <category>webdev</category>
    </item>
    <item>
      <title>How to Change Icon Size on Elementor Button Widget</title>
      <dc:creator>Aliko Sunawang</dc:creator>
      <pubDate>Sun, 19 Apr 2026 07:54:43 +0000</pubDate>
      <link>https://dev.to/sunawang/how-to-change-icon-size-on-elementor-button-widget-57ob</link>
      <guid>https://dev.to/sunawang/how-to-change-icon-size-on-elementor-button-widget-57ob</guid>
      <description>&lt;h2&gt;
  
  
  Table Of Contents
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Changing button icon in Elementor Pro&lt;/li&gt;
&lt;li&gt;Changing button icon in Elementor Free&lt;/li&gt;
&lt;li&gt;Prebuilt button templates&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Elementor lacks styling options for buttons. You can't even change the icon size.&lt;/p&gt;

&lt;p&gt;Since most Elementor users don't have CSS knowledge (because it is marketed as a no-code web builder), I assume there are many users who  seek a solution to resize the button icon. And I will cover it in this post.&lt;/p&gt;

&lt;p&gt;First thing first. The Elementor button icon has the CSS class selector of &lt;code&gt;elementor-button-icon&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;If you know CSS, you can use the selector to resize the icon using the &lt;code&gt;scale&lt;/code&gt; function on the &lt;code&gt;transform&lt;/code&gt; property. You can place your code anywhere on your website.&lt;/p&gt;

&lt;p&gt;If you have no CSS knowledge at all, then you can follow the step-by-step tutorial below:&lt;/p&gt;

&lt;h2&gt;
  
  
  Elementor Pro
&lt;/h2&gt;

&lt;p&gt;First, add the Button widget to your design and add the icon you like. You can use the default icons that Elementor offers or custom icons (SVG) from websites like SVG Repo and Bootstrap Icons.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftjhesmbv7u5pud5zv1xv.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftjhesmbv7u5pud5zv1xv.jpg" alt="Adding an icon on Elementor Button widget" width="700" height="725"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Next, go to the &lt;strong&gt;Advanced&lt;/strong&gt; tab and open the &lt;strong&gt;Custom CSS&lt;/strong&gt; block. Then, type the following code in the CSS editor box.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F86vadr8l5ubzcm7vdwo5.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F86vadr8l5ubzcm7vdwo5.jpg" alt="Adding the code snippet" width="700" height="1199"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;selector&lt;/span&gt; &lt;span class="nc"&gt;.elementor-button-icon&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;transform&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;scale&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="m"&gt;1.5&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can replace the number inside the brackets according to the size of the icon you want. You can enter either an integer or decimal.&lt;/p&gt;

&lt;p&gt;A little note. If you use a custom SVG file for your icon, you need to directly target the SVG element. So, your code should look like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;selector&lt;/span&gt; &lt;span class="nc"&gt;.elementor-button-icon&lt;/span&gt; &lt;span class="nt"&gt;svg&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;transform&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;scale&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="m"&gt;1.5&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Elementor Free
&lt;/h2&gt;

&lt;p&gt;Since Elementor Free doesn't allow you to write CSS code directly on a widget, you need to use another path.&lt;/p&gt;

&lt;p&gt;There are two paths that you can use for this matter. First, you can use the HTML widget. Second, you can use WordPress Theme Customizer and place your code on the Additional CSS block.&lt;/p&gt;

&lt;p&gt;In this post, I will show the first path because it's the easiest one.&lt;/p&gt;

&lt;p&gt;Start by adding the Button widget and adding the icon. Once everything is in place, add the HTML widget. You can place it anywhere on your page.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5trkge0msdmo2ftti6sw.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5trkge0msdmo2ftti6sw.jpg" alt="Elementor HTML widget" width="700" height="598"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Then, write the following code in the editor.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1ptma9qcjl95l4ygilko.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1ptma9qcjl95l4ygilko.jpg" alt="CSS code in HTML widget" width="700" height="588"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;style&amp;gt;&lt;/span&gt;
    &lt;span class="nc"&gt;.my-custom-icon&lt;/span&gt; &lt;span class="nc"&gt;.elementor-button-icon&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;transform&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;scale&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="m"&gt;1.5&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/style&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Next, select the Button widget and go to the Advanced tab. Paste the CSS class of &lt;code&gt;my-custom-icon&lt;/code&gt; to the &lt;strong&gt;CSS Classes&lt;/strong&gt; field.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fe4k62jfdlw18rtonen48.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fe4k62jfdlw18rtonen48.jpg" alt="CSS code in HTML widget" width="700" height="1195"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Same as Elementor Pro, you need to add the &lt;code&gt;svg&lt;/code&gt; selector on your code if you use a custom SVG file for your icon.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prebuilt Button Templates
&lt;/h2&gt;

&lt;p&gt;If you are interested, I have created several pre-built button hover effects for Elementor. You can use them on both Elementor Free and Pro.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://pagebuildertemplates.com/elementor-button-hover-effects/" class="crayons-btn crayons-btn--primary" rel="noopener noreferrer"&gt;Download the Button Hover Effects&lt;/a&gt;
&lt;/p&gt;

</description>
      <category>wordpress</category>
      <category>css</category>
      <category>elementor</category>
      <category>webdev</category>
    </item>
    <item>
      <title>40+ Elementor Button Hover Effects Created with Custom CSS</title>
      <dc:creator>Aliko Sunawang</dc:creator>
      <pubDate>Mon, 13 Apr 2026 06:53:59 +0000</pubDate>
      <link>https://dev.to/sunawang/40-elementor-button-hover-effects-created-with-custom-css-2ba9</link>
      <guid>https://dev.to/sunawang/40-elementor-button-hover-effects-created-with-custom-css-2ba9</guid>
      <description>&lt;p&gt;The new stats showcased at its homepage reveals that Elementor is now powering over 21 million websites on the internet. This is a huge number and there is one clear reason why Elementor managed to achieve this achievement.&lt;/p&gt;

&lt;p&gt;With Elementor, anyone can build their own website regardless of their coding skills level.&lt;/p&gt;

&lt;p&gt;Even if you are not a coder, you can still build a decent website with Elementor thanks to its drag-and-drop editing experience.&lt;/p&gt;

&lt;p&gt;AI-powered website builders are popping up almost every day in today’s AI era but they can’t really dethrone Elementor (or WordPress in general).&lt;/p&gt;

&lt;p&gt;That’s because they don’t offer something that Elementor has been offering: a joyful visual web building experience.&lt;/p&gt;

&lt;p&gt;Elementor’s visual editor may not be the best, but it is one of the most user-friendly ones. And that’s the exact reason to get Elementor to be at the current position.&lt;/p&gt;

&lt;p&gt;Although you can create a website with Elementor without needing to have coding skills, there are some situations where coding knowledge is needed.&lt;/p&gt;

&lt;p&gt;Like when you want to create a custom hover effect to a button to add a premium vibe to your website.&lt;/p&gt;

&lt;h2&gt;
  
  
  Issues with Elementor’s Built-in Hover Effects
&lt;/h2&gt;

&lt;p&gt;In Elementor, you can create a button using the Button widget. This is the widget dedicated to creating a button. You don’t need to create a component like, for instance, Framer.&lt;/p&gt;

&lt;p&gt;You can also sweeten the look of your button by adding a hover effect. And here is the problem.&lt;/p&gt;

&lt;p&gt;Elementor doesn’t really offer hover effects worth using. At least if you want to add a premium vibe to your website. The hover effects that Elementor offers are too generic and boring. &lt;/p&gt;

&lt;p&gt;Also, you have no control over the hover effect of individual button elements (text and button). The button hover effect is applied directly to the whole button.&lt;/p&gt;

&lt;p&gt;Elementor has a built-in custom CSS feature to apply a custom hover effect to a button, but I bet not all Elementor users have CSS knowledge.&lt;/p&gt;

&lt;p&gt;And for this exact reason, I created these hover effects.&lt;/p&gt;

&lt;p&gt;You can probably create the same hover effects using a third-party add-on. But installing an add-on is not always a smart solution. Especially if you have a big concern on site performance and plugin management.&lt;/p&gt;

&lt;p&gt;I only used CSS to create the hover effects. No JavaScript, no external resources. Because I understand how painful it is to have your site’s performance getting slower due to extra HTML requests and JavaScript rendering.&lt;/p&gt;

&lt;h2&gt;
  
  
  Hover Effects Demo
&lt;/h2&gt;

&lt;p&gt;You can watch the following video to view the button hover effects I created.&lt;/p&gt;


&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
        &lt;div class="c-embed__cover"&gt;
          &lt;a href="https://totheweb.wistia.com/medias/ei126pjlnx?embedType=web_component&amp;amp;amp%3Bseo=false&amp;amp;amp%3BvideoWidth=960" class="c-link align-middle" rel="noopener noreferrer"&gt;
            &lt;img alt="" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/http%3A%2F%2Fembed.wistia.com%2Fdeliveries%2F26c7e02cac4810d69b8841d63d4a8113c76806f5.jpg" height="420" class="m-0" width="800"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="c-embed__body"&gt;
        &lt;h2 class="fs-xl lh-tight"&gt;
          &lt;a href="https://totheweb.wistia.com/medias/ei126pjlnx?embedType=web_component&amp;amp;amp%3Bseo=false&amp;amp;amp%3BvideoWidth=960" rel="noopener noreferrer" class="c-link"&gt;
            
        Elementor Button Hover Effects Demo
    
          &lt;/a&gt;
        &lt;/h2&gt;
        &lt;div class="color-secondary fs-s flex items-center"&gt;
          totheweb.wistia.com
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;Or if you prefer to view the live demo on a live page, you can click the link below.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://elementor.utilizewp.com/elementor-button-hover-effects/" rel="noopener noreferrer"&gt;VIEW LIVE PREVIEW&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Using the Button Hover Effects
&lt;/h2&gt;

&lt;p&gt;Like I said, I only used CSS to create the hover effects. In Elementor itself, there are two options to add custom CSS.&lt;/p&gt;

&lt;p&gt;Pro users can add a CSS snippet directly to a widget and can target a specific element using CSS class.&lt;/p&gt;

&lt;p&gt;To make the CSS snippet apply only to a specific widget, you can use &lt;code&gt;selector&lt;/code&gt; as the prefix.&lt;/p&gt;

&lt;p&gt;What if you don’t have the pro version?&lt;/p&gt;

&lt;p&gt;You can use the HTML widget to place your CSS snippet or you can also add it to the &lt;strong&gt;Additional CSS&lt;/strong&gt; in WordPress Theme Customizer.&lt;/p&gt;

&lt;p&gt;If you want to use the HTML widget, make sure to type the &lt;code&gt;&amp;lt;style&amp;gt;&amp;lt;/style&amp;gt;&lt;/code&gt; before you can start to write the CSS code.&lt;/p&gt;

&lt;p&gt;Since I use Elementor Pro, I added the CSS snippet of each effect directly to the Button widgets.&lt;/p&gt;

&lt;p&gt;I put together the Button widgets (complete with the hover effects) to a page and exported it to a JSON file so that you can import it on your project.&lt;/p&gt;

&lt;p&gt;You can get the JSON file of the page below.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://pagebuildertemplates.com/elementor-button-hover-effects/" rel="noopener noreferrer"&gt;DOWNLOAD JSON FILE&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After downloading the JSON file, you can create a new page and edit it with Elementor and then import the JSON file.&lt;/p&gt;

&lt;p&gt;To use a hover effect, you can simply copy the Button you want to use the hover effect of to the page you work on.&lt;/p&gt;

&lt;p&gt;One thing. The copy-paste ability works only on the same domain. This means, you can’t copy a Button widget from one domain to another. &lt;/p&gt;

&lt;p&gt;Which also means that you need to import the JSON file to a different domain if you want to use it.&lt;/p&gt;

&lt;p&gt;Here is the &lt;a href="https://pagebuildertemplates.com/doc/button-hover-effects/" rel="noopener noreferrer"&gt;documentation&lt;/a&gt; of the hover effects.&lt;/p&gt;

</description>
      <category>css</category>
      <category>wordpress</category>
    </item>
    <item>
      <title>Adding Zoom Effect on Hover to Post Thumbnail on Divi Blog Module</title>
      <dc:creator>Aliko Sunawang</dc:creator>
      <pubDate>Tue, 12 Sep 2023 05:56:39 +0000</pubDate>
      <link>https://dev.to/sunawang/adding-zoom-effect-on-hover-to-post-thumbnail-on-divi-blog-module-21dp</link>
      <guid>https://dev.to/sunawang/adding-zoom-effect-on-hover-to-post-thumbnail-on-divi-blog-module-21dp</guid>
      <description>&lt;p&gt;Divi comes with a built-in module called Blog dedicated to displaying content on your WordPress website. The elements you can display on your content feed include post thumbnail/featured image, post title, and post meta (author, date, and so on). Several built-in styling options are available to style up each element. Unfortunately, there is no built-in option to add a zoom effect -- or other effects -- on hover.&lt;/p&gt;

&lt;p&gt;In this post, I will show you how to add a zoom effect to the post thumbnail on Divi blog module.&lt;/p&gt;

&lt;h2&gt;
  
  
  Steps to Add Zoom Effect on Hover to Post Thumbnail on Divi Blog Module
&lt;/h2&gt;

&lt;p&gt;Although Divi has no built-in option to add a hover effect to the post thumbnail on the Blog module, you can achieve it via custom CSS. In Divi itself, you can add custom CSS to a certain module element directly without defining the selector. You can access the custom CSS feature by going to the &lt;strong&gt;Advanced&lt;/strong&gt; tab on the module settings panel. Simply open the &lt;strong&gt;Custom CSS&lt;/strong&gt; block.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fy3perpnr06l7czw4pfvu.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fy3perpnr06l7czw4pfvu.jpg" alt="Custom CSS block in Divi module settings panel" width="700" height="870"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The text editor fields available on the Custom CSS block varied, depending on the module. On the Blog module itself, you can find a &lt;strong&gt;Featured Image&lt;/strong&gt; field. As you can guess, you can use the editor field to add custom CSS to the post thumbnail. You can actually add a hover effect directly to the post thumbnail via this field by switching to the hover mode (by clicking the cursor icon). However, the result is a bit weird as you can see on the animated GIF below.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fak9964ptl2z8422of6zp.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fak9964ptl2z8422of6zp.gif" alt="Wrong hover effect on Divi Blog module" width="700" height="353"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;There is a better way to add hover effect to the post thumbnail on the Divi blog module.&lt;/p&gt;

&lt;p&gt;The steps I will below involve selector declaration. You can read my previous post to learn more about how to &lt;a href="https://dev.to/sunawang/using-custom-class-selector-in-divi-1gnk"&gt;use CSS selector on Divi&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;First, add the Blog module and set the layout to Grid. Make sure to enable featured image on the module. Style up the blog per your preference. Once done, add a Code module and paste the following snippet:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;style&amp;gt;
.et_pb_post .entry-featured-image-url {
    margin: 0;
}
.et_pb_blog_0 .et_pb_image_container {
    overflow: hidden;
}
.et_pb_blog_0 .et_pb_image_container img {
    transition: all 0.95s ease;
    -moz-transition: all 0.95s ease;
    -webkit-transition: all 0.95s ease;
}
.et_pb_blog_0 .et_pb_post:hover img {
    transform: scale(1.15) rotate(1deg);
    -moz-transform: scale(1.15) rotate(1deg);
    -webkit-transform: scale(1.15) rotate(1deg);
}
&amp;lt;/style&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The above snippet (credit to &lt;a href="https://utilizewp.com/" rel="noopener noreferrer"&gt;UtilizeWP&lt;/a&gt;) will result in the following hover effect.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fedvrpexfdz8gz0pf06b8.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fedvrpexfdz8gz0pf06b8.gif" alt="Proper hover effect on Divi Blog module" width="760" height="434"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can change the hover effect by editing the &lt;code&gt;transform: scale(1.15) rotate(1deg);&lt;/code&gt; line on the above snippet. You can refer to &lt;a href="https://developer.mozilla.org/en-US/docs/Web/CSS/transform" rel="noopener noreferrer"&gt;this page&lt;/a&gt; to learn more about CSS transform.&lt;/p&gt;

&lt;p&gt;If you apply the CSS snippet above using the Code module, the effect will only apply on the current page only. If you want to apply it to all Blog modules on your website, you can place the snippet to Divi Theme Options.&lt;/p&gt;

&lt;h3&gt;
  
  
  Code Explanation
&lt;/h3&gt;

&lt;p&gt;First, the code adjusts the image spacing using the &lt;code&gt;margin&lt;/code&gt; property. Next, it keeps the zoomed image in the frame using the &lt;code&gt;overflow&lt;/code&gt; property. The &lt;code&gt;transform&lt;/code&gt; property is used to add the zoom effect on hover, while the &lt;code&gt;transition&lt;/code&gt; property adds a smooth transition for the zoom effect.&lt;/p&gt;

</description>
      <category>divi</category>
      <category>wordpress</category>
    </item>
    <item>
      <title>Using Custom SVG Icon on Divi Blurb Module</title>
      <dc:creator>Aliko Sunawang</dc:creator>
      <pubDate>Sun, 13 Aug 2023 06:55:46 +0000</pubDate>
      <link>https://dev.to/sunawang/using-custom-svg-icon-on-divi-blurb-module-15mh</link>
      <guid>https://dev.to/sunawang/using-custom-svg-icon-on-divi-blurb-module-15mh</guid>
      <description>&lt;p&gt;Divi is a visual website builder built exclusively for &lt;a href="https://dev.to/t/wordpress"&gt;WordPress&lt;/a&gt;. It comes with a number of design elements -- called modules -- to make it easy for you to create the pages of your website. One of the modules offered by Divi is Blurb.&lt;/p&gt;

&lt;p&gt;Blurb is a Divi module that you can use to add things like features list, post author, and other elements containing image and text element. In addition to image, the Divi Blurb module also supports icon. In Divi itself, you can add an icon from Font Awesome and the icons created by the Divi. The Blurb module doesn't allow you to upload an SVG icon file.&lt;/p&gt;

&lt;p&gt;However, since Divi -- and WordPress -- are open source, you can edit or add the code to make things work the you want. You can follow the instructions below to use a custom SVG icon on the Divi Blurb module.&lt;/p&gt;

&lt;h2&gt;
  
  
  Using Custom SVG Icon on Divi Blurb Module
&lt;/h2&gt;

&lt;p&gt;To use a custom SVG icon on the Divi Blurb module, first you need to the following PHP snippet the &lt;em&gt;functions.php&lt;/em&gt; file of Divi.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;cc_mime_types&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="nv"&gt;$mimes&lt;/span&gt; &lt;span class="p"&gt;){&lt;/span&gt;
  &lt;span class="nv"&gt;$mimes&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'svg'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'image/svg+xml'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nv"&gt;$mimes&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nf"&gt;add_filter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="s1"&gt;'upload_mimes'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'cc_mime_types'&lt;/span&gt; &lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;What the above code does is to allow SVG upload in WordPress (the default WordPress configuration doesn't allow SVG upload).&lt;/p&gt;

&lt;p&gt;Once you are done adding above code, edit a page with Divi. On the &lt;a href="https://www.wppagebuilders.com/divi-builder/" rel="noopener noreferrer"&gt;Divi Builder&lt;/a&gt; editor, add the Blurb module. Instead of icon, you can use image on the module. So, make sure the &lt;strong&gt;Use Icon&lt;/strong&gt; option is disabled on the Image &amp;amp; Icon settings block.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbuyca8zrpm9hbbx92d6y.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbuyca8zrpm9hbbx92d6y.jpg" alt=" "&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Next, click the plus icon to select the image file you want to use. You can select SVG icon you want to use.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw9sysx969srle3vtvfq7.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw9sysx969srle3vtvfq7.jpg" alt=" "&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That's it.&lt;/p&gt;

</description>
      <category>divi</category>
      <category>wordpress</category>
    </item>
    <item>
      <title>Using Custom Class Selector in Divi</title>
      <dc:creator>Aliko Sunawang</dc:creator>
      <pubDate>Sun, 09 Jul 2023 09:04:32 +0000</pubDate>
      <link>https://dev.to/sunawang/using-custom-class-selector-in-divi-1gnk</link>
      <guid>https://dev.to/sunawang/using-custom-class-selector-in-divi-1gnk</guid>
      <description>&lt;p&gt;Some &lt;a href="https://www.wppagebuilders.com/best-wordpress-page-builder/" rel="noopener noreferrer"&gt;WordPress page builders&lt;/a&gt; allow you to add custom CSS. This feature is quite useful if you understand CSS as you can achive any style with your knowledge. In Divi, adding custom CSS has been made even easier. You can directly apply custom CSS to a module without defining the selector. The best part is that you can apply different CSS to each device type (desktop, tablet, and smartphone).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fn34bupcv3vfd5vk3u3so.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fn34bupcv3vfd5vk3u3so.gif" alt=" " width="540" height="432"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;While it sounds great (the ability to add custom CSS without defining the selector), the approach also has some drawbacks. For some cases, defining the selector by your own is the best way to add custom CSS.&lt;/p&gt;

&lt;p&gt;Imagine this example. You want to apply custom style using custom CSS to hyperlinks on the post content. Normally, you can use these selectors &lt;code&gt;et_pb_post_content a&lt;/code&gt;. However, since Divi does't allow you to define the selector yourself on a module, you can't use the selectors. As a comparison, in Elementor, you can define the selector yourself when adding custom CSS to a widget so that you can combine the predefined selectors and HTML element selectors. Here is an example:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw1m17lolwjc6yhe3rk6n.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw1m17lolwjc6yhe3rk6n.png" alt=" " width="622" height="550"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Using Custom Class Selector in Divi
&lt;/h2&gt;

&lt;p&gt;Is there is a solution if you want to use your own selector? Divi has a native module called Code, which you can use to add custom code. The module supports three languages: HTML, JavaScript, and CSS. You can use it to use your custom CSS selector.&lt;/p&gt;

&lt;p&gt;In this post, I will show you how to use the Code module of Divi to &lt;a href="https://dev.to/sunawang/creating-gradient-heading-in-divi-using-css-1onl"&gt;create a gradient heading&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;First, add the Code module to your page. Add your CSS code to the editor. Don't forget to add your code between the opening tag of &lt;code&gt;&amp;lt;style&amp;gt;&lt;/code&gt; and the closing tag &lt;code&gt;&amp;lt;/style&amp;gt;&lt;/code&gt;. Here is an example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;style&amp;gt;
.gdrnt h1, h2, h3, h4{
    background-image: linear-gradient(to left, #feac5e, #c779d0,#4bc0c8);
    -webkit-background-clip: text;
    display: inline-block;
    -webkit-text-fill-color: #00000000;
}
&amp;lt;/style&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;As you can see, the above CSS code has five selectors (one custom class selector -- &lt;code&gt;gdrnt&lt;/code&gt; --  and four HTML element selectors). The the combination of these selectors mean target elements with the class selector of &lt;code&gt;gdrnt&lt;/code&gt; that have either H1, H2, H3, or H4.&lt;/p&gt;

&lt;p&gt;If you add the class selector to a module that has one of these heading levels, the gradient will be applied.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fk3tixczdmtxlk0x4z8d4.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fk3tixczdmtxlk0x4z8d4.gif" alt=" " width="800" height="460"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In addition to custom selector, you can also use the predefined selectors on the Code module of Divi. For instance, you can use these selectors &lt;code&gt;et_pb_post_content a&lt;/code&gt; to target the links on the post content on a custom template created with Divi Theme Builder.&lt;/p&gt;

</description>
      <category>css</category>
      <category>wordpress</category>
      <category>divi</category>
    </item>
    <item>
      <title>Creating Gradient Heading in Divi Using CSS</title>
      <dc:creator>Aliko Sunawang</dc:creator>
      <pubDate>Sat, 01 Jul 2023 10:20:45 +0000</pubDate>
      <link>https://dev.to/sunawang/creating-gradient-heading-in-divi-using-css-1onl</link>
      <guid>https://dev.to/sunawang/creating-gradient-heading-in-divi-using-css-1onl</guid>
      <description>&lt;p&gt;Divi is a popular WordPress theme that has a built-in page builder called Divi Builder (available as an integral part instead of a separate plugin). Just like other page builders like, for instance Elementor, Divi Builder can also make it easier for you to create the core pages on your WordPress website, with a visual editor. There are a bunch of design elements (called modules) you can use when creating a page with Divi Builder. One of which is Text.&lt;/p&gt;

&lt;p&gt;The Text module, as the name suggests, is designed to add text element to your page. This module offers plenty of built-in styling options to make your text look eye-catching, including the ability to create a gradient heading without needing to add custom CSS.&lt;/p&gt;

&lt;p&gt;However, for a certain reason, you might prefer to use custom CSS to create a gradient heading. Especially if you get used to gradient tools like &lt;a href="https://gradienta.io/editor" rel="noopener noreferrer"&gt;Gradienta&lt;/a&gt; and &lt;a href="https://cssgradient.io/" rel="noopener noreferrer"&gt;CSS Gradient&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Creating Gradient Heading in Divi Using CSS
&lt;/h2&gt;

&lt;p&gt;To create a gradient heading in Divi using custom CSS, first, you can prepare the CSS gradient first. To ease your job, you can use online CSS gradient generators as mentioned above. Here is an example of CSS gradient generated with Gradienta:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;background: linear-gradient(157.92deg, #b1b9f1 0%, #288cbd 51.59%, #2c2cf0 100%);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Once your CSS gradient is ready, open the Divi Builder editor and add the Code module. Add the following code to the editor.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjd6ik7u8xnrmdv79prvi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjd6ik7u8xnrmdv79prvi.png" alt=" " width="800" height="688"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;style&amp;gt;
.gdrnt{
    background-image: linear-gradient(to left, #feac5e, #c779d0,#4bc0c8);
    -webkit-background-clip: text;
    display: inline-block;
    -webkit-text-fill-color: #00000000;
}
&amp;lt;/style&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can replace the gradient to your liking. Please notice that the above code has the class selector name of &lt;code&gt;gdrnt&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Next, add a Text module and replace the default text on the text editor. Make sure to specify a heading level.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fem5hrcbzyl5zh0c28rgb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fem5hrcbzyl5zh0c28rgb.png" alt=" " width="800" height="414"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Next, switch to the &lt;strong&gt;Text&lt;/strong&gt; mode and add the class.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fz666e67krpg2rfixuavm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fz666e67krpg2rfixuavm.png" alt=" " width="800" height="419"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That's it. You can enjoy the result.&lt;/p&gt;

</description>
      <category>wordpress</category>
      <category>css</category>
      <category>divi</category>
    </item>
    <item>
      <title>Choosing The Right Hosting Service for Your Elementor Website</title>
      <dc:creator>Aliko Sunawang</dc:creator>
      <pubDate>Wed, 28 Jun 2023 08:38:00 +0000</pubDate>
      <link>https://dev.to/sunawang/chooshing-the-right-hosting-service-for-your-elementor-website-56hm</link>
      <guid>https://dev.to/sunawang/chooshing-the-right-hosting-service-for-your-elementor-website-56hm</guid>
      <description>&lt;p&gt;Elementor is a popular tool that makes it easy for you to create a website with WordPress. As a page builder plugin, it offers a drag and drop website creation experience. Meaning that you don't need to deal with code. Even so, Elementor also facilitate it in case you want to add custom code for certain functionalities that are not offered by Elementor by default. You can read my previous covering &lt;a href="https://dev.to/sunawang/how-to-use-css-selector-in-elementor-4m1p"&gt;how to use CSS selector in Elementor&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Before you can create a WordPress-based website with Elementor, you definitely need to have a web hosting service in advance. Basically, you can use any hosting service that supports WordPress, including cPanel-based traditional shared hosting services. However, for a smoother experience, I don't recommend this type of hosting service (cPanel-based). Especially if you plan to use the Form widget available on the Elementor Pro.&lt;/p&gt;

&lt;p&gt;For the sake of resource usage saving, most traditional web hosting services disable the &lt;em&gt;send_mail&lt;/em&gt; function of PHP, which is required by Elementor Form widget. Also, most cPanel-based web hosting services usually have lower PHP memory limit than managed WordPress hosting services. This can lead to Elementor editor failed to load.&lt;/p&gt;

&lt;h2&gt;
  
  
  Learn the Technical Specs Before You Subscribe to a Hosting Plan
&lt;/h2&gt;

&lt;p&gt;If you ever noticed, most WordPress hosting services don't disclose the technical specs of their hosting service such as PHP memory limit, PHP version, and so on. They mostly only disclose the surface features like cache, SSL, and FTP, which are basically very basic features.&lt;/p&gt;

&lt;p&gt;If you can't scrap the technical specs offered by the hosting service you plan to subscribe to, you can read reviews written by users.&lt;/p&gt;

&lt;p&gt;Here are the minimum system requirements demanded by Elementor:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;PHP version: 7.4 or higher&lt;/li&gt;
&lt;li&gt;PHP memory limit: 256 MB&lt;/li&gt;
&lt;li&gt;WordPress version: 5.9 higher&lt;/li&gt;
&lt;li&gt;Database: MySQL 5.6 or higher / MariaDB 10.0 or higher&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Recommended Hosting Services for Elementor
&lt;/h2&gt;

&lt;h3&gt;
  
  
  - Elementor Hosting
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flc543ybd0s4lbrikw9tw.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flc543ybd0s4lbrikw9tw.jpg" alt=" " width="800" height="356"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In case you haven't known yet, Elementor offers a managed hosting service to run your website. Previously, the service was called Elementor Cloud but it has been rebranded to Elementor Hosting&lt;/p&gt;

&lt;p&gt;Elementor Hosting is technically a Google Cloud-powered WordPress hosting with Elementor (Free and Pro) pre-installed. In other words, you don't need to install Elementor yourself if you use the service. The main benefit if you use Elementor Hosting is that you can enjoy the newest Elementor features as Elementor usually provides its newest features to Elementor Hosting before they are released on plugin version.&lt;/p&gt;

&lt;p&gt;The hosting service from Elementor comes with features like built-in CDN (powered by Cloudflare), cache, schedule backups, file access (via FTP), and database access.&lt;/p&gt;

&lt;h3&gt;
  
  
  - Kinsta
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdcbbpnq02aa2dc9bvjck.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdcbbpnq02aa2dc9bvjck.jpg" alt=" " width="800" height="351"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Kinsta has several things in common as Elementor Hosting. First, it uses Google Cloud as the main hosting infrastructure. Second, it relies on Cloudflare for the CDN feature. Speaking of CDN, Kinsta could be the best option if you have a big concern on this feature. Kinsta is a managed WordPress service that is transparent the most regarding its CDN feature.&lt;/p&gt;

&lt;p&gt;You can monitor the CDN usage via its sophisticated built-in analytics feature. You can also disable CDN for troubleshooting need (some hosting services don't allow you to disable CDN). The CDN space itself varied, depending on the plan. The cheapest plan offers the CDN space of 100GB.&lt;/p&gt;

&lt;p&gt;The PHP configuration of Kinsta is more than enough to run Elementor. It offers the memory limit of 256MB.&lt;/p&gt;

&lt;h3&gt;
  
  
  - WP Engine
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd7o4p7yvrcebapv1ifvv.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd7o4p7yvrcebapv1ifvv.jpg" alt=" " width="800" height="376"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;WP Engine is one of the most popular WordPress hosting services with over 600,000 live websites according to &lt;a href="https://trends.builtwith.com/hosting/WP-Engine" rel="noopener noreferrer"&gt;BuiltWith&lt;/a&gt;. It is also a recommended hosting to run Elementor. Mainly because it offers great PHP configuration. WP Engine offers PHP memory limit of 512MB. You can use all the Elementor features, including form builder. WP Engine also uses Google Cloud -- and other cloud services -- for its hosting infrastructure.&lt;/p&gt;

&lt;p&gt;The key feature offered by WP Engine includes built-in CDN -- powered by Cloudflare. Unlike Kinsta, WP Engine offers no option to disable the CDN. Also, it offers no analytics feature to monitor the CDN usage.&lt;/p&gt;

&lt;h3&gt;
  
  
  - Pressidium
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fy5n80se8wl2hwqcl2boy.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fy5n80se8wl2hwqcl2boy.jpg" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Pressidium is an underrated WordPress hosting service. But it is definitely recommended to run Elementor and other page builder plugins. Pressidium is a managed WordPress hosting service that has a great PHP configuration. Instead of using third-party services, Pressidium built its own hosting infrastructure from the ground. There are four main data centers offered by Pressidium, spreading in the US, Europe, North America, and Asia. Pressidium also comes with built-in CDN feature (powered by StackPath).&lt;/p&gt;

&lt;h3&gt;
  
  
  - Pressable
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcktwwnhsrxxao7cg3hrx.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcktwwnhsrxxao7cg3hrx.jpg" alt=" " width="800" height="387"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you are looking for a managed WordPress hosting service that is powered by Jetpack, Pressable is a great option. All Pressable plans come with Jetpack pre-installed. However, the features you can unlock depend on the plan you subscribed to.&lt;/p&gt;

&lt;p&gt;Pressable itself is a web hosting service from Automattic. As you know, Automattic is the company behind WordPress.com. So, if you want to use the same hosting technology as the one powering WordPress.com, you can try Pressable. The PHP configuration offered by Pressable is more than enough to run Elementor and all the features. The memory limit offered by Pressable is 256 MB.&lt;/p&gt;

&lt;h3&gt;
  
  
  - SiteGround
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnju57in6je64oh8nedwi.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnju57in6je64oh8nedwi.jpg" alt=" " width="800" height="376"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you are looking for a managed WordPress hosting service to run multiple Elementor-powered WordPress websites, SiteGround can be considered. The hosting service offers hosting plans that allow you to install unlimited websites, with more affordable prices. SiteGround also uses the cloud technology from Google Cloud for its hosting infrastructure. In addition, it also adopts Cloudflare for CDN (need to be enabled manually). The PHP configuration of SiteGround is also more than enough to run Elementor smoothly whereby its offers 768MB.&lt;/p&gt;

&lt;p&gt;You can easily switch between PHP versions for troubleshooting need. SiteGround offers 5 different PHP versions as follows:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;PHP 7.3&lt;/li&gt;
&lt;li&gt;PHP 7.4&lt;/li&gt;
&lt;li&gt;PHP 8.0&lt;/li&gt;
&lt;li&gt;PHP 8.1&lt;/li&gt;
&lt;li&gt;PHP 8.2&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Other features offered by SiteGround include built-in file manager and email hosting.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Elementor is a WordPress-based website building tool. You can use it to create WordPress-based website that focus on the frontend. Elementor comes with some handy features, including form builder which you can connect with services like ConverKit and MailerLite. In order to make the website creating run smoothly without any issue, you need to use an appropriate hosting service. Elementor itself offers an official managed hosting service you can try. Alternatively, you can use the hosting services mentioned above.&lt;/p&gt;

</description>
      <category>wordpress</category>
      <category>elementor</category>
    </item>
    <item>
      <title>Setting Object Fit in Divi Image Module</title>
      <dc:creator>Aliko Sunawang</dc:creator>
      <pubDate>Tue, 14 Mar 2023 08:59:49 +0000</pubDate>
      <link>https://dev.to/sunawang/setting-object-fit-in-divi-image-module-3jcf</link>
      <guid>https://dev.to/sunawang/setting-object-fit-in-divi-image-module-3jcf</guid>
      <description>&lt;p&gt;Divi is a popular tool to create a website with WordPress. With Divi, you can get your website project done more quickly thanks to its visual editor. If you are an agency or freelancer, Divi is a perfect Elementor alternative as you can create unlimited websites using a single license.&lt;/p&gt;

&lt;p&gt;The visual editor of Divi comes with useful design elements (called modules) you can make use of to create a page. Each module also comes with built-in styling options. One of modules offered by Divi visual editor is Image. The module -- as you can guess -- is aimed at adding image element to your page.&lt;/p&gt;

&lt;p&gt;The Image module of Divi comes with some styling options such as CSS filters, box-shadow, border, and so on. Of course, you can also set the size of image by setting the heigh and width.&lt;/p&gt;

&lt;p&gt;A setting option that is not available in Divi Image module is &lt;em&gt;object-fit&lt;/em&gt;. This setting is quite useful, especially to create a rounded image. A little CSS snippet is required to apply object fit in Divi.&lt;/p&gt;

&lt;h2&gt;
  
  
  Setting Object Fit in Divi Image Module
&lt;/h2&gt;

&lt;p&gt;CSS has a property called &lt;code&gt;object-fit&lt;/code&gt; which you can use to resize an object (image and video) to fit its container. However, the implementation is a bit more complex in Divi -- compared to Elementor -- as Divi doesn't allow you to use the class selector on an individual module (read my previous post to learn &lt;a href="https://dev.to/sunawang/how-to-use-css-selector-in-elementor-4m1p"&gt;how to use CSS selector in Elementor&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;So, how to set the object fit of the Image module in Divi?&lt;/p&gt;

&lt;p&gt;First, add the Image module just like usual and set the width and the height. Once done, click the gear icon on the bottom side to open the page settings panel. On this panel, go to the &lt;strong&gt;Advanced&lt;/strong&gt; tab.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9q9p2jv3jadjld8n7q91.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9q9p2jv3jadjld8n7q91.jpg" alt=" " width="800" height="531"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Next, add the following CSS snippet to the CSS editor (the &lt;strong&gt;Custom CSS&lt;/strong&gt; field).&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.et_pb_image img{
object-fit: cover;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can replace the object-fit value to your liking. The object-fit property itself supports the following values:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;em&gt;fill&lt;/em&gt;: image is forced to fill the entire container area&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;contain&lt;/em&gt;: image is displayed in the original aspect ratio&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;cover&lt;/em&gt;: image is also fill the entire container area, but only the certain portion according to the&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Don't forget to click the green checklist icon to apply the change.&lt;/p&gt;

&lt;p&gt;The above method will apply the object fit to all Image modules on the same page. If you want to target a specific Image module, you can add an ID selector to the above snippet. The snippet will be:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#yourclasshere .et_pb_image img{
object-fit: cover;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Next, edit a column belong to the Image module you want to apply the object fit to and add your CSS ID on the &lt;strong&gt;Advanced&lt;/strong&gt; tab on the settings panel.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Foo4beiekfhcflazwsq8t.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Foo4beiekfhcflazwsq8t.jpg" alt=" " width="800" height="478"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That's it. You can publish your page once done editing it.&lt;/p&gt;

</description>
      <category>wordpress</category>
      <category>divi</category>
      <category>css</category>
    </item>
    <item>
      <title>Adding Hover Effect to Link in WordPress Posts if Your Site is Built with Elementor</title>
      <dc:creator>Aliko Sunawang</dc:creator>
      <pubDate>Sat, 03 Dec 2022 07:15:33 +0000</pubDate>
      <link>https://dev.to/sunawang/adding-hover-effect-to-link-in-wordpress-posts-if-your-site-is-built-with-elementor-g4p</link>
      <guid>https://dev.to/sunawang/adding-hover-effect-to-link-in-wordpress-posts-if-your-site-is-built-with-elementor-g4p</guid>
      <description>&lt;p&gt;There are lots of ways to make your website looks more appealing to visitors. One of which is by adding hover effect to links. Some WordPress themes might have a built-in setting to add link hover effect. In case your theme doesn't have one, you can simply add yourself by adding custom CSS to theme customizer.&lt;/p&gt;

&lt;p&gt;As you have known, CSS has a built-in option to add hover effect to an element selector, including the &lt;code&gt;a&lt;/code&gt; selector which is used to target hyperlink. You can simply add the &lt;code&gt;:hover&lt;/code&gt; to the element selector you want to add the hover effect to. That said, to add hover effect to hyperlink, you can type &lt;code&gt;a:hover&lt;/code&gt; before the opening curly bracket on your CSS code.&lt;/p&gt;

&lt;p&gt;Here is a code snippet for a simple hover effect for hyperlink:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;a: hover{
      text-decoration: none;
    box-shadow: inset 0 -.5em 0     #FD63FD;
    color: #B017B0;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Adding Link Hover Effect in WordPress
&lt;/h2&gt;

&lt;p&gt;As mentioned earlier, if your theme has no built-in setting to add link hover effect, you can add one yourself by adding custom CSS to theme customizer. Theme customizer itself can be accessed by going to &lt;strong&gt;Appearance -&amp;gt; Customizer&lt;/strong&gt; on your WordPress dashboard. On theme customizer panel, you can open the &lt;strong&gt;Additional CSS&lt;/strong&gt; block and add your CSS code here.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Famdtxoklse2jciinl8on.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Famdtxoklse2jciinl8on.png" alt=" " width="598" height="178"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you paste the above code snippet to the &lt;strong&gt;Additional CSS&lt;/strong&gt; block without modifying it, the hover effect will be applied to all hyperlinks on your website.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqi2t9cty33eag9bj6tm8.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqi2t9cty33eag9bj6tm8.gif" alt=" " width="800" height="454"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you want the hover effect to be applied to blog posts only, you can add the class selector of &lt;code&gt;.single&lt;/code&gt; before the &lt;code&gt;a&lt;/code&gt; element selector. So, your code would look like this one:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.single a: hover{
      text-decoration: none;
    box-shadow: inset 0 -.5em 0     #FD63FD;
    color: #B017B0;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Adding Link Hover Effect in WordPress If Your Website is Built Elementor
&lt;/h2&gt;

&lt;p&gt;Elementor has a theme builder feature to create custom templates for your site parts, including the blog post template. If you use this feature for your blog posts, you need to replace the class selector on the above code. You can replace the &lt;code&gt;.single&lt;/code&gt; class selector with the &lt;code&gt;.elementor-widget-theme-post-content&lt;/code&gt; class selector.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;.elementor-widget-theme-post-content&lt;/code&gt; is a pre-defined class selector from Elementor for the Post Content widget. Post Content itself is an Elementor widget to style up the body of your content (e.g. blog post). So, your code would look like:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.elementor-widget-theme-post-content a:hover{
      text-decoration: none;
    box-shadow: inset 0 -.5em 0     #FD63FD;
    color: #B017B0;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you want to apply the hover effect to other custom Elementor templates (e.g. archive page templates) on your website, you can simply replace the class selector with the selector of the widgets you use on your templates.&lt;/p&gt;

</description>
      <category>elementor</category>
      <category>wordpress</category>
      <category>css</category>
    </item>
    <item>
      <title>How to Add Reading Time Estimator in Elementor</title>
      <dc:creator>Aliko Sunawang</dc:creator>
      <pubDate>Fri, 18 Nov 2022 08:40:03 +0000</pubDate>
      <link>https://dev.to/sunawang/how-to-add-reading-time-estimator-in-elementor-5a70</link>
      <guid>https://dev.to/sunawang/how-to-add-reading-time-estimator-in-elementor-5a70</guid>
      <description>&lt;h2&gt;
  
  
  Table of Contents
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Step 1&lt;/li&gt;
&lt;li&gt;Step 2&lt;/li&gt;
&lt;li&gt;Styling up the text&lt;/li&gt;
&lt;li&gt;Pre-built templates&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The adoption of Elementor is getting more massive in the WordPress community. Many users use it to create a wide range of website types in WordPress, including blog.&lt;/p&gt;

&lt;p&gt;Elementor has a theme builder feature which is great for blogging. You can use it to create custom templates for every single part of your blog, including the single post (blog post) template. &lt;/p&gt;

&lt;p&gt;Creating a custom single post template with Elementor theme builder allows you to control everything. From the design to the post elements (post title, post meta, post content, and so on).&lt;/p&gt;

&lt;p&gt;One of the elements you can add to your custom single post template is a reading time estimator.&lt;/p&gt;

&lt;h2&gt;
  
  
  Adding Reading Time Estimator in Elementor
&lt;/h2&gt;

&lt;p&gt;Reading time estimator is not available as a default Elementor feature. Not even WordPress. To add it to your WordPress blog, you need to add a new custom function.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1
&lt;/h3&gt;

&lt;p&gt;To add a new custom function in WordPress itself, you can either edit the &lt;em&gt;functions.php&lt;/em&gt; file belongs to your theme or using a plugin like Code Snippets. For the first option, you can go to &lt;strong&gt;Appearance -&amp;gt; Theme File Editor&lt;/strong&gt; on your WordPress dashboard. Select the &lt;em&gt;functions.php&lt;/em&gt; file on the right panel to edit it. &lt;/p&gt;

&lt;p&gt;If you haven't done this before, make sure to back up your website first just in case everything doesn't work the way you expected. If you use a managed WordPress hosting service like Kinsta, Pressable, or Flywheel, manually backup your website is not necessary as they already have a built-in backup feature.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fugynzvg4kvpmmsuqnjh2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fugynzvg4kvpmmsuqnjh2.png" alt=" " width="800" height="558"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Click the &lt;strong&gt;Publish&lt;/strong&gt; button once you are done editing the file.&lt;/p&gt;

&lt;p&gt;Here is the code of the custom function you need to add:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;reading_time&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;span class="nv"&gt;$content&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;get_post_field&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="s1"&gt;'post_content'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$post&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="no"&gt;ID&lt;/span&gt; &lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="nv"&gt;$word_count&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;str_word_count&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="nb"&gt;strip_tags&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="nv"&gt;$content&lt;/span&gt; &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="nv"&gt;$readingtime&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;ceil&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$word_count&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;260&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$readingtime&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;span class="nv"&gt;$timer&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;" minute read"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;span class="nv"&gt;$timer&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;" minutes read"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nv"&gt;$totalreadingtime&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;$readingtime&lt;/span&gt; &lt;span class="mf"&gt;.&lt;/span&gt; &lt;span class="nv"&gt;$timer&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nv"&gt;$totalreadingtime&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nf"&gt;add_shortcode&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'wpbread'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'reading_time'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can add the code above right after the last line of the &lt;em&gt;functions.php&lt;/em&gt; file content.&lt;/p&gt;

&lt;p&gt;What the above code does is get the total words from the post content and then divide it by 260. The calculation result is converted into a shortcode on the last line. This will make it easy for us to display the calculation result on the frontend.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2
&lt;/h3&gt;

&lt;p&gt;You can display the result of the above calculation on any editor that supports shortcode, including Gutenberg (the default editor of WordPress), Divi, to  Brizy.&lt;/p&gt;

&lt;p&gt;To display it on the custom single post you created with Elementor theme builder, first, go to &lt;strong&gt;Templates -&amp;gt; Theme Builder&lt;/strong&gt; on your WordPress dashboard and select the custom single post template you want to display the reading estimator on. Edit it.&lt;/p&gt;

&lt;p&gt;On the Elementor editor, drag the Shortcode widget to the canvas area and type &lt;code&gt;[wpbread]&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgf45nno5wsf5ilear49s.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgf45nno5wsf5ilear49s.png" alt=" " width="594" height="640"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Update your custom Elementor template.&lt;/p&gt;

&lt;h2&gt;
  
  
  Styling Up the Text
&lt;/h2&gt;

&lt;p&gt;The text of the reading estimator inherits the global typography settings on your WordPress site. To style it up, go to the &lt;strong&gt;Advanced&lt;/strong&gt; tab on the settings panel and type &lt;code&gt;selector .elementor-shortcode{}&lt;/code&gt; on the &lt;strong&gt;Custom CSS&lt;/strong&gt; block. &lt;code&gt;.elementor-shortcode&lt;/code&gt; is the selector of the Shortcode widget of Elementor. &lt;/p&gt;

&lt;p&gt;You can simply put your custom typography setting between the curly brackets. Here is the example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;selector&lt;/span&gt; &lt;span class="nc"&gt;.elementor-shortcode&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;font-family&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;helvetica&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;font-size&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="m"&gt;16px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  Pre-Built Elementor Single Post Templates
&lt;/h2&gt;

&lt;p&gt;Reading time estimator is ideally be added to single post template. I have created professionally designed single post templates for Elementor in case you are interested.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://pagebuildertemplates.com/single-post-templates/" class="crayons-btn crayons-btn--primary" rel="noopener noreferrer"&gt;Download pre-built single post templates&lt;/a&gt;
&lt;/p&gt;

</description>
      <category>php</category>
    </item>
    <item>
      <title>Using CSS Class to Show/Hide an Element by Login Status in Elementor</title>
      <dc:creator>Aliko Sunawang</dc:creator>
      <pubDate>Sat, 12 Nov 2022 07:25:21 +0000</pubDate>
      <link>https://dev.to/sunawang/using-css-class-to-showhide-an-element-by-login-status-in-elementor-21kh</link>
      <guid>https://dev.to/sunawang/using-css-class-to-showhide-an-element-by-login-status-in-elementor-21kh</guid>
      <description>&lt;p&gt;Say you have a WordPress-based blog created with Elementor. Your blog relies on ads to generate revenue. Suddenly, you have an idea to accept membership on your blog. One of the features you plan to offer is an ad-free reading experience. Unfortunately, Elementor has no built-in feature to cover such a need.&lt;/p&gt;

&lt;p&gt;A simple solution to the above case is by installing a third-party add-on. Alternatively, you can add an additional function to handle the job. In this post, I will show you how to show/hide an element in Elementor by taking advantage of CSS class selector.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Add a New Function to WordPress
&lt;/h2&gt;

&lt;p&gt;First, you need to add a custom function on your WordPress blog. In WordPress, you can add a new function by editing the &lt;em&gt;functions.php&lt;/em&gt; file of your theme. Or you can also use a plugin like Code Snippets to add a custom function without editing a theme file (&lt;em&gt;functions.php&lt;/em&gt;).&lt;/p&gt;

&lt;p&gt;Here the code of the function:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;add_filter('body_class','er_logged_in_filter');&lt;br&gt;
function er_logged_in_filter($classes) {&lt;br&gt;
if( is_user_logged_in() ) {&lt;br&gt;
$classes[] = 'logged-in-condition';&lt;br&gt;
} else {&lt;br&gt;
$classes[] = 'logged-out-condition';&lt;br&gt;
}&lt;br&gt;
// return the $classes array&lt;br&gt;
return $classes;&lt;br&gt;
}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;The above code will check the class of the element (&lt;code&gt;logged-in-condition&lt;/code&gt; and &lt;code&gt;logged-out-condition&lt;/code&gt;). If the class is &lt;code&gt;logged-in-condition&lt;/code&gt;, the element will not be shown. Conversely, if the class is &lt;code&gt;logged-out-condition&lt;/code&gt;, the element will be shown.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: Add the CSS Classes to Your WordPress Blog
&lt;/h2&gt;

&lt;p&gt;Once done with step one above, you can go to theme customizer to add the following CSS code. The below code adds two CSS classes to your WordPress website as covered above.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;.logged-in-condition .hide-logged-in {&lt;br&gt;
  display: none!important;&lt;br&gt;
}&lt;br&gt;
.logged-out-condition .hide-logged-out {&lt;br&gt;
  display: none!important;&lt;br&gt;
}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;To add the code above, you can go to theme customizer (&lt;strong&gt;Appearance -&amp;gt; Customize&lt;/strong&gt;). Open the Additional CSS block and paste the code to the available field. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1hw4qjc6luwtc0ro2n7y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1hw4qjc6luwtc0ro2n7y.png" alt=" " width="604" height="476"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Click the &lt;strong&gt;Publish&lt;/strong&gt; button to apply the code.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fu50j82tsii59bxo89603.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fu50j82tsii59bxo89603.png" alt=" " width="598" height="552"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Apply the CSS Class
&lt;/h2&gt;

&lt;p&gt;Once done with the two steps above, the last step is to apply the CSS class. Edit an Elementor page (or custom template) containing an element you want to hide. Select the element (section, column, or widget) and go to the &lt;strong&gt;Advanced&lt;/strong&gt; tab on the settings panel. Paste the CSS class to the &lt;strong&gt;CSS Classes&lt;/strong&gt; field.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjd7m4h8at0lykva48ws3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjd7m4h8at0lykva48ws3.png" alt=" " width="600" height="884"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can paste the &lt;code&gt;hide-logged-in&lt;/code&gt; to hide the element. While to show the element, you can paste the &lt;code&gt;hide-logged-out&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;You can use the above custom function to page builders other than Elementor such as Divi , Breakdance, to Brizy. You can even use it on Gutenberg as Gutenberg also allows you to add a CSS class to an element (block.)&lt;/p&gt;

</description>
      <category>elementor</category>
      <category>css</category>
      <category>wordpress</category>
    </item>
  </channel>
</rss>
