Using Gutenberg blocks with plug-ins, it’s easy to insert lordicons into WordPress sites. Lordicon’s documentation shows that icons can be easily included in all word press websites using Gutenberg blocks or using the divi module (or other website builders). We also worked with slider revolution to incorporate icons into the slider.
It’s easy to use Gutenberg’s block and Gutenberg’s lordicon icon together. There are two ways. The first method is to set design parameters in lordicon, copy HTML, and use it in Gutenberg’s custom HTML block. The second is to use custom blocks and lordicon animated icons plug-ins on gutenberk. First, the lordicon plug-in must be installed and activated on the WordPress dashboard. If enabled, create or edit pages or posts on the WordPress website. Next, click the black + icon to select the lordicon element block.
After that, go to the lordicon icon library. In this example, you will use the bee icon. Search for bees, then use the arrows to open the entire editor. In Tengbao, male District, an icon containing an icon can be inserted in one of two ways. The first method is to the JSON file from lordicon and upload it to the WordPress site. The second method is to click the HTML button, copy the CDN link of the built-in code, and simply link. Either side can work normally, but using JSON on the site may slow down. If you only plan to use a few animation effects here and there, it’s perfect. However, if you want to use multiple JSON files, it’s best to use CDN links, so you can pass images directly from lordicon.
In this case, the CDN link is used. To insert an icon into your site, click the HTML button on the bee icon screen, and then copy the CDN link. Return to the website and paste the CDN link into the icon URL field of the shielding setting. Next, set the trigger and select the delay time if necessary. Finally, set the icon size, stroke thickness and color. As you can see, the lordicon icon is easy to use and provides a variety of methods, which can be integrated into the WordPress website using the Gutenberg editor. If you don’t want to use the lordicon plug-in and want to choose code imbed, you can replace the divi code module with Gutenberg’s custom HTML block by following the same steps described in the next section.
After using lordicon’s method in divi, we’ll show you how to merge the animated icon into divi. This tutorial will use the layout of the mobile app login page that provides free membership of elemental themes. You can access all prefabricated layout packages within divi builder itself. There are several ways to integrate lordicon icons in divi. Use GIF, add HTML to the divi code module, or use shortcut code. Let’s look at each option to choose the easiest one.
Using GIF this tutorial will use the landing page of the mobile application layout package. First, get the advertising words under the hero part, and then replace the image with lordicon GIF. In the color hero section, select purple, then navigate to lordicon and select the clock icon. Click the green default color and replace with #6f4fff. Click apply to make changes
preservation. There are three styles of male and female icons. Select the line style of the icon (the middle option shown in the screenshot below). In the preview setting, set the trigger Hoover time to ring and the size to large. Set the next available joint to hover-1. This will animate the icon when the mouse is removed and repeat the animation. Then adjust the stroke width to 35%. If the settings are correct, click the GIF button icon. If the dialog box appears, please select transparent for the background, select 100px for the size, and keep the default 250ms for the delay. Click the button. Go back to the divi add Icon divi builder and select the first slogan under the hero section. Click the gear icon you want to edit, and then select the image and icon section drop-down menu. Click the installed calendar icon to replace it. Select the newly ed GIF and add it to the media library. Male then click the design tab and scroll down to the image \/ icon width. Set the width of the icon to 100px. Set the alignment to the left and click green check to save the module. While it’s easy to include the male GIF in the divi website, let’s look at additional ways to integrate lordicon animated icons into the divi website. Using divi code module, this method can further control the display mode of icons. Including GIF, it works well, but some animation effects are limited. For example, when using GIF, the effect is not as good as hover. To control how the lordicon icon is displayed in divi, it is recommended to use the divi code module. Using code modules is simple. Use the same layout package page to navigate to the second blurb module of the page. This time, the image is deleted from the blurb module and saved. After saving, click the black + icon to browse the divi code module. Add to the section \/ row above the blurb. Go back to lordicon and click the insert HTML button. The include on Web dialog box appears. Make sure loop on hover is selected. Then check whether the size is set to 100px. Finally, click the copy HTML code button. Now return to the divi page and paste the HTML into the code module. After saving, the new lordicon built-in must appear on the blurb module where the image is deleted. Use shortcut code the steps of using shortcut code are very similar to including HTML. Search for rodikan’s growing plant icon. In the Preview settings, set the trigger Hoover time to loop and the size to big. Replace standard green with #6f4fff. Set the stroke width to 35%. Finally, click the JSON (Lottie) button to the JSON file. Secondly, you can upload the JSON ed from lordicon to the WordPress media library, or connect to the URL to be found in the HTML code. Compared with uploading to the media library, the URL of the connection shortcut code is better. This can save site space, especially when you need to use multiple icons and server processes. Lordicon shortcut code starts with [Lord icon] and ends with [\/ Lord icon]. If CDN link is used, the shortcut code is as follows: [lord-icon src=\
trigger=\
[\/lord-icon]
For icon source (SRC =), HTML
Copy the link of the growing plant icon in the code. Make sure the animation is set to hover, the size is set to 100, and the colors (palette) are #000000 and #6f4fff. The last step is to put the shortcut code into the divi code module and save it. The shortcut code must be the same as the screenshot below. To add a new icon to the entire website, simply copy the shortcut code above, and then change the CDN link and trigger style, size, and color (if you need other animation effects). Note that these items are set when the icon is created on the lordicon website. What’s the best way? When viewing the page, you will find some differences between the GIF Logicon icon and the inserted HTML code. The first difference is that GIF is always moving. The code block we created will only move when the mouse is removed. What method you choose is up to you. Some users may be mobile sensitive. Using action and animation on the website is a good way to keep users engaged, but don’t want to overuse it. Sometimes, subtle interactions also attract people’s attention to design. With the lordicon icon, which provides wonderful additional functions for the website, web design is becoming closer and closer to the experience of mobile applications, animation has become a necessary part of web design. By integrating wonderful animation, you can upgrade the look and feel of the website. More than 1000 free icons and lordicon subscriptions can use more than thousands of icons, so you should take a closer look at these products. Especially WordPress and divi. Have you ever used rodikan? Then, please introduce your experience below. i_photos\/Shutterstock. Com recommended image