{"id":7978,"date":"2020-01-14T10:35:06","date_gmt":"2020-01-14T10:35:06","guid":{"rendered":"https:\/\/www.24x7wpsupport.com\/blog\/?p=7978"},"modified":"2021-09-23T12:47:54","modified_gmt":"2021-09-23T12:47:54","slug":"how-to-customize-headers-in-wordpress-using-plugins-and-custom-code","status":"publish","type":"post","link":"https:\/\/www.24x7wpsupport.com\/blog\/how-to-customize-headers-in-wordpress-using-plugins-and-custom-code\/","title":{"rendered":"How to Customize Headers in WordPress Using Plugins and Custom Code?"},"content":{"rendered":"<div class=\"wpb-content-wrapper\"><p class=\"last-updated\">Last updated on September 23rd, 2021 at 12:47 pm<\/p><p>[vc_row][vc_column][vc_empty_space][vc_column_text]This is a screenshot of our beloved website, WordPress. The first thing that we see on the web page as the developers want us to is the WordPress logo and the name of the site on the header of the web page. If you have not figured out yet, it is a custom header.[\/vc_column_text][vc_single_image image=&#8221;7979&#8243; img_size=&#8221;full&#8221; alignment=&#8221;center&#8221;][vc_column_text]The very first thing that catches the viewer&#8217;s eyes is always the header of a website. Be it the header on the Facebook app with the FB logo and search box, or the header of the site that you&#8217;re currently surfing.<\/p>\n<p>The header, which also acts as the navigation bar of every website, plays a significant role in creating a good or bad user experience. When the stakes are this high, there has got to be some way for adding creativity to this component the website, right?<\/p>\n<p>Don\u2019t worry! We\u2019ve got you covered. You\u2019re going to customize headers in WordPress, left, right, and center after reading this article.[\/vc_column_text][\/vc_column][\/vc_row][vc_row][vc_column][vc_custom_heading text=&#8221;Types of Headers&#8221; use_theme_fonts=&#8221;yes&#8221;][vc_column_text]Before getting into the real tech of how to customize headers in WordPress, let\u2019s first understand what the different types of headers are. We are sure you&#8217;ve seen all the types on some website or the other.<\/p>\n<p>The first type of header is the fixed header. Using a small CSS trick, which is discussed further, you can customize headers in WordPress to fix at the top of the page. This implies that your web page header will be fixed at the top of the web page independent of the user&#8217;s scrolling activity.<\/p>\n<p>The second type of header is the fading header. You can customize headers in WordPress so that they fade out when the user scrolls downwards and fade in as soon as the user scrolls upwards. You&#8217;ve seen this header on <a href=\"https:\/\/www.24x7wpsupport.com\/blog\/what-is-the-facebook-pixel\/\">Facebook<\/a>.<\/p>\n<p>The third type of header is the relatively fixed header. You can also customize headers in WordPress so that they stay at the top of the webpage, and the user has to scroll to the top every time to access the header. The WordPress website&#8217;s homepage deploys this header.[\/vc_column_text][\/vc_column][\/vc_row][vc_row][vc_column][vc_custom_heading text=&#8221;What is a custom header in WordPress?&#8221; use_theme_fonts=&#8221;yes&#8221;][vc_column_text]Customizing headers in WordPress is not a very tough task when you have the standard WordPress theme customizer service on your dashboard. The header then developed is a custom\/modified header. But all good things come with a catch. The catch to using the standard service is that you have to follow certain constraints on image sizes, formats, etc. for every theme provided.[\/vc_column_text][vc_single_image image=&#8221;7980&#8243; img_size=&#8221;full&#8221; alignment=&#8221;center&#8221;][vc_column_text]Custom headers enable developers to add a &#8216;title image&#8217; to each of their headers, and they can crop, rotate and edit any picture through a visual editor, which you can find in Appearance &gt; Header section of the admin panel. Developers can also add strings of texts and videos to their headers. While all this sounds pretty fancy and cool, it is a tedious task to upload all high-quality rich data to the headers, while maintaining responsivity for different screen sizes and keeping a short load time.[\/vc_column_text][\/vc_column][\/vc_row][vc_row][vc_column][vc_custom_heading text=&#8221;What WordPress offers and what we make out of it with code?&#8221; use_theme_fonts=&#8221;yes&#8221;][vc_column_text]Before customizing your header, you\u2019ll have to set up a WordPress theme customizer in your functions.php file to load themes. To do this, copy-paste the following code. You can refer to the image below to find the file to edit[\/vc_column_text][vc_single_image image=&#8221;7981&#8243; img_size=&#8221;full&#8221; alignment=&#8221;center&#8221;][vc_column_text]<\/p>\n<p>&lt;code&gt;<br \/>\nfunction themename_custom_header_setup() {<br \/>\n$args = array(<br \/>\n&#8216;default-image&#8217; =&gt; get_template_directory_uri(). &#8216;img\/default-image.jpg&#8217;,<br \/>\n&#8216;default-text-color&#8217; =&gt; &#8216;000&#8217;,<br \/>\n&#8216;width&#8217; =&gt; 1000,<br \/>\n&#8216;height&#8217; =&gt; 250,<br \/>\n&#8216;flex-width&#8217; =&gt; true,<br \/>\n&#8216;flex-height&#8217; =&gt; true,<br \/>\n)<br \/>\nadd_theme_support( &#8216;custom-header&#8217;, $args );<br \/>\n}<br \/>\nadd_action(&#8216; after_setup_theme &#8216;, &#8216;themename_custom_header_setup &#8216; );<br \/>\n&lt;\/code&gt;<\/p>\n<p>This code will result in a standard responsive header with text. The \u2018flex-width\u2019 and \u2018flex-height\u2019 attributes make the header responsive if set to \u2018true.\u2019<br \/>\nOnce this is done, you&#8217;ll have to use the <span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/after_setup_theme\/\" target=\"_blank\" rel=\"noopener noreferrer\">after_setup_theme<\/a><\/span> hook to register the custom headers and themes.<\/p>\n<p>[\/vc_column_text][vc_custom_heading text=&#8221;Adding an Image to the header&#8221; use_theme_fonts=&#8221;yes&#8221;][vc_column_text]Start by choosing any theme available on WordPress, for example, Twenty Sixteen Default WordPress theme. All themes have specific limitations to the dimensions of the image that you can use for the header. You can view these specifications under the Appearance &gt;&gt; Header section on your admin dashboard. After you\u2019re all caught up with what the theme will accept, follow these steps for getting an image on your header. The image below demonstrates the same.[\/vc_column_text][vc_single_image image=&#8221;7982&#8243; img_size=&#8221;full&#8221; alignment=&#8221;center&#8221;][vc_column_text]<strong>1)\u00a0 Choose and edit an image<\/strong><br \/>\nYour first task is to find an image that represents your brand or catches the user&#8217;s eye if you want to promote something. There are a ton of websites from where you can get a high-quality intriguing image for your header. You may use <span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/blog.bannersnack.com\/free-banner-images\/\" target=\"_blank\" rel=\"noopener noreferrer\">this link<\/a><\/span> which lists all such websites. You can now edit the image to give your touch to it or update its dimensions for the chosen theme. Depending on your needs, you can use basic picture editing software like paint to high order vector editing software like Adobe illustrator to do this.<\/p>\n<p><strong>2) Upload the image<\/strong><br \/>\nFor uploading an image for your header, login to your WordPress dashboard. Now follow the steps:<br \/>\nAppearance -&gt; Header -&gt; Header Image (on the left side) -&gt; Add new image<br \/>\nThis will open a file upload dialogue box from where you can search and upload your custom header image. You now know how to create a custom header.<\/p>\n<p><strong>3) Image for every page<\/strong><br \/>\nIf you want, you can upload a different image for every web page of your website. To do this, install a WordPress plugin like WP Header Images. Now you can choose and select different custom photos for your WordPress custom headers. You will be able to use this service in the Settings &gt;&gt; WP Header Images section after installing the plugin.[\/vc_column_text][\/vc_column][\/vc_row][vc_row][vc_column][vc_custom_heading text=&#8221;Adding a Text area to your header&#8221; use_theme_fonts=&#8221;yes&#8221;][vc_column_text]Now that you have a custom image you can use it to add many things to your header. To add a text area, you\u2019ll have to add a small piece of code to your header-image.php file. Add the following code to get a text-area on your header.<\/p>\n<p>&lt;code&gt;<br \/>\n&lt;div class=&#8221;custom-header&#8221;&gt;<br \/>\n&lt;div class=&#8221;custom-header-media&#8221;&gt;<br \/>\n&lt;?php the_custom_header_markup(); ?&gt;<br \/>\n&lt;\/div&gt;<br \/>\n&lt;div class=&#8221;custom_textbox&#8221;&gt;<br \/>\n&lt;div class=&#8221;custom_textbox_content&#8221;&gt;&lt;p&gt;Lorem Impsum&lt;\/p&gt;&lt;\/div&gt;&lt;\/div&gt;<br \/>\n&lt;\/code&gt;<\/p>\n<p>This will result in a text-area on your header with the text \u201cLorem Impsum&#8221; in it. You can also tweak the looks of the text area using css which is discussed in the next section. A header with some text looks like:[\/vc_column_text][vc_single_image image=&#8221;7985&#8243; img_size=&#8221;full&#8221; alignment=&#8221;center&#8221;][vc_custom_heading text=&#8221;Adding social media icons&#8221; font_container=&#8221;tag:h3|text_align:left&#8221; use_theme_fonts=&#8221;yes&#8221;][vc_column_text]To add social media icons to your header you\u2019ll have to add the following code after the wrap class in your site-branding.php file. A web-page with a header that includes social media icons looks something like this.[\/vc_column_text][vc_single_image image=&#8221;7986&#8243; img_size=&#8221;full&#8221; alignment=&#8221;center&#8221;][vc_column_text]&lt;code&gt;<br \/>\n&lt;div class=&#8221;social_links&#8221;&gt;<br \/>\n&lt;ul&gt; &lt;li&gt;&lt;a href=&#8221; &#8221; class=&#8221;custom_facebook_icon&#8221;&gt;<br \/>\n&lt;img alt=&#8221;customfacebook&#8221; src=&#8221; &#8221; \/&gt;<br \/>\n&lt;\/a&gt; &lt;\/li&gt;<br \/>\n&lt;li&gt; &lt;a href=&#8221; &#8221; class=&#8221;custom_twitter_icon&#8221;&gt;<br \/>\n&lt;img alt=&#8221;customtwitter&#8221; src=&#8221; &#8221; \/&gt;<br \/>\n&lt;\/a&gt; &lt;\/li&gt;<br \/>\n&lt;li&gt; &lt;a href=&#8221; &#8221; class=&#8221;custom_googleplus_icon&#8221;&gt;<br \/>\n&lt;img alt=&#8221;customgoogleplus&#8221; src=&#8221; &#8221; \/&gt;<br \/>\n&lt;\/a&gt; &lt;\/li&gt; &lt;\/ul&gt;<br \/>\n&lt;\/div&gt;<br \/>\n&lt;\/code&gt;[\/vc_column_text][vc_custom_heading text=&#8221;Adding widget to your header&#8221; font_container=&#8221;tag:h3|text_align:left&#8221; use_theme_fonts=&#8221;yes&#8221;][vc_column_text]To add functional widgets to your header you\u2019ll have to edit your function.php file. Just add the following code anywhere (obviously not in between functions!)<\/p>\n<p>&lt;code&gt;<br \/>\nfunction custom_widgets()<br \/>\n{<br \/>\nregister_sidebar( array(<br \/>\n&#8216;name&#8217; =&gt; &#8216;Custom Header Position&#8217;,<br \/>\n&#8216; id &#8216; =&gt; &#8216; &#8216;,<br \/>\n&#8216; description &#8216; =&gt; __( &#8216; Lorem Ipsum , &#8216; test&#8217; ),<br \/>\n&#8216; before_widget &#8216; =&gt; &#8216; &lt; aside id=&#8221;CustomWidget&#8221; class=&#8221;custom_widget&#8221;&gt;&#8217;,<br \/>\n&#8216; after_widget &#8216; =&gt; &#8221; &lt;\/aside&gt; &#8220;,<br \/>\n&#8216; before_title &#8216; =&gt; &#8216; &lt;h3 class=&#8221;widget-title&#8221;&gt; &#8216;,<br \/>\n&#8216; after_title &#8216; =&gt; &#8216; &lt;\/h3&gt; &#8216;,<br \/>\n) );}<br \/>\nadd_action( &#8216; widgets_init &#8216;, &#8216; custom_widgets &#8216; );<br \/>\n&lt;\/code&gt;<\/p>\n<p>Since this code runs on the back-end of the website you now have to add front-end code that displays the widget on your header. To do this put the following code on your header-image.php file.<\/p>\n<p>&lt;code&gt;<br \/>\n&lt;?php<br \/>\nif ( is_active_sidebar( &#8216; custom_header_position &#8216; ) ) : ?&gt;<br \/>\n&lt;div id=&#8221; &#8221; class=&#8221; &#8221; role=&#8221; complementary &#8220;&gt;<br \/>\n&lt;? php dynamic_sidebar( &#8216; custom_header_position &#8216; ); ?&gt;<br \/>\n&lt;\/div&gt;<br \/>\n&lt;?php endif; ?&gt;<br \/>\n&lt;\/code&gt;<\/p>\n<p>Now you&#8217;re good to go! All your task to do is to choose which widget to deploy from Appearance &gt;&gt; Widgets section. You can add multiple widgets which result in a classic webpage like one displayed below.[\/vc_column_text][vc_single_image image=&#8221;7987&#8243; img_size=&#8221;full&#8221; alignment=&#8221;center&#8221;][vc_custom_heading text=&#8221;Adding video to the header&#8221; use_theme_fonts=&#8221;yes&#8221;][vc_column_text]Adding a video to the header is a straightforward task. There are two ways that you can use to upload a video to your header. You can either upload your mp4 video, or you can get any video from YouTube for your header. You can upload your file by following the steps:<\/p>\n<p>Appearance -&gt; Header -&gt; Select Video<\/p>\n<p>This will open a file upload dialogue box from where you can search and upload the desired video for your header.<\/p>\n<p>To get a video from YouTube on your header, you can directly copy and paste the link of your YouTube video in the text box instead of clicking the &#8216;Select Video&#8217; button in the Appearance -&gt; Header.[\/vc_column_text][vc_single_image image=&#8221;7988&#8243; img_size=&#8221;full&#8221; alignment=&#8221;center&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_custom_heading text=&#8221;The magical CSS&#8221; use_theme_fonts=&#8221;yes&#8221;][vc_column_text]A cascaded style sheet, also known as CSS, is the magic element that takes your website from boring to intriguing. CSS is majorly used on sites all over the web to improve user interface and hence improve user experience. The aspect of CSS that fascinates developers a lot is that it does all of this being &#8216;cascaded,&#8217; i.e., hidden.<\/p>\n<p>You can create a dedicated CSS file that can be used to edit all elements of the whole website if the right division class and ids are called for editing. You can also add inline CSS, i.e., modify elements in the HTML code directly using the &#8220;style&#8221; attribute inside the HTML tags.<\/p>\n<p>You can attach the following code to attach the CSS stylesheet that you&#8217;ve written to the webpages&#8217; code.<\/p>\n<p>&lt;code&gt;<br \/>\n&lt;link rel=&#8221;stylesheet&#8221; href=&#8221;stylesheet_name.css&#8221;&gt;<br \/>\n&lt;\/code&gt;<\/p>\n<p>Inside the stylesheet, you have to first call the class that you want to edit and then edit them. For calling a particular class, use the following code.<\/p>\n<p>&lt;code&gt;<br \/>\nHTML code: &lt;p class=&#8221;className&#8221;&gt;This is a paragraph.&lt;\/p&gt;<br \/>\nCSS code: p.error {<br \/>\nfont-color: red;<br \/>\n}<br \/>\n&lt;\/code&gt;<\/p>\n<p>This will result in all paragraph tags with class \u2018className\u2019 to display red text.<\/p>\n<p>There are numerous CSS properties that you can choose from to create magical designs. Below is a list of all the ones that are used most frequently.[\/vc_column_text][vc_raw_html]JTVCdGFibGUlMjBpZCUzRDMlMjAlMkYlNUQ=[\/vc_raw_html][vc_column_text]You can find the entire list <span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/www.w3schools.com\/cssref\/\" target=\"_blank\" rel=\"noopener noreferrer\">here<\/a><\/span>. You can use these CSS properties to tweak all the elements that you added to your header.<\/p>\n<p>So now you know how to create custom headers in WordPress. But it&#8217;s not this tough to edit and customize headers. Though these approaches provide a tremendous amount of freedom in terms of creativity, writing code for customizing headers might be a cumbersome task for some people.<\/p>\n<p>However, by now, you know that the industry of plugins helping to develop and manage WordPress assets is humongous. Hence, there a ton of WordPress plugins that you can integrate to create custom headers.[\/vc_column_text][\/vc_column][\/vc_row][vc_row][vc_column][vc_custom_heading text=&#8221;Plugins to the blogger\u2019s rescue&#8221; use_theme_fonts=&#8221;yes&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_custom_heading text=&#8221;Open Source Frameworks&#8221; use_theme_fonts=&#8221;yes&#8221;][vc_column_text]There are a couple of frameworks like <span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/materializecss.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">Materialize<\/a><\/span> by Google and <span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/getbootstrap.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">Bootstrap<\/a><\/span> by Twitter that offers open-source codes for headers and other elements of a webpage. The frameworks provide elements like sliders and animations. With a little more knowledge of web-development, once can use these frameworks to develop extraordinary websites.<\/p>\n<p>There are two ways of integrating these frameworks. You can either link them through a CDN link, or you can upload their files on your directory and call them on your HTML code. I would suggest you do the latter as the former results in increased load time.[\/vc_column_text][\/vc_column][\/vc_row][vc_row][vc_column][vc_custom_heading text=&#8221;What do the best players do?&#8221; use_theme_fonts=&#8221;yes&#8221;][vc_column_text]There are practices that the best website developers have in common. Some of them are listed below:<\/p>\n<p>Image type: When using still images, vectors, i.e., pictures editable by Adobe Illustrator, can be a better choice than stock images. This will give you an edge as these are small in size and don&#8217;t pixelate on any scale.<\/p>\n<p>GIFs over Video: If a video that you\u2019re uploading or linking can be replaced by a gif developed with a set of pictures, it is always preferred to use gifs. This is results in less space consumption and reduced load time.<\/p>\n<p>Context-based media: Yes, I&#8217;m sure that the stars and moons are lovely. But does it make sense to have their pictures on your website if you&#8217;re not selling land in space?<\/p>\n<p><strong>Summary<\/strong><br \/>\nA header is one of the essential elements of your webpage. Hence, if you host a website on WordPress, you should know how to customize headers in WordPress.<\/p>\n<p>There are numerous ways to do this, as you read. Most people who don&#8217;t understand code use premium plugins. But we would encourage people with a little understanding of code to try and understand frameworks offered by Google and Twitter.<\/p>\n<p>Always remember that your header should always be sophisticated and be able to serve some purpose and not just be present there for the sake of displaying pictures and pop-ups[\/vc_column_text][\/vc_column][\/vc_row]<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Last updated on September 23rd, 2021 at 12:47 pm[vc_row][vc_column][vc_empty_space][vc_column_text]This is a screenshot of our beloved website, WordPress. The first thing &#8230;<\/p>\n","protected":false},"author":2,"featured_media":7993,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[350,1096],"tags":[1155,1154,1157,1156],"class_list":["post-7978","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-how-to-wordpress","category-wordpress","tag-customize-headers","tag-customize-headers-in-wordpress","tag-customizing-headers-in-wordpress","tag-types-of-headers"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Customize Headers in WordPress | 24x7 WP Support<\/title>\n<meta name=\"description\" content=\"Learn how to customize headers in WordPress.Follow our guide and see how to add &amp; Edit image, video, widget or social icons using plugins &amp; custom code.\" \/>\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.24x7wpsupport.com\/blog\/how-to-customize-headers-in-wordpress-using-plugins-and-custom-code\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Customize Headers in WordPress | 24x7 WP Support\" \/>\n<meta property=\"og:description\" content=\"Learn how to customize headers in WordPress.Follow our guide and see how to add &amp; Edit image, video, widget or social icons using plugins &amp; custom code.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.24x7wpsupport.com\/blog\/how-to-customize-headers-in-wordpress-using-plugins-and-custom-code\/\" \/>\n<meta property=\"og:site_name\" content=\"24x7WPSupport Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/24x7wpsupport\" \/>\n<meta property=\"article:published_time\" content=\"2020-01-14T10:35:06+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-23T12:47:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.24x7wpsupport.com\/blog\/wp-content\/uploads\/2020\/01\/Customize-Headers-in-WordPress.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Dev\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@wpsupport24x7\" \/>\n<meta name=\"twitter:site\" content=\"@wpsupport24x7\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Dev\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"13 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/how-to-customize-headers-in-wordpress-using-plugins-and-custom-code\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/how-to-customize-headers-in-wordpress-using-plugins-and-custom-code\\\/\"},\"author\":{\"name\":\"Dev\",\"@id\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/#\\\/schema\\\/person\\\/e6415d472a2e6bbe2a01279a0224f4d4\"},\"headline\":\"How to Customize Headers in WordPress Using Plugins and Custom Code?\",\"datePublished\":\"2020-01-14T10:35:06+00:00\",\"dateModified\":\"2021-09-23T12:47:54+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/how-to-customize-headers-in-wordpress-using-plugins-and-custom-code\\\/\"},\"wordCount\":2670,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/how-to-customize-headers-in-wordpress-using-plugins-and-custom-code\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/Customize-Headers-in-WordPress.jpg\",\"keywords\":[\"Customize Headers\",\"Customize Headers in WordPress\",\"Customizing headers in WordPress\",\"Types of Headers\"],\"articleSection\":[\"How To Wordpress\",\"WordPress\"],\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/how-to-customize-headers-in-wordpress-using-plugins-and-custom-code\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/how-to-customize-headers-in-wordpress-using-plugins-and-custom-code\\\/\",\"url\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/how-to-customize-headers-in-wordpress-using-plugins-and-custom-code\\\/\",\"name\":\"How to Customize Headers in WordPress | 24x7 WP Support\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/how-to-customize-headers-in-wordpress-using-plugins-and-custom-code\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/how-to-customize-headers-in-wordpress-using-plugins-and-custom-code\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/Customize-Headers-in-WordPress.jpg\",\"datePublished\":\"2020-01-14T10:35:06+00:00\",\"dateModified\":\"2021-09-23T12:47:54+00:00\",\"description\":\"Learn how to customize headers in WordPress.Follow our guide and see how to add & Edit image, video, widget or social icons using plugins & custom code.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/how-to-customize-headers-in-wordpress-using-plugins-and-custom-code\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/how-to-customize-headers-in-wordpress-using-plugins-and-custom-code\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/how-to-customize-headers-in-wordpress-using-plugins-and-custom-code\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/Customize-Headers-in-WordPress.jpg\",\"contentUrl\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/Customize-Headers-in-WordPress.jpg\",\"width\":1200,\"height\":600,\"caption\":\"Customize Headers in WordPress\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/how-to-customize-headers-in-wordpress-using-plugins-and-custom-code\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Customize Headers in WordPress Using Plugins and Custom Code?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/\",\"name\":\"24x7WPSupport Blog\",\"description\":\"WordPress Theme Update | WordPress Blog\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/#organization\",\"name\":\"24x7 WP Support\",\"url\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/11\\\/wpsupportlatestlogo.png\",\"contentUrl\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/11\\\/wpsupportlatestlogo.png\",\"width\":269,\"height\":64,\"caption\":\"24x7 WP Support\"},\"image\":{\"@id\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/24x7wpsupport\",\"https:\\\/\\\/x.com\\\/wpsupport24x7\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.24x7wpsupport.com\\\/blog\\\/#\\\/schema\\\/person\\\/e6415d472a2e6bbe2a01279a0224f4d4\",\"name\":\"Dev\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2279ad7c06143ec3d9993f3a47410189667d39a1d3d3ba17932e370f594894df?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2279ad7c06143ec3d9993f3a47410189667d39a1d3d3ba17932e370f594894df?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2279ad7c06143ec3d9993f3a47410189667d39a1d3d3ba17932e370f594894df?s=96&d=mm&r=g\",\"caption\":\"Dev\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Customize Headers in WordPress | 24x7 WP Support","description":"Learn how to customize headers in WordPress.Follow our guide and see how to add & Edit image, video, widget or social icons using plugins & custom code.","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.24x7wpsupport.com\/blog\/how-to-customize-headers-in-wordpress-using-plugins-and-custom-code\/","og_locale":"en_GB","og_type":"article","og_title":"How to Customize Headers in WordPress | 24x7 WP Support","og_description":"Learn how to customize headers in WordPress.Follow our guide and see how to add & Edit image, video, widget or social icons using plugins & custom code.","og_url":"https:\/\/www.24x7wpsupport.com\/blog\/how-to-customize-headers-in-wordpress-using-plugins-and-custom-code\/","og_site_name":"24x7WPSupport Blog","article_publisher":"https:\/\/www.facebook.com\/24x7wpsupport","article_published_time":"2020-01-14T10:35:06+00:00","article_modified_time":"2021-09-23T12:47:54+00:00","og_image":[{"width":1200,"height":600,"url":"https:\/\/www.24x7wpsupport.com\/blog\/wp-content\/uploads\/2020\/01\/Customize-Headers-in-WordPress.jpg","type":"image\/jpeg"}],"author":"Dev","twitter_card":"summary_large_image","twitter_creator":"@wpsupport24x7","twitter_site":"@wpsupport24x7","twitter_misc":{"Written by":"Dev","Estimated reading time":"13 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.24x7wpsupport.com\/blog\/how-to-customize-headers-in-wordpress-using-plugins-and-custom-code\/#article","isPartOf":{"@id":"https:\/\/www.24x7wpsupport.com\/blog\/how-to-customize-headers-in-wordpress-using-plugins-and-custom-code\/"},"author":{"name":"Dev","@id":"https:\/\/www.24x7wpsupport.com\/blog\/#\/schema\/person\/e6415d472a2e6bbe2a01279a0224f4d4"},"headline":"How to Customize Headers in WordPress Using Plugins and Custom Code?","datePublished":"2020-01-14T10:35:06+00:00","dateModified":"2021-09-23T12:47:54+00:00","mainEntityOfPage":{"@id":"https:\/\/www.24x7wpsupport.com\/blog\/how-to-customize-headers-in-wordpress-using-plugins-and-custom-code\/"},"wordCount":2670,"commentCount":0,"publisher":{"@id":"https:\/\/www.24x7wpsupport.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.24x7wpsupport.com\/blog\/how-to-customize-headers-in-wordpress-using-plugins-and-custom-code\/#primaryimage"},"thumbnailUrl":"https:\/\/www.24x7wpsupport.com\/blog\/wp-content\/uploads\/2020\/01\/Customize-Headers-in-WordPress.jpg","keywords":["Customize Headers","Customize Headers in WordPress","Customizing headers in WordPress","Types of Headers"],"articleSection":["How To Wordpress","WordPress"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.24x7wpsupport.com\/blog\/how-to-customize-headers-in-wordpress-using-plugins-and-custom-code\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.24x7wpsupport.com\/blog\/how-to-customize-headers-in-wordpress-using-plugins-and-custom-code\/","url":"https:\/\/www.24x7wpsupport.com\/blog\/how-to-customize-headers-in-wordpress-using-plugins-and-custom-code\/","name":"How to Customize Headers in WordPress | 24x7 WP Support","isPartOf":{"@id":"https:\/\/www.24x7wpsupport.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.24x7wpsupport.com\/blog\/how-to-customize-headers-in-wordpress-using-plugins-and-custom-code\/#primaryimage"},"image":{"@id":"https:\/\/www.24x7wpsupport.com\/blog\/how-to-customize-headers-in-wordpress-using-plugins-and-custom-code\/#primaryimage"},"thumbnailUrl":"https:\/\/www.24x7wpsupport.com\/blog\/wp-content\/uploads\/2020\/01\/Customize-Headers-in-WordPress.jpg","datePublished":"2020-01-14T10:35:06+00:00","dateModified":"2021-09-23T12:47:54+00:00","description":"Learn how to customize headers in WordPress.Follow our guide and see how to add & Edit image, video, widget or social icons using plugins & custom code.","breadcrumb":{"@id":"https:\/\/www.24x7wpsupport.com\/blog\/how-to-customize-headers-in-wordpress-using-plugins-and-custom-code\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.24x7wpsupport.com\/blog\/how-to-customize-headers-in-wordpress-using-plugins-and-custom-code\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.24x7wpsupport.com\/blog\/how-to-customize-headers-in-wordpress-using-plugins-and-custom-code\/#primaryimage","url":"https:\/\/www.24x7wpsupport.com\/blog\/wp-content\/uploads\/2020\/01\/Customize-Headers-in-WordPress.jpg","contentUrl":"https:\/\/www.24x7wpsupport.com\/blog\/wp-content\/uploads\/2020\/01\/Customize-Headers-in-WordPress.jpg","width":1200,"height":600,"caption":"Customize Headers in WordPress"},{"@type":"BreadcrumbList","@id":"https:\/\/www.24x7wpsupport.com\/blog\/how-to-customize-headers-in-wordpress-using-plugins-and-custom-code\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.24x7wpsupport.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Customize Headers in WordPress Using Plugins and Custom Code?"}]},{"@type":"WebSite","@id":"https:\/\/www.24x7wpsupport.com\/blog\/#website","url":"https:\/\/www.24x7wpsupport.com\/blog\/","name":"24x7WPSupport Blog","description":"WordPress Theme Update | WordPress Blog","publisher":{"@id":"https:\/\/www.24x7wpsupport.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.24x7wpsupport.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/www.24x7wpsupport.com\/blog\/#organization","name":"24x7 WP Support","url":"https:\/\/www.24x7wpsupport.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.24x7wpsupport.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.24x7wpsupport.com\/blog\/wp-content\/uploads\/2018\/11\/wpsupportlatestlogo.png","contentUrl":"https:\/\/www.24x7wpsupport.com\/blog\/wp-content\/uploads\/2018\/11\/wpsupportlatestlogo.png","width":269,"height":64,"caption":"24x7 WP Support"},"image":{"@id":"https:\/\/www.24x7wpsupport.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/24x7wpsupport","https:\/\/x.com\/wpsupport24x7"]},{"@type":"Person","@id":"https:\/\/www.24x7wpsupport.com\/blog\/#\/schema\/person\/e6415d472a2e6bbe2a01279a0224f4d4","name":"Dev","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/secure.gravatar.com\/avatar\/2279ad7c06143ec3d9993f3a47410189667d39a1d3d3ba17932e370f594894df?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/2279ad7c06143ec3d9993f3a47410189667d39a1d3d3ba17932e370f594894df?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2279ad7c06143ec3d9993f3a47410189667d39a1d3d3ba17932e370f594894df?s=96&d=mm&r=g","caption":"Dev"}}]}},"_links":{"self":[{"href":"https:\/\/www.24x7wpsupport.com\/blog\/wp-json\/wp\/v2\/posts\/7978","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.24x7wpsupport.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.24x7wpsupport.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.24x7wpsupport.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.24x7wpsupport.com\/blog\/wp-json\/wp\/v2\/comments?post=7978"}],"version-history":[{"count":8,"href":"https:\/\/www.24x7wpsupport.com\/blog\/wp-json\/wp\/v2\/posts\/7978\/revisions"}],"predecessor-version":[{"id":11022,"href":"https:\/\/www.24x7wpsupport.com\/blog\/wp-json\/wp\/v2\/posts\/7978\/revisions\/11022"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.24x7wpsupport.com\/blog\/wp-json\/wp\/v2\/media\/7993"}],"wp:attachment":[{"href":"https:\/\/www.24x7wpsupport.com\/blog\/wp-json\/wp\/v2\/media?parent=7978"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.24x7wpsupport.com\/blog\/wp-json\/wp\/v2\/categories?post=7978"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.24x7wpsupport.com\/blog\/wp-json\/wp\/v2\/tags?post=7978"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}