HOW TO: SVG Files for Elementor Website

SVG Format

Have you noticed that some SVG logo’s fonts change from browser to browser? Would you like to find out how to make SVG files so that the font will stay the same? In this article, I will show how to save SVG files for your web project and add them to a WordPress page using Elementor.

Is SVG a Better Alternative to PNG?

Images are great for any web design project, especially now that internet speeds are improving. We can now afford to include more images without compromising on loading time. However, some elements, especially text could appear blurry when you save them in PNG format.

The answer to this issue is SVG format. Not only do SVG files look crisp at any scale, but they are also editable, optimised for search engines, often smaller than other formats and capable of dynamic animations.

Saving your File in SVG Format

If you want to save your image with text in SVG format and ensure the font stays the same, for example in Firefox browser, use this simple trick:

  1. When designing in Adobe Illustrator, select text using the selection tool and navigate to Object and Expand. In the expand dialog box make sure the checkboxes for Object and Fill are checked and click on OK button.
SVG Files
  1. Next, having selected the text, navigate to Pathfinder panel in the properties tab and click on the Unite icon.
  1. Finally, save your image in SVG format. Navigate to File and Save As, choose where you want to save and pick the SVG (svg) option from the Format drop-down menu. Hit save and the OK button in pop-up SVG Options dialog box, and you are done!

Uploading an SVG File to the WordPress Media Library

WordPress does not support SVG out of the box, so what can you do? You can install a plugin like SVG Support or you can add the code below to your theme’s functions.php file to avoid having yet another plugin.

To do this, navigate to Appearance and Theme Editor from your WordPress Admin Dashboard. Then, under the Theme Files, locate and click on functions.php and add the following code to the PHP file at the very bottom:

					// Enable SVG support
add_filter( 'wp_check_filetype_and_ext', function($data, $file, $filename, $mimes) {
global $wp_version;
if ( $wp_version !== '4.7.1' ) {
return $data;
$filetype = wp_check_filetype( $filename, $mimes );
return [
'ext'             => $filetype['ext'],
'type'            => $filetype['type'],
'proper_filename' => $data['proper_filename']
}, 10, 4 );
function cc_mime_types( $mimes ){
$mimes['svg'] = 'image/svg+xml';
return $mimes;
add_filter( 'upload_mimes', 'cc_mime_types' );
function fix_svg() {
echo '';
add_action( 'admin_head', 'fix_svg' );
Note. This function is successfully tested with WordPress v. 6.5 in May 2024

Save the changes and test this function by uploading an SVG file to the WordPress media library.

Adding an SVG File to an Elementor Page

In the Elementor environment, simply use the Image widget to add your SVG file to the page, just as you add your JPG or PNG images.

It’s worth mentioning that some Elementor widgets do support SVG format, for example, the icon widget. You can select an icon from the icon library or upload SVG. When you use this method, the SVG is added to the page as inline code.

Scalable vector graphics in SVG format are useful in many different scenarios. They’re versatile, interactive, and easy to create with a graphics editor. Upgrade your logo or icons to SVG format and you will notice how much sharper and clearer they look.

If you need further help or would like to order our services, please send a request.

Picture of Alex


Web Designer & Developer and Elementor expert with 15+ years of experience, I commit to providing the highest quality web services and technical support to my clients. My resume includes the United Nations, Civil Society Organisations and Private Sector clients across Europe, the Middle East and Africa.




You might also like

Do you have any questions about our services or would like to place an order?

Get in touch with us to receive detailed information on any of our services.

© 2024 Alex Design Lab. All rights reserved.

Quick Links

Privacy Policy

Who we are



When visitors leave comments on the site we collect the data shown in the comments form, and also the visitor’s IP address and browser user agent string to help spam detection.
An anonymised string created from your email address (also called a hash) may be provided to the Gravatar service to see if you are using it. The Gravatar service privacy policy is available here: After approval of your comment, your profile picture is visible to the public in the context of your comment.


If you upload images to the website, you should avoid uploading images with embedded location data (EXIF GPS) included. Visitors to the website can download and extract any location data from images on the website.


If you leave a comment on our site you may opt-in to saving your name, email address and website in cookies. These are for your convenience so that you do not have to fill in your details again when you leave another comment. These cookies will last for one year.
If you visit our login page, we will set a temporary cookie to determine if your browser accepts cookies. This cookie contains no personal data and is discarded when you close your browser.
When you log in, we will also set up several cookies to save your login information and your screen display choices. Login cookies last for two days, and screen options cookies last for a year. If you select “Remember Me”, your login will persist for two weeks. If you log out of your account, the login cookies will be removed.
If you edit or publish an article, an additional cookie will be saved in your browser. This cookie includes no personal data and simply indicates the post ID of the article you just edited. It expires after 1 day.

Embedded content from other websites

Articles on this site may include embedded content (e.g. videos, images, articles, etc.). Embedded content from other websites behaves in the exact same way as if the visitor has visited the other website.
These websites may collect data about you, use cookies, embed additional third-party tracking, and monitor your interaction with that embedded content, including tracking your interaction with the embedded content if you have an account and are logged in to that website.

Who we share your data with

If you request a password reset, your IP address will be included in the reset email.

How long we retain your data

If you leave a comment, the comment and its metadata are retained indefinitely. This is so we can recognise and approve any follow-up comments automatically instead of holding them in a moderation queue.
For users that register on our website (if any), we also store the personal information they provide in their user profile. All users can see, edit, or delete their personal information at any time (except they cannot change their username). Website administrators can also see and edit that information.

What rights you have over your data

If you have an account on this site, or have left comments, you can request to receive an exported file of the personal data we hold about you, including any data you have provided to us. You can also request that we erase any personal data we hold about you. This does not include any data we are obliged to keep for administrative, legal, or security purposes.

Where we send your data

Visitor comments may be checked through an automated spam detection service.

© 2024 Alex Design Lab. All rights reserved.

Quick Links