{"id":21440,"date":"2014-06-20T15:01:29","date_gmt":"2014-06-20T07:01:29","guid":{"rendered":"https:\/\/www.hongkiat.com\/blog\/?p=21440"},"modified":"2025-04-04T01:54:37","modified_gmt":"2025-04-03T17:54:37","slug":"wordpress-dashicons","status":"publish","type":"post","link":"https:\/\/www.hongkiat.com\/blog\/wordpress-dashicons\/","title":{"rendered":"How to Add Dashicons to Your WordPress Theme or Plugin"},"content":{"rendered":"<p>With the revamped WP-Admin in WordPress 3.8, a brand new set of icons called <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/gist.github.com\/neverything\/26f3cf548fb2fe02385240f3bc9c76cf\">Dashicons<\/a> was introduced. Dashicons, designed by <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/melchoyce.design\/\">Mel Choyce<\/a>, were created to enhance the new WP-Admin UI, from the Content Screen Editor to the Administration Menu, as shown in the screenshot below.<\/p>\n<p>Since WordPress uses Dashicons for icons in WP-Admin, you should consider using them in your themes and plugins as well. Font icons like Dashicons allow you to <strong>easily customize the output through CSS<\/strong>. If you are a developer looking to update your plugins or themes to align with the latest WordPress design and its new features, this article is for you.<\/p>\n<div class=\"ref-block ref-block--post\" id=\"ref-post-1\">\n\t\t\t\t\t<a href=\"https:\/\/www.hongkiat.com\/blog\/wordpress-admin-color-scheme\/\" class=\"ref-block__link\" title=\"Read More: Customize WordPress Admin Color Scheme\" rel=\"bookmark\"><span class=\"screen-reader-text\">Customize WordPress Admin Color Scheme<\/span><\/a>\n<div class=\"ref-block__thumbnail img-thumb img-thumb--jumbo\" data-img='{ \"src\" : \"https:\/\/assets.hongkiat.com\/uploads\/thumbs\/250x160\/wordpress-admin-color-scheme.jpg\" }'>\n\t\t\t\t\t\t\t<noscript>\n<style>.no-js #ref-block-post-18865 .ref-block__thumbnail { background-image: url(\"https:\/\/assets.hongkiat.com\/uploads\/thumbs\/250x160\/wordpress-admin-color-scheme.jpg\"); }<\/style>\n<\/noscript>\n\t\t\t\t\t\t<\/div>\n<div class=\"ref-block__summary\">\n<h4 class=\"ref-title\">Customize WordPress Admin Color Scheme<\/h4>\n<p class=\"ref-description\">\n\t\t\t\t\t\tWordPress just got a new upgrade and 3.8 comes with a bunch of new thing to be excited...\t\t\t\t\t\t<span>Read more<\/span><\/p>\n<\/div>\n<\/div>\n<h2>Using Dashicons in the Administration Menu<\/h2>\n<p>If you incorporate a <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/codex.wordpress.org\/Post_Types\">Custom Post Type<\/a> into your theme or plugin, you can use Dashicons for your icons. Custom Post Type uses <code>menu_icon<\/code> to display the icon. Before WordPress 3.8, you could add your image icon path. From version 3.8 onwards, this parameter can also declare an icon from Dashicons.<\/p>\n<p>First, visit the <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/gist.github.com\/neverything\/26f3cf548fb2fe02385240f3bc9c76cf\">Dashicons website<\/a>. Click on an icon. You will see the selected icon reflected in the header, displaying the icon\u2019s name with options to copy it in several formats: CSS, HTML, and Glyph.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/wordpress-dashicons\/reflected.jpg\" width=\"500\" height=\"320\" alt=\"Selected Dashicon reflected in the header\"><\/figure>\n<p>Copy the icon\u2019s name, and add it in the <code>menu_icon<\/code> of your Custom Post Type function, like this. I\u2019ve kept the code brief for this article. The full code can be found <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/generatewp.com\/snippet\/vNP2RPa\/\">here<\/a>.<\/p>\n<pre>\r\n$args = array(\r\n    'label' => __( 'book', 'book' ),\r\n    'description' => __( 'Post Type Description', 'book' ),\r\n    'labels' => $labels,\r\n    'supports' => array(),\r\n    'taxonomies' => array( 'category', 'post_tag' ),\r\n    'menu_position' => 20,\r\n    'menu_icon' => 'dashicons-book',\r\n    'capability_type' => 'post',\r\n);\r\n<\/pre>\n<p>In this example, I\u2019ve created a Custom Post Type for posting Books. As you can see below, the book icon appears beside it.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/wordpress-dashicons\/book-icon.jpg\" width=\"500\" height=\"150\" alt=\"Book icon beside the custom post type\"><\/figure>\n<h2>Menu Page<\/h2>\n<p>Plugins can also use the <code><a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/codex.wordpress.org\/Function_Reference\/add_menu_page\">add_menu_page<\/a><\/code> function to add an <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/codex.wordpress.org\/Administration_Menus\">Administration Menu<\/a>. In this case, you can specify the Dashicons icon name as the sixth parameter. In the following example, we will display the \u201cwrench\u201d icon on our Options page.<\/p>\n<pre>\r\nfunction hkdc_custom_menu_page() {\r\n    add_menu_page( \r\n        'Options Page', \r\n        'Options', \r\n        'manage_options', \r\n        'myplugin\/option.php', \r\n        '', \r\n        'dashicons-admin-tools', \r\n        81 \r\n    );\r\n}\r\nadd_action( 'admin_menu', 'hkdc_custom_menu_page' );\r\n<\/pre>\n<p>Head over to WP-Admin, and you should see the icon as shown.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/wordpress-dashicons\/wrench-icon.jpg\" height=\"180\" width=\"500\" alt=\"Wrench icon in the WordPress admin menu\"><\/figure>\n<h2>The Fallback<\/h2>\n<p>Never assume that all your users will update to the latest WordPress version. In some cases, they won\u2019t. They may have installed a plugin to disable automatic updates. Therefore, it\u2019s necessary to provide a fallback to support older WordPress versions. If we don\u2019t, the icon will appear as a broken image (as shown in the image below, next to Books).<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/wordpress-dashicons\/no-fallback.jpg\" height=\"180\" width=\"500\" alt=\"Broken image icon in older WordPress version\"><\/figure>\n<p>Before proceeding, ensure that you have placed the image icon in your theme or plugin directory. Then, you can specify the icon with a conditional function, as follows:<\/p>\n<p>First, set the default to use Dashicons.<\/p>\n<pre>\r\n$icon = 'dashicons-book-alt';\r\n<\/pre>\n<p>Replace the <code>$icon<\/code> variable\u2019s value if the WordPress version is 3.7 or below.<\/p>\n<pre>\r\nif (version_compare($GLOBALS['wp_version'], '3.8', '<')) {\r\n    $icon = get_template_directory_uri() . '\/extra\/img\/book-brown.png';\r\n}\r\n<\/pre>\n<p>Next, replace the icon parameter in the Custom Post Type (as well as in the <code>add_menu_page<\/code> function) with the <code>$icon<\/code> variable.<\/p>\n<pre>\r\n$args = array(\r\n    'label' => __('book', 'book'),\r\n    'description' => __('Post Type Description', 'book'),\r\n    'labels' => $labels,\r\n    'supports' => array(),\r\n    'menu_position' => 20,\r\n    'menu_icon' => $icon,\r\n);\r\nregister_post_type('book', $args);\r\n<\/pre>\n<p>And that's it. It will use Dashicons for WordPress 3.8 and later, while displaying the \"image\" icon in older versions.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/wordpress-dashicons\/compatible.jpg\" height=\"180\" width=\"500\" alt=\"Compatible icon for both new and old WordPress versions\"><\/figure>","protected":false},"excerpt":{"rendered":"<p>With the revamped WP-Admin in WordPress 3.8, a brand new set of icons called Dashicons was introduced. Dashicons, designed by Mel Choyce, were created to enhance the new WP-Admin UI, from the Content Screen Editor to the Administration Menu, as shown in the screenshot below. Since WordPress uses Dashicons for icons in WP-Admin, you should&hellip;<\/p>\n","protected":false},"author":113,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[49],"tags":[4663],"topic":[4520],"class_list":["entry-content","is-maxi"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v22.8 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Add Dashicons to Your WordPress Theme or Plugin - Hongkiat<\/title>\n<meta name=\"description\" content=\"With the revamped WP-Admin in WordPress 3.8, a brand new set of icons called Dashicons was introduced. Dashicons, designed by Mel Choyce, were created to\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.hongkiat.com\/blog\/wordpress-dashicons\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Add Dashicons to Your WordPress Theme or Plugin\" \/>\n<meta property=\"og:description\" content=\"With the revamped WP-Admin in WordPress 3.8, a brand new set of icons called Dashicons was introduced. Dashicons, designed by Mel Choyce, were created to\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hongkiat.com\/blog\/wordpress-dashicons\/\" \/>\n<meta property=\"og:site_name\" content=\"Hongkiat\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hongkiatcom\" \/>\n<meta property=\"article:published_time\" content=\"2014-06-20T07:01:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-04-03T17:54:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/assets.hongkiat.com\/uploads\/wordpress-dashicons\/reflected.jpg\" \/>\n<meta name=\"author\" content=\"Thoriq Firdaus\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@tfirdaus\" \/>\n<meta name=\"twitter:site\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Thoriq Firdaus\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-dashicons\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-dashicons\\\/\"},\"author\":{\"name\":\"Thoriq Firdaus\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/e7948c7a175d211496331e4b6ce55807\"},\"headline\":\"How to Add Dashicons to Your WordPress Theme or Plugin\",\"datePublished\":\"2014-06-20T07:01:29+00:00\",\"dateModified\":\"2025-04-03T17:54:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-dashicons\\\/\"},\"wordCount\":463,\"commentCount\":5,\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-dashicons\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/wordpress-dashicons\\\/reflected.jpg\",\"keywords\":[\"ad-divi\"],\"articleSection\":[\"WordPress\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-dashicons\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-dashicons\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-dashicons\\\/\",\"name\":\"How to Add Dashicons to Your WordPress Theme or Plugin - Hongkiat\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-dashicons\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-dashicons\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/wordpress-dashicons\\\/reflected.jpg\",\"datePublished\":\"2014-06-20T07:01:29+00:00\",\"dateModified\":\"2025-04-03T17:54:37+00:00\",\"description\":\"With the revamped WP-Admin in WordPress 3.8, a brand new set of icons called Dashicons was introduced. Dashicons, designed by Mel Choyce, were created to\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-dashicons\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-dashicons\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-dashicons\\\/#primaryimage\",\"url\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/wordpress-dashicons\\\/reflected.jpg\",\"contentUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/wordpress-dashicons\\\/reflected.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-dashicons\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Add Dashicons to Your WordPress Theme or Plugin\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"name\":\"Hongkiat\",\"description\":\"Tech and Design Tips\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\",\"name\":\"Hongkiat.com\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"contentUrl\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"width\":1200,\"height\":799,\"caption\":\"Hongkiat.com\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/hongkiatcom\",\"https:\\\/\\\/x.com\\\/hongkiat\",\"https:\\\/\\\/www.pinterest.com\\\/hongkiat\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/e7948c7a175d211496331e4b6ce55807\",\"name\":\"Thoriq Firdaus\",\"description\":\"Thoriq is a writer for Hongkiat.com with a passion for web design and development. He is the author of Responsive Web Design by Examples, where he covered his best approaches in developing responsive websites quickly with a framework.\",\"sameAs\":[\"https:\\\/\\\/thoriq.com\",\"https:\\\/\\\/x.com\\\/tfirdaus\"],\"jobTitle\":\"Web Developer\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/author\\\/thoriq\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Add Dashicons to Your WordPress Theme or Plugin - Hongkiat","description":"With the revamped WP-Admin in WordPress 3.8, a brand new set of icons called Dashicons was introduced. Dashicons, designed by Mel Choyce, were created to","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.hongkiat.com\/blog\/wordpress-dashicons\/","og_locale":"en_US","og_type":"article","og_title":"How to Add Dashicons to Your WordPress Theme or Plugin","og_description":"With the revamped WP-Admin in WordPress 3.8, a brand new set of icons called Dashicons was introduced. Dashicons, designed by Mel Choyce, were created to","og_url":"https:\/\/www.hongkiat.com\/blog\/wordpress-dashicons\/","og_site_name":"Hongkiat","article_publisher":"https:\/\/www.facebook.com\/hongkiatcom","article_published_time":"2014-06-20T07:01:29+00:00","article_modified_time":"2025-04-03T17:54:37+00:00","og_image":[{"url":"https:\/\/assets.hongkiat.com\/uploads\/wordpress-dashicons\/reflected.jpg","type":"","width":"","height":""}],"author":"Thoriq Firdaus","twitter_card":"summary_large_image","twitter_creator":"@tfirdaus","twitter_site":"@hongkiat","twitter_misc":{"Written by":"Thoriq Firdaus","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hongkiat.com\/blog\/wordpress-dashicons\/#article","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/wordpress-dashicons\/"},"author":{"name":"Thoriq Firdaus","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/e7948c7a175d211496331e4b6ce55807"},"headline":"How to Add Dashicons to Your WordPress Theme or Plugin","datePublished":"2014-06-20T07:01:29+00:00","dateModified":"2025-04-03T17:54:37+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/wordpress-dashicons\/"},"wordCount":463,"commentCount":5,"publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/wordpress-dashicons\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/wordpress-dashicons\/reflected.jpg","keywords":["ad-divi"],"articleSection":["WordPress"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.hongkiat.com\/blog\/wordpress-dashicons\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.hongkiat.com\/blog\/wordpress-dashicons\/","url":"https:\/\/www.hongkiat.com\/blog\/wordpress-dashicons\/","name":"How to Add Dashicons to Your WordPress Theme or Plugin - Hongkiat","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/wordpress-dashicons\/#primaryimage"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/wordpress-dashicons\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/wordpress-dashicons\/reflected.jpg","datePublished":"2014-06-20T07:01:29+00:00","dateModified":"2025-04-03T17:54:37+00:00","description":"With the revamped WP-Admin in WordPress 3.8, a brand new set of icons called Dashicons was introduced. Dashicons, designed by Mel Choyce, were created to","breadcrumb":{"@id":"https:\/\/www.hongkiat.com\/blog\/wordpress-dashicons\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hongkiat.com\/blog\/wordpress-dashicons\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/wordpress-dashicons\/#primaryimage","url":"https:\/\/assets.hongkiat.com\/uploads\/wordpress-dashicons\/reflected.jpg","contentUrl":"https:\/\/assets.hongkiat.com\/uploads\/wordpress-dashicons\/reflected.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.hongkiat.com\/blog\/wordpress-dashicons\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hongkiat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Add Dashicons to Your WordPress Theme or Plugin"}]},{"@type":"WebSite","@id":"https:\/\/www.hongkiat.com\/blog\/#website","url":"https:\/\/www.hongkiat.com\/blog\/","name":"Hongkiat","description":"Tech and Design Tips","publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hongkiat.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.hongkiat.com\/blog\/#organization","name":"Hongkiat.com","url":"https:\/\/www.hongkiat.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","contentUrl":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","width":1200,"height":799,"caption":"Hongkiat.com"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/hongkiatcom","https:\/\/x.com\/hongkiat","https:\/\/www.pinterest.com\/hongkiat\/"]},{"@type":"Person","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/e7948c7a175d211496331e4b6ce55807","name":"Thoriq Firdaus","description":"Thoriq is a writer for Hongkiat.com with a passion for web design and development. He is the author of Responsive Web Design by Examples, where he covered his best approaches in developing responsive websites quickly with a framework.","sameAs":["https:\/\/thoriq.com","https:\/\/x.com\/tfirdaus"],"jobTitle":"Web Developer","url":"https:\/\/www.hongkiat.com\/blog\/author\/thoriq\/"}]}},"jetpack_featured_media_url":"https:\/\/","jetpack_shortlink":"https:\/\/wp.me\/p4uxU-5zO","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/21440","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/users\/113"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/comments?post=21440"}],"version-history":[{"count":3,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/21440\/revisions"}],"predecessor-version":[{"id":73700,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/21440\/revisions\/73700"}],"wp:attachment":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/media?parent=21440"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/categories?post=21440"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/tags?post=21440"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/topic?post=21440"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}