Site logo

Archived topic

Generatepress icons to svgs

26 replies · Started by epickenyan on February 15, 2019

Viewing posts 1–15 of 27

Hello. I read in wordpress.org that you are converting generatepress icons to svgs?

Hi there,

it is something that is being worked on. And hope to see it in the next Theme update.

Just to be clear the GeneratePress icons are solely those used by the Theme, such as the Hamburger Menu, back to top, shopping cart etc. It doesn't include social icons.

For social icons ( not sharing ) i use Tom's lightweight social icons for a lot of builds:

https://en-gb.wordpress.org/plugins/lightweight-social-icons/

This uses a widget to add them to your theme, really simple and really lightweight and has color controls.

Very nice plugin. Can I assign the plugins icons to other areas of the website? e.g. on my custom social share buttons?

The plugin only works as a Widget. So would need to be placed within one of the widget areas.
There is this plugin which creates a shortcode for a widget so it could then be placed within the content as well as a widget area:

https://wordpress.org/plugins/widget-shortcode/

What I was referring to is just referencing the icons location inside the theme's social share buttons. E.g. the facebook icon inside the facebook social share buttons, etc.

The theme doesn't include any social share buttons. And swapping out a plugins icons would be tricky. This plugin from one of our community does social icons using pure SVGs and has the option for you to use your own icons.

https://wordpress.org/plugins/gp-social-share-svg/

This seems to work. Btw, what is the hook for after post image but before the content? I want to show the icons after the (title and) image but before the entry content.

The thing is I show my post image after the title, and when using that hook, any content inserted using the hook shows before the image. I see there is no hook for that. So, like looking at this image, I wanted a hook for where the image ends and the content(paragraphs) begin. I don't know which custom hook I should use. I tried before_entry_content but it did not work.

Use the after after_entry_header hook and increase the priority to 20.

Wow! Thanks, David. That Worked! Now I have replaced all my custom icons with svgs.

Awesome - glad to be of help.

Funny thing is, the icons by the lightweight plugin are disappearing from the sidebar widget area. Not sure why this is happening.

Figured out it was a widget cache problem. Resolved.

This archived topic is closed to new replies.