The tutorial will show how to add more icons implemented with shortcodes in WordPress:
Image icons are added into shortcode with IDs. Basically, icons count in shortcode is limited to 10 items. To add more icons, you can copy and paste shortcode into the page and replace the icon id like “icon10” with next index number “icon11”::
[service_box title="title" icon="icon11" text="text" btn_text="text" btn_link="link" target="_self"]
The next step is to upload a new icon image on server. Icons are located in the wp-content/themes/themeXXXXX/images folder on server. Connect to server via FTP or open File manager in cPanel and upload new images. Make sure that new icons have the same format, resolution and appropriate index number. For example, there are 10 icons in the template, the new icon should be called icon11 accordingly:
Now you need to add a new icon into shortcode. Shortcode is inserted into page/post with the Cherry Shortcodes button which can be found at the top of page/post editor in WordPress admin panel. To make new icons appear in the shortcode layout, you should add them into the shortcode script. In most cases the icons are added with services_box shortcode. Open the wp-content/plugins/cherry-plugin/admin/shortcodes/shortcodes folder on server. Find and open the my_service_box.js file. Copy the code from the file.
Paste the code into wp-content/themes/themeXXXXX/js/my_script.js file on server. Insert it at the bottom of the file.
With that done, add icons numbers into the code:
selectValues:['no', 'icon1', 'icon2', 'icon3', 'icon4', 'icon5', 'icon6', 'icon7', 'icon8', 'icon9', 'icon10', 'icon11', 'icon12'],
Save changes in the file and check shortcode layout in WordPress admin panel:
Refresh your homepage with Ctrl/Cmd+F5 to see the changes at the front-end:
Feel free to check the detailed video tutorial below: