[Resolved] Generatepress icons to svgs

Home Forums Support [Resolved] Generatepress icons to svgs

Home Forums Support Generatepress icons to svgs

Viewing 15 posts - 1 through 15 (of 27 total)
  • Author
    Posts
  • #811763
    epickenyan

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

    #811890
    David
    Staff
    Customer Support

    Hi there,

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

    #811898
    epickenyan

    That’s good. I was trying to adapt this tutorial for my social icons but it is not working with the theme https://jackiedelia.com/adding-svg-icons-graphics-wordpress-theme/. Would you propose a way to get the social icons (preferably white with a transparent background?).

    #811904
    David
    Staff
    Customer Support

    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.

    #812066
    epickenyan

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

    #812070
    David
    Staff
    Customer Support

    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/

    #812084
    epickenyan

    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.

    #812086
    David
    Staff
    Customer Support

    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/

    #812101
    epickenyan

    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.

    #812109
    David
    Staff
    Customer Support

    the after_entry_header – you can see all of the main hooks here:

    https://docs.generatepress.com/article/hooks-visual-guide/

    #812113
    epickenyan

    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.

    #812159
    David
    Staff
    Customer Support

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

    #812168
    epickenyan

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

    #812172
    David
    Staff
    Customer Support

    Awesome – glad to be of help.

    #812187
    epickenyan

    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.

Viewing 15 posts - 1 through 15 (of 27 total)
  • You must be logged in to reply to this topic.