{"id":2292,"date":"2026-10-20T08:30:40","date_gmt":"2026-10-20T07:30:40","guid":{"rendered":"https:\/\/wpgeodirectory.com\/documentation\/article\/change-site-header\/"},"modified":"2026-10-20T08:39:39","modified_gmt":"2026-10-20T07:39:39","slug":"change-site-header","status":"publish","type":"gd_place","link":"https:\/\/wpgeodirectory.com\/documentation\/article\/how-tos\/change-site-header\/","title":{"rendered":"How to change the header on a GeoDirectory site"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">The header (site title, logo, menu and the space around them) belongs to your WordPress theme, not to GeoDirectory, so you change it with the theme&#8217;s tools. Which tools you have depends on whether your theme is a block theme or a classic theme.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Block themes<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Block themes, including our Directory theme, keep the header in a template part that you edit with blocks.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to Appearance &gt; Editor.<\/li>\n\n\n\n<li>Open Patterns and select the Header template part. Some WordPress versions list it under Template Parts.<\/li>\n\n\n\n<li>Edit it like any other block content. For example, add a Site Logo block beside the Site Title, use Row and Group blocks to control width and alignment, and set spacing from the block settings.<\/li>\n\n\n\n<li>Save your changes.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Classic themes<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Classic themes usually put header options in Appearance &gt; Customize, often under Site Identity (logo, site title and tagline) and a Header section. Some also have a header widget area in Appearance &gt; Widgets, where an Image or Custom HTML widget can add a picture next to the title.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Anything the options do not cover can be changed with CSS in Appearance &gt; Customize &gt; Additional CSS. Use your browser&#8217;s inspector to find the class of the part you want to change and override it. The class names below are only an example, yours depend on the theme:<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-css\">.site-header .site-branding {\n\tmax-width: 100%;\n\ttext-align: center;\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Avoid editing functions.php<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">One typo in a theme&#8217;s functions.php can take down the whole site, including the admin area. Add PHP changes with the <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/useful-plugins\/code-snippets-plugin\/\">Code Snippets plugin<\/a> instead, and use a child theme if you need to change the theme&#8217;s template files. Both survive theme updates, and a broken snippet can be switched off from the admin.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The header (site title, logo, menu and the space around them) belongs to your WordPress theme, not to GeoDirectory, so you change it with the theme&#8217;s tools. Which tools you have depends on whether your theme is a block theme or a classic theme. Block themes Block themes, including our Directory theme, keep the header [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[],"article\/categories":[211,432],"class_list":["post-2292","gd_place","type-gd_place","status-publish","hentry","gd_placecategory-tips-tricks-more","gd_placecategory-how-tos"],"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2292","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/types\/gd_place"}],"author":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/comments?post=2292"}],"version-history":[{"count":1,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2292\/revisions"}],"predecessor-version":[{"id":2316,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2292\/revisions\/2316"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/media?parent=2292"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=2292"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=2292"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}