• Resolved Koen Colen

    (@koen-colen)


    Hi, I am using Total theme. When I create a new Custom Post Type using this plugin I can choose only from the ticon pack. Is it somehow possible I can choose from all the icon packs available in the WPbakery builder?

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author wpexplorer

    (@wpexplorer)

    Hi,

    Actually when creating a post type you can only choose from the WordPress icons (aka dashicons) as these are the ones compatible with WordPress and custom post types.

    Now, it’s possible to add your own icon using a custom SVG using base64 encoded code as mentioned in the WP docs. The issue is that base64 code can contain malicious data (same with SVGs) so I would rather not provide a UI for this because it can open up the plugin to some security concerns.

    If you need a custom icon you can define one though with a little custom code by hooking into this filter and modifying the menu_icon argument. I can assist with the custom code if needed. Just let me know your Post Type name and a link to the custom SVG you want to use.

    • AJ
    Thread Starter Koen Colen

    (@koen-colen)

    Thanks!

    I am sorry I explained myself wrong.

    What I meant is when creating a new MyCustomPostType I can only select from the ticons in Card Settings => Font Icon.

    I have a Jobs section on my website so I created a Jobs Custom Post Type and when I create a new Job I would like to assign an Icon to it (Like an angular or react or node or php logo etc..).

    So I can create a Icon Box Card and it would look nice ??

    Plugin Author wpexplorer

    (@wpexplorer)

    Oh….I see ??

    Ok, so in in the next Total update I’ve added a custom icon selector so you can select a custom SVG from your media library. I recorded a quick video so you can see: https://a.cl.ly/xQuQzkBx

    Now the caveats are that WordPress doesn’t allow SVG uploads by default so you need to enable that via code or a plugin. Also I sanitize the SVG’s for security reasons using a fairly simple/quick method and so it will only support simple icons and not complex SVG’s (which should be all you need anyway) – it will work with any popular icon site though like FontAwesome icons, Material Design icons and Boostrap icons.

    Total v6.0 should be ready in March. I have quite a bit left to do. If you want to email me at wpexplorer [at] gmail dot com I can email you a beta when ready (hopefully by the end of the week) if you want access before the official release.

    Of course, instead of selecting an icon you can always just add your icon as the featured image and use that instead. Then you can create your own “Icon Card” but using the “Image” element to display the featured image.

    • AJ

    ps: You can always comment on ThemeForest if you prefer for any Total related support, no need to do so here on the plugin pages. Whatever you prefer – just mentioning in case the former is easier.

    Thread Starter Koen Colen

    (@koen-colen)

    Cool! Thanks!
    That would totally solve my case.
    Still I think for the sake of the quality of Total theme I think all installed icon packs should be shown when clicking on “Icon Library”, not only ticons.
    If you’re not exactly sure what I mean open up a WPBakery Page Builder and add an “Icon” element. In the General tab you first have a selection for “Icon Library” after which you can select an “Icon”.
    I send you an email I am always happy to test-drive stuff.
    Thanks a lot for this!

    Plugin Author wpexplorer

    (@wpexplorer)

    Got the email and replied back ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Choosing more icon packs in my custom post type => Card Settings’ is closed to new replies.