{"id":2209,"date":"2022-05-28T10:42:37","date_gmt":"2022-05-28T10:42:37","guid":{"rendered":"https:\/\/chpadblock.com\/?post_type=docs&#038;p=2209"},"modified":"2022-05-28T10:52:21","modified_gmt":"2022-05-28T10:52:21","slug":"how-i-can-change-the-default-image","status":"publish","type":"docs","link":"https:\/\/chpadblock.com\/docs\/support\/how-i-can-change-the-default-image\/","title":{"rendered":"How i can change the default image?"},"content":{"rendered":"\n<p><strong>From Settings:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Go to <strong><em><span style=\"text-decoration: underline;\">settings >> Modal Options<\/span><\/em><\/strong><\/li><li>At the bottom of the settings, You will see <em><strong><span style=\"text-decoration: underline;\">Adblock Icon<\/span><\/strong><\/em> Section at the bottom<\/li><li>Make Sure your enable icon settings<\/li><li>Select <strong><span style=\"text-decoration: underline;\"><em>Custom Icon<\/em><\/span><\/strong>, After that You will see the field to upload the image.<\/li><\/ul>\n\n\n\n<p><strong>Using Code:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/**\r\n * Change Adblock Icon\r\n * \r\n * @package chpadsblockpro\r\n *\/\r\nadd_filter(\"adb\/change\/html\/icon\", function($iconCode, $iconAlernativeFile, $iconAlernativeAlt){\r\n\r\n    $imageType = \"img\";  \/\/svg\r\n    $fileURL = \"REPLACE_IMAGE_URL\";\r\n\r\n    return sprintf('&lt;img class=\"chp_ads_blocker_detector-icon %s\" src=\"%s\" alt=\"%s\">', $imageType, $fileURL, $iconAlernativeAlt);\r\n    \r\n}, 10, 3);<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>From Settings: Go to settings >> Modal Options At the bottom of the settings, You will see Adblock Icon Section at the bottom Make Sure your enable icon settings Select Custom Icon, After that You will see the field to upload the image. Using Code:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"footnotes":""},"doc_category":[27],"doc_tag":[],"knowledge_base":[21],"class_list":["post-2209","docs","type-docs","status-publish","hentry","doc_category-how-to","knowledge_base-support"],"acf":[],"_links":{"self":[{"href":"https:\/\/chpadblock.com\/api\/wp\/v2\/docs\/2209","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chpadblock.com\/api\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/chpadblock.com\/api\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/chpadblock.com\/api\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chpadblock.com\/api\/wp\/v2\/comments?post=2209"}],"version-history":[{"count":4,"href":"https:\/\/chpadblock.com\/api\/wp\/v2\/docs\/2209\/revisions"}],"predecessor-version":[{"id":2214,"href":"https:\/\/chpadblock.com\/api\/wp\/v2\/docs\/2209\/revisions\/2214"}],"wp:attachment":[{"href":"https:\/\/chpadblock.com\/api\/wp\/v2\/media?parent=2209"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/chpadblock.com\/api\/wp\/v2\/doc_category?post=2209"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/chpadblock.com\/api\/wp\/v2\/doc_tag?post=2209"},{"taxonomy":"knowledge_base","embeddable":true,"href":"https:\/\/chpadblock.com\/api\/wp\/v2\/knowledge_base?post=2209"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}