Site logo

Archived topic

Add one icon

4 replies · Started by Matt on August 21, 2021

Viewing posts 1–5 of 5

This seems like it should be simple but I can't figure out how to put an icon in my content. All the tutorials I look up mention a plugin or install 1500 icons, I would prefer to not use a plugin or install/load 1500 icons. I just need to use a checkmark icon in various locations on my site. Please help. I've moved my site from a page builder so I'm a html/css newb.

So... it looks like wordpress has some built-in icons. It says to add this to the functions.php file. Is this correct?

function my_theme_styles() {
wp_enqueue_style( 'dashicons' );
}

Hi Matt,

You are NOT supposed to modify functions.php file unless you are using a child theme:
https://docs.generatepress.com/article/using-child-theme/

To add PHP code, you can use one of the methods introduced in this article:
Adding PHP: https://docs.generatepress.com/article/adding-php/

I would recommend using GenerateBlocks plugin as your block editor, it has some built-in icons, and you will also be able to use custom icons.

Here's a tutorio videos on how to add custom svg icons in GB:
https://www.youtube.com/watch?v=wdzFximLiQs&t=2s&ab_channel=GenerateBlocks

Hope this is helpful :)

I tried the GenerateBlocks and it crashed the page I used it on.

There has been a critical error on this website.

Once I removed it the page loaded.

ugh

That sounds strange - we haven't had any reports on this.

GB is used by lots of users now and most of our site library templates as well so there shouldn't be an issue like this:
https://generatepress.com/site-library/

Does the issue happen if you disable all plugins except GP premium and GenerateBlocks?

This archived topic is closed to new replies.