How to fix spacing in the global footer?

I’m trying to fix the spacing between the menu items and the email subscription box (I included a screenshot and shareable link). It seems these are global settings which don’t seem to have a toggle or anything to support the spacing.

Is there something I can add to the code or a setting I’m missing in Hubspot that will allow me to align the footer menus a bit more to the left.

https://510865.hubspotpreview-na1.com/_hcms/preview/content/74733416543?portalId=510865&_preview=true&cacheBust=1670602539373&env=prod&injectedScripts=hubspot-dlb%2Cbundle.production.js%2Cfalse%2Cstatic-1.332&preview_key=yQxaMWCf&custom_widget_id=43161478967&bufferedGlobalContentId=43239272600&is_buffered_template_layout=true&isPreview=true&tc_deviceCategory=desktop

Any support/help is much appreciated.

Thank you,

Webryact

Hi @Webryact,

Thank you for reaching out to the Community!

Just to confirm, you’d like to increase the space between these two elements in your website footer?

You should be able to update your global footer in the design manager (Marketing>Files and Templates>Design Tools**)**, as described in this help article.

Let us know which changes you’d like to make! Thank you!

Cheers
Mia, Community Team

Hi @MiaSrebrnjak ,

Thank you for your response. I actually tried that link and method first, but realized that the Global Footer that is being used was written out in HTML. When I tried editing the footer content in the method you mentioned it seemed that the footer wasn’t connected to it and rather this code snippet below. Do we have to update the code in this situation or is there another work around?

