<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Trouble with changing global header to local header in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Trouble-with-changing-global-header-to-local-header/m-p/1027582#M40291</link>
    <description>&lt;P&gt;This isn't exactly what worked for me but it helped me figure it out! The website I'm currently working with isn't even using themes due to how it was set up by a previous agency. What I did was duplicate the header template, and then go into the coding for that specific page in the design manager and change the header for the page to the new duplicated version of the header.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know that might sound confusing since I don't know the technical language but that's the best I can explain it based on my knowledge.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I'm just trying to figure out how to change the logo in this header to a different logo but I think this should be easier to figure out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Thu, 15 Aug 2024 12:59:29 GMT</pubDate>
    <dc:creator>DWellner</dc:creator>
    <dc:date>2024-08-15T12:59:29Z</dc:date>
    <item>
      <title>Trouble with changing global header to local header</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Trouble-with-changing-global-header-to-local-header/m-p/1024911#M40231</link>
      <description>&lt;P&gt;I'm currently trying to change the header for just one website page. It is currently a global header connected to one other page.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I try to change it from the website page editor, I go to:&lt;BR /&gt;Left sidebar &amp;gt; contents &amp;gt; Click on three dots of the global header. Then the only option is to edit, but that will change it for every other website page that uses this header.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I make the header for this website page local, or change the header of this website page to a header that isn't going to change any other website pages?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've attached a picture to show.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-08-09 160316.png" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/124427i934D2A99D37DF6BC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-08-09 160316.png" alt="Screenshot 2024-08-09 160316.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2024 20:12:11 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Trouble-with-changing-global-header-to-local-header/m-p/1024911#M40231</guid>
      <dc:creator>DWellner</dc:creator>
      <dc:date>2024-08-09T20:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with changing global header to local header</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Trouble-with-changing-global-header-to-local-header/m-p/1024974#M40232</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/710812"&gt;@DWellner&lt;/a&gt;&amp;nbsp;- I'm going to have to make a few assumptions here about how your theme and templates are set up. Bearing that in mind:&lt;/P&gt;
&lt;P&gt;- The theme/template for the page you are trying to set up probably has explicit or implicit references to a 'global partial' header file which is shared across the other page(s) in the site. The start of the template may look like this, bringing in the common base.html elements:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;!--
  templateType: page
  isAvailableForNewContent: true
  label: Basic web page
--&amp;gt;
{%- extends "./layouts/base.html" -%}
{%- block body -%}
&amp;lt;main id="main-content" class="body-container-wrapper"&amp;gt;
...
 &lt;/LI-CODE&gt;
&lt;P&gt;- This template file may live in either you master theme folder layout or have been contructed as a part of your working child theme.&lt;/P&gt;
&lt;P&gt;- Similarly the header "partial" template may be in the master file folders&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In you child theme, you will need to set up a distinct header partial. Typically you would clone this from a master theme partial file to the child theme, change the file name, and make the required changes as you set it up. It probably will contain code that looks like:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;!--
    templateType: global_partial
    isAvailableForNewContent: false
    label: Page Header
--&amp;gt;
&amp;lt;!-- Begin partial --&amp;gt;
&amp;lt;header id="lp-header" itemscope itemtype="http://schema.org/WPHeader" style="background-color: #f1f2f2;" class="header"&amp;gt;
  &amp;lt;div style="height: 130px;" class="page-center header-padding;"&amp;gt;
    &amp;lt;div style="float:left; vertical-align: bottom !important;"&amp;gt;
      {% module "logo_one" path="@hubspot/logo", label="Logo 1" %}
...&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To construct your new page template - with the variant header - you probably will clone the existing page template from the master theme, give it a new name/label, and then go in and edit the header partial reference to bring in your new header design. For example:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;!--
  templateType: page
  isAvailableForNewContent: true
  label: Page with special header
--&amp;gt;
{% extends "./layouts/base.html" %}

{% block header %}
  {% global_partial path="./partials/new_special_header.html" %}
{% endblock header %}
...&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have got this far :), you can go into your page editor and select the new template for your page - with the freedom to edit both page content and its specific header content without having those changes impact other elements of your site.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Sat, 10 Aug 2024 00:02:51 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Trouble-with-changing-global-header-to-local-header/m-p/1024974#M40232</guid>
      <dc:creator>SteveHTM</dc:creator>
      <dc:date>2024-08-10T00:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with changing global header to local header</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Trouble-with-changing-global-header-to-local-header/m-p/1027446#M40286</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/710812"&gt;@DWellner&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HubSpot does not provide the option to convert global modules into local modules from the Design Manager or Page Editor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, you can convert it using the HubSpot CLI. This means you'll need to fetch your theme (with the global module) and update the "global" variable to false.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GiantFocal_0-1723703820159.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/124854i30BE3BFA47D78FA6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GiantFocal_0-1723703820159.png" alt="GiantFocal_0-1723703820159.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once updated, you can re-upload the module back to HubSpot.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Abraham Ernesto&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2024 06:42:57 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Trouble-with-changing-global-header-to-local-header/m-p/1027446#M40286</guid>
      <dc:creator>GiantFocal</dc:creator>
      <dc:date>2024-08-15T06:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with changing global header to local header</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Trouble-with-changing-global-header-to-local-header/m-p/1027582#M40291</link>
      <description>&lt;P&gt;This isn't exactly what worked for me but it helped me figure it out! The website I'm currently working with isn't even using themes due to how it was set up by a previous agency. What I did was duplicate the header template, and then go into the coding for that specific page in the design manager and change the header for the page to the new duplicated version of the header.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know that might sound confusing since I don't know the technical language but that's the best I can explain it based on my knowledge.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I'm just trying to figure out how to change the logo in this header to a different logo but I think this should be easier to figure out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2024 12:59:29 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Trouble-with-changing-global-header-to-local-header/m-p/1027582#M40291</guid>
      <dc:creator>DWellner</dc:creator>
      <dc:date>2024-08-15T12:59:29Z</dc:date>
    </item>
  </channel>
</rss>

