{"id":47619,"date":"2015-04-22T07:12:32","date_gmt":"2015-04-22T11:12:32","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=47619"},"modified":"2017-09-14T06:48:51","modified_gmt":"2017-09-14T10:48:51","slug":"wordpress-how-to-replace-images-icons-implemented-with-shortcodes","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/wordpress-how-to-replace-images-icons-implemented-with-shortcodes.html","title":{"rendered":"WordPress Cherry 3.x. How to replace images icons implemented with shortcodes"},"content":{"rendered":"<p><a href=\"http:\/\/www.youtube.com\/watch?v=mhuaYDHnT5k?width=1280&amp;height=720\" rel=\"prettyPhoto\"><\/a><\/p>\r\n<p>The tutorial will show how to add more icons implemented with shortcodes in <strong>WordPress<\/strong>:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/04\/Wordpress.How-to-add-more-image-icons-into-shortcode-1.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/04\/Wordpress.How-to-add-more-image-icons-into-shortcode-1-300x210.png\" alt=\"Wordpress.How to add more image icons into shortcode-1\" width=\"300\" height=\"210\" class=\"aligncenter size-medium wp-image-47620\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Wordpress.How-to-add-more-image-icons-into-shortcode-1-300x210.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Wordpress.How-to-add-more-image-icons-into-shortcode-1-150x105.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Wordpress.How-to-add-more-image-icons-into-shortcode-1.png 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<div class=\"inline-banner\">\r\n<a href=\"https:\/\/www.templatemonster.com\/service-center\/\">\r\n<img src=\"\/help\/files\/banners\/inline\/Banner-3-(835-x100).jpg\" \/>\r\n<\/a>\r\n<\/div>\r\n<ol>\r\n<li>\r\n<p>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 <strong>&#8220;icon10&#8221;<\/strong> with next index number <strong>&#8220;icon11&#8221;:<\/strong>:<\/p>\r\n<pre>[service_box title=\"title\" icon=\"icon11\" text=\"text\" btn_text=\"text\" btn_link=\"link\" target=\"_self\"]<\/pre>\r\n<\/li>\r\n<li>\r\n<p>The next step is to upload a new icon image on server. Icons are located in the <strong>wp-content\/themes\/themeXXXXX\/images<\/strong> folder on server. Connect to server via <a target=\"_blank\" href=\"\/help\/how-upload-files-server-2.html\">FTP<\/a> or open <a target=\"_blank\" href=\"\/help\/how-to-upload-files-to-a-server-using-cpanel-webhost-manager-whm.html\">File manager in cPanel<\/a> 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 <strong>icon11<\/strong> accordingly: <\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/04\/Wordpress.How-to-add-more-image-icons-into-shortcode-2.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/04\/Wordpress.How-to-add-more-image-icons-into-shortcode-2-300x210.png\" alt=\"Wordpress.How to add more image icons into shortcode-2\" width=\"300\" height=\"210\" class=\"aligncenter size-medium wp-image-47621\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Wordpress.How-to-add-more-image-icons-into-shortcode-2-300x210.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Wordpress.How-to-add-more-image-icons-into-shortcode-2-150x105.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Wordpress.How-to-add-more-image-icons-into-shortcode-2.png 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t<\/li>\r\n<li>\r\n<p>Now you need to add a new icon into shortcode. Shortcode is inserted into page\/post with the <strong>Cherry Shortcodes button<\/strong> 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 <strong>services_box<\/strong> shortcode. Open the <strong>wp-content\/plugins\/cherry-plugin\/admin\/shortcodes\/shortcodes<\/strong> folder on server. Find and open the <strong>my_service_box.js<\/strong> file. Copy the code from the file.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Paste the code into <strong>wp-content\/themes\/themeXXXXX\/js\/my_script.js<\/strong> file on server. Insert it at the bottom of the file.<\/p>\r\n<\/li>\r\n<li>\r\n<p>With that done, add icons numbers into the code:<\/p>\r\n<pre>selectValues:['no', 'icon1', 'icon2', 'icon3', 'icon4', 'icon5', 'icon6', 'icon7', 'icon8', 'icon9', 'icon10', 'icon11', 'icon12'],<\/pre>\r\n<\/li>\r\n<li>\r\n<p>Save changes in the file and check shortcode layout in WordPress admin panel:<\/p>\r\n<p><a href=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Wordpress.How-to-add-more-image-icons-into-shortcode-3.png\"><img loading=\"lazy\" src=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Wordpress.How-to-add-more-image-icons-into-shortcode-3-300x210.png\" alt=\"Wordpress.How to add more image icons into shortcode-3\" width=\"300\" height=\"210\" class=\"aligncenter size-medium wp-image-47623\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Wordpress.How-to-add-more-image-icons-into-shortcode-3-300x210.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Wordpress.How-to-add-more-image-icons-into-shortcode-3-150x105.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Wordpress.How-to-add-more-image-icons-into-shortcode-3.png 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t<\/li>\r\n<li>\r\n<p>Refresh your homepage with <strong>Ctrl\/Cmd+F5<\/strong> to see the changes at the front-end:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/04\/Wordpress.How-to-add-more-image-icons-into-shortcode-41.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/04\/Wordpress.How-to-add-more-image-icons-into-shortcode-41-300x210.png\" alt=\"Wordpress.How to add more image icons into shortcode-4\" width=\"300\" height=\"210\" class=\"aligncenter size-medium wp-image-47624\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Wordpress.How-to-add-more-image-icons-into-shortcode-41-300x210.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Wordpress.How-to-add-more-image-icons-into-shortcode-41-150x105.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Wordpress.How-to-add-more-image-icons-into-shortcode-41.png 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t<\/li>\r\n<\/ol>\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=mhuaYDHnT5k?width=1280&amp;height=720\" rel=\"prettyPhoto\"><\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>The tutorial will show how add more image icons implemented with shortcodes in WordPress.<\/p>\n","protected":false},"author":65,"featured_media":47629,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[728],"tags":[674,1415,2405],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/47619"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=47619"}],"version-history":[{"count":1,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/47619\/revisions"}],"predecessor-version":[{"id":83156,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/47619\/revisions\/83156"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/47629"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=47619"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=47619"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=47619"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}