{% macro form() %}
	{% if module.start_here.show_footer_form %}
	<div class="footer-block__form">

			{#% form
				form_to_use=""
				response_response_type="{{ module.basic_footer_options.form.footer_form.response_type }}"
				response_message="{{ module.basic_footer_options.form.footer_form.message }}"
				response_redirect_id="{{ module.basic_footer_options.form.footer_form.redirect_id }}"
				response_redirect_url="{{module.basic_footer_options.form.footer_form.redirect_url}}"
				gotowebinar_webinar_key="{{ module.basic_footer_options.form.footer_form.gotowebinar_webinar_key }}"
			%#}

		<div class="hubForm" id="form{{ name|md5 }}"></div>
		<script>
			if('IntersectionObserver' in window){
 const formObserver = document.querySelector('#form{{ name|md5}}');

 let options = {
 root: null,
 rootMargin: '0px',
 threshold: 0
 }

 let callback = function(entries, observer) {
 entries.forEach(entry => {

 if (entry.intersectionRatio > 0) {
// console.log('In View');
 function hsFormInit() {

 let formID = "";
 let targetID = "";

 hbspt.forms.create({
 portalId: '510865',
 formId: "{{ module.basic_footer_options.form.footer_form.form_id }}",
 target: "#form{{name|md5}}",
 css: " "
 });
 }

 var LtIE = `<!--[if lte IE 8]><script id="formLegacyScript" onload="hsFormInit()" charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2-legacy.js"></script><![endif]-->`;
 document.head.append(LtIE);

 var hubFormScript = document.createElement("script");
 hubFormScript.id = "formScript";
 hubFormScript.src='//js.hsforms.net/forms/v2.js';
 hubFormScript.addEventListener("load", function(event) {
 hsFormInit();
 });
 document.head.append(hubFormScript);

 observer.unobserve(entry.target);
 }

 });
 };

 let observer = new IntersectionObserver(callback, options);

 observer.observe(formObserver);
 } else {
 setTimeout(
 hbspt.forms.create({
 portalId: "510865",
 formId: "{{ module.basic_footer_options.form.footer_form.form_id }}",
							target: "#form{{name|md5}}",
 })
 , 3000);
 }

		</script> 

	</div>
	{% endif %}
{% endmacro %}

{% macro text() %}

	{% if module.start_here.show_footer_text %}
		{% if module.start_here.translate_module %}
			{% for item in module.translated_items.other_languages %}
				{% if item.language_code == i18n_getlanguage() %}
					<div class="footer-block__text">
						{{ item.footer_text }}
					</div>
				{% endif %}
			{% endfor %}
			{% if i18n_getlanguage() == module.translated_items.default_language_code %}
				<div class="footer-block__text">
					{{ module.basic_footer_options.footer_text }}
				</div>
			{% endif %}
		{% else %}
			<div class="footer-block__text">
				{{ module.basic_footer_options.footer_text }}
			</div>
		{% endif %}
	{% endif %}

{% endmacro %}

{% macro menu() %}
	<div class="footer-block__nav">
		{% if module.start_here.translate_module %}
			{% for item in module.translated_items.other_languages %}
				{% if item.language_code == i18n_getlanguage() %}
					<nav class="footer-block__menu footer-block__menu--1 {% if module.start_here.show_footer_menu_2 %}footer-block__menu--vertical{% endif %}" aria-label="{{menu_name}} menu">
						{% simple_menu menu_tree="{{ item.translated_menus.menu_1 }}", no_wrapper=True %}
					</nav>

					{% if module.start_here.footer_style == '2' %}	
					<nav class="footer-block__menu footer-block__menu--1 footer-block__menu--vertical" aria-label="{{menu_name}} menu">
						{% simple_menu menu_tree="{{ item.translated_menus.menu_2 }}", no_wrapper=True %}
					</nav>
					{% endif %}
				{% endif %}
			{% endfor %}
			{% if i18n_getlanguage() == module.translated_items.default_language_code %}
				<nav class="footer-block__menu footer-block__menu--1 {% if module.start_here.show_footer_menu_2 %}footer-block__menu--vertical{% endif %}" aria-label="{{menu_name}} menu">
					{% simple_menu menu_tree="{{ module.basic_footer_options.menus.menu_1 }}", no_wrapper=True %}
				</nav>

				{% if module.start_here.footer_style == '2' %}	
				<nav class="footer-block__menu footer-block__menu--1 footer-block__menu--vertical" aria-label="{{menu_name}} menu">
					{% simple_menu menu_tree="{{ module.basic_footer_options.menus.menu_2 }}", no_wrapper=True %}
				</nav>
				{% endif %}
			{% endif %}
		{% else %}
			<nav class="footer-block__menu footer-block__menu--1 {% if module.start_here.show_footer_menu_2 %}footer-block__menu--vertical{% endif %}" aria-label="{{menu_name}} menu">
				{% simple_menu menu_tree="{{ module.basic_footer_options.menus.menu_1 }}", no_wrapper=True %}
			</nav>

			{% if module.start_here.footer_style == '2' %}	
			<nav class="footer-block__menu footer-block__menu--1 footer-block__menu--vertical" aria-label="{{menu_name}} menu">
				{% simple_menu menu_tree="{{ module.basic_footer_options.menus.menu_2 }}", no_wrapper=True %}
			</nav>
			{% endif %}
		{% endif %}
	</div>
{% endmacro %}

<footer class="footer-block footer-block--{{ module.start_here.footer_style }}">

	{% if module.start_here.footer_style == '1' %}	
		<div class="footer-block__inner">

			{% if module.start_here.show_logo %}
			<div class="footer-block__logo">
				<a href="https://{{ site_settings.companyDomain }}">
					{% if module.basic_footer_options.logos.footer_logo.src %}
					{% set sizeAttrs = 'width="{{ module.basic_footer_options.logos.footer_logo.width }}" height="{{ module.basic_footer_options.logos.footer_logo.height }}"' %}
					{% set loadingAttr = module.basic_footer_options.logos.footer_logo.loading != 'disabled' ? 'loading="{{ module.basic_footer_options.logos.footer_logo.loading }}"' : '' %}
					<img src="{{ module.basic_footer_options.logos.footer_logo.src }}" alt="{{ module.basic_footer_options.logos.footer_logo.alt }}" loading="lazy" {{ sizeAttrs }}>
					{% endif %}
				</a>
			</div>
			{% endif %}

			{{ menu() }}

			{{ form() }}

		</div>
	{% elif module.start_here.footer_style == "2" %}

		<div class="footer-block__inner">
			<div class="footer-block__info">
				{% if module.start_here.show_logo %}
				<div class="footer-block__logo">
					<a href="https://{{ site_settings.companyDomain }}">
						{% if module.basic_footer_options.logos.footer_logo.src %}
							{% set sizeAttrs = 'width="{{ module.basic_footer_options.logos.footer_logo.width }}" height="{{ module.basic_footer_options.logos.footer_logo.height }}"' %}
							{% set loadingAttr = module.basic_footer_options.logos.footer_logo.loading != 'disabled' ? 'loading="{{ module.basic_footer_options.logos.footer_logo.loading }}"' : '' %}
						<img src="{{ module.basic_footer_options.logos.footer_logo.src }}" alt="{{ module.basic_footer_options.logos.footer_logo.alt }}" loading="lazy" {{ sizeAttrs }}>
						{% endif %}
					</a>
				</div>
				{% endif %}
				{% if module.start_here.show_address %}
					<div class="footer-block__address">
						<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18.281 23.495"><path class="a" d="M30.586,13.3a9.151,9.151,0,0,0-9.141,9.144c.056,8.574,8.425,14.018,8.782,14.246a.666.666,0,0,0,.718,0c.356-.228,8.725-5.671,8.782-14.25A9.151,9.151,0,0,0,30.586,13.3Zm0,12.475a3.335,3.335,0,1,1,3.335-3.335A3.339,3.339,0,0,1,30.586,25.776Z" transform="translate(-21.445 -13.3)"/></svg>
						<span>{{ module.secondary_options.address }}</span>
					</div>
				{% endif %}
				{% if module.start_here.show_phone_number %}
					<div class="footer-block__phone">
						<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20.814 20.814"><g transform="translate(-0.007)"><path class="a" d="M4.792,16.348l1.7-1.966a.811.811,0,0,0,.041-1.019l-2.424-3.3a.806.806,0,0,0-.89-.3A4.14,4.14,0,0,0,.367,15.578,22.323,22.323,0,0,0,12.941,28.152,4.14,4.14,0,0,0,18.763,25.3a.8.8,0,0,0-.3-.89l-3.3-2.424a.809.809,0,0,0-1.019.041l-1.966,1.7a15.847,15.847,0,0,1-7.381-7.381Z" transform="translate(0 -7.698)"/><path class="b" d="M57.277,9.923a.857.857,0,1,0,1.714,0A9.922,9.922,0,0,0,49.068,0a.857.857,0,0,0,0,1.714,8.209,8.209,0,0,1,8.209,8.209Z" transform="translate(-38.17)"/><path class="b" d="M53.942,22.608a.857.857,0,0,0,1.714,0,6.591,6.591,0,0,0-6.589-6.589.857.857,0,1,0,0,1.714,4.878,4.878,0,0,1,4.875,4.875Z" transform="translate(-38.17 -12.685)"/><path class="b" d="M50.62,35.3a.855.855,0,0,0,1.71,0,3.248,3.248,0,0,0-3.255-3.255.855.855,0,0,0,0,1.71,1.549,1.549,0,0,1,1.54,1.54Z" transform="translate(-38.179 -25.376)"/></g></svg>
						<span><a href="tel:+1{{ module.secondary_options.phone_number|regex_replace("[^A-Za-z0-9]","") }}">{{ module.secondary_options.phone_number }}</a></span>

					</div>
				{% endif %}
				{% if module.start_here.show_social_icons %}
					<div class="footer-block__social social-share">
						{% for item in module.secondary_options.social_media %}
						<a href="{{ item.url_field.href }}" class="social-share__item">
							{% if item.social_media_icon.src %}
								{% set sizeAttrs = 'width="{{ item.social_media_icon.width }}" height="{{ item.social_media_icon.height }}"' %}
								<img src="{{ item.social_media_icon.src }}" 
									 alt="{{ item.social_media_icon.alt }}" 
									 class="social-share__icon"
									 loading="lazy" {{ sizeAttrs }}>
							{% endif %}
						</a>
						{% endfor %}
					</div>
				{% endif %}
			</div>

			{{ menu() }}

			{{ form() }}

		</div>
	{% elif module.start_here.footer_style == "3" %}	
		<div class="footer-block__inner">
			{% if module.start_here.show_logo %}
			<div class="footer-block__logo">
				<a href="https://{{ site_settings.companyDomain }}">
					{% if module.basic_footer_options.logos.footer_logo.src %}
						{% set sizeAttrs = 'width="{{ module.basic_footer_options.logos.footer_logo.width }}" height="{{ module.basic_footer_options.logos.footer_logo.height }}"' %}
					<img src="{{ module.basic_footer_options.logos.footer_logo.src }}" alt="{{ module.basic_footer_options.logos.footer_logo.alt }}" loading="lazy" {{ sizeAttrs }}>
					{% endif %}
				</a>
			</div>
			{% endif %}
		</div>
	{% endif %}

	{{ text() }}

</footer>

Thank you,

Webryact