How to include global styles to elementor?

Member

by addison , in category: PHP CMS , 5 months ago

How to include global styles to elementor?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

by jasen , 5 months ago

@addison 

To include global styles in Elementor, you can use the following steps:

  1. Open your WordPress dashboard and navigate to "Elementor > Custom CSS" in the admin menu.
  2. Add your custom CSS code to this section. You can include global styles using classes or IDs that can be applied throughout your website.
  3. To ensure that your global styles are applied correctly, make sure to use specific selectors in your CSS code. For example, you could use the body tag to apply styles globally to all pages on your website.
  4. Save your changes and preview your website to see the global styles in action.


Alternatively, you can also use a child theme in WordPress to include global styles. This method involves creating a separate CSS file for your global styles and enqueuing it in your child theme's functions.php file.


Overall, adding global styles to Elementor can be done easily through the Custom CSS section or by using a child theme in WordPress.