{"id":18462,"date":"2022-04-06T06:43:59","date_gmt":"2022-04-06T06:43:59","guid":{"rendered":"https:\/\/ampforwp.com\/tutorials\/?post_type=ht_kb&#038;p=18462"},"modified":"2022-04-07T09:27:53","modified_gmt":"2022-04-07T09:27:53","slug":"how-to-modify-the-h1-h6-size-for-mobile-devices","status":"publish","type":"ht_kb","link":"https:\/\/ampforwp.com\/tutorials\/article\/how-to-modify-the-h1-h6-size-for-mobile-devices\/","title":{"rendered":"How to modify the H1-H6 size for mobile devices"},"content":{"rendered":"\n<p><strong>In this option, we will show you how to modify the H1-H6 size for mobile devices for this follows the below steps:<\/strong><\/p>\n\n\n\n<p>You will find this option in the&nbsp;<strong>WordPress Dashboard<\/strong>&nbsp;-&gt; Navigate to&nbsp;<strong>AMP option panel<\/strong>&nbsp;-&gt;&nbsp;<strong>Design<\/strong>&nbsp;-&gt;&nbsp;<strong>Signal<\/strong> -&gt; Enable <strong>H1 &#8211; H6 Font Sizes<\/strong> option as shown below the screenshot.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"852\" height=\"514\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2022\/04\/a222.png\" alt=\"\" class=\"wp-image-18466\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2022\/04\/a222.png 852w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2022\/04\/a222-300x181.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2022\/04\/a222-768x463.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2022\/04\/a222-50x30.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2022\/04\/a222-60x36.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2022\/04\/a222-100x60.png 100w\" sizes=\"(max-width: 852px) 100vw, 852px\" \/><\/figure>\n\n\n\n<p>It will change the font size to 17px in AMP for both the desktop users and also for the mobile users BUT if you want to make the font size different for desktop and mobile users then you can add this CSS and add it like &#8211;<\/p>\n\n\n\n<p>You will find this option in the&nbsp;<strong>WordPress Dashboard<\/strong>&nbsp;-&gt; Navigate to&nbsp;<strong>AMP Option Panel<\/strong>&nbsp;-&gt;&nbsp;<strong>Design<\/strong>&nbsp;-&gt;&nbsp;<strong>Global<\/strong>&nbsp;-&gt;<strong>&nbsp;<\/strong>In&nbsp;<strong>Custom CSS<\/strong>&nbsp;add this code like below the screenshot<strong>.<\/strong><\/p>\n\n\n\n<p><strong>For example:<\/strong><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;css&quot;,&quot;mime&quot;:&quot;text\/css&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;CSS&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;css&quot;}\">@media (max-width: 768px){\n.amp-post-title {\nfont-size: 15px;\n}\n}<\/pre><\/div>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"488\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2022\/04\/a111-1-1024x488.png\" alt=\"\" class=\"wp-image-18465\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2022\/04\/a111-1-1024x488.png 1024w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2022\/04\/a111-1-300x143.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2022\/04\/a111-1-768x366.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2022\/04\/a111-1-50x24.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2022\/04\/a111-1-60x29.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2022\/04\/a111-1-100x48.png 100w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2022\/04\/a111-1.png 1224w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>So now the desktop users will have a font size of 17px and the mobile users will have a font size of 15px.<\/p>\n\n\n\n<p><strong>That\u2019s it for this tutorial!<\/strong><\/p>\n\n\n\n<p>We hope it helped you. If you have any feedback or questions, then please share them in the comments section below.<\/p>\n<div id=\"div-1\" class=\"hkb-feedback\">\n\t\t\t<strong class=\"ht-mobile-exit__title\">Ask your Questions Directly!<\/strong><br>\n\t\t\t<div class=\"hkb_widget_exit__content\" style=\"font-size: 14px;\">If you can't find the solutions in this article, then just ask us in the comments and we will answer it for you!<\/div>\n\t\t\t<a href=\"https:\/\/ampforwp.com\/support\/#contact\" id=\"button\" target=\"_blank\" rel=\"noopener noreferrer\"><button>Yes, I have a Question<\/button><\/a>\n\t\t<\/div>","protected":false},"excerpt":{"rendered":"<p>In this option, we will show you how to modify the H1-H6 size for mobile devices for this follows the below steps: You will find this option in the&nbsp;WordPress Dashboard&nbsp;-&gt; Navigate to&nbsp;AMP option panel&nbsp;-&gt;&nbsp;Design&nbsp;-&gt;&nbsp;Signal -&gt; Enable H1 &#8211; H6 Font Sizes option as shown below the screenshot. It will change&#8230;<\/p>\n","protected":false},"author":18,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":[],"ht-kb-category":[34],"ht-kb-tag":[],"_links":{"self":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/18462"}],"collection":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/comments?post=18462"}],"version-history":[{"count":4,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/18462\/revisions"}],"predecessor-version":[{"id":18471,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/18462\/revisions\/18471"}],"wp:attachment":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/media?parent=18462"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb-category?post=18462"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb-tag?post=18462"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}