Re: Template Header and Footer not appearing on mobile

Anonymous
Not applicable

Template Header and Footer not appearing on mobile

Hi Community,

I have a landing page template with our business' logo in the header and additional information in the footer. When I view the landing page in my mobile device, or even with the mobile preview within Marketo, the header and footer does not appear. Does someone know why this is and how can I ensure that the header and footer do appear on mobile?

Thanks!

Jenny

4 REPLIES 4
Jay_Jiang
Level 10

Re: Template Header and Footer not appearing on mobile

Hi without looking at the page, it'd be too hard to guess. Can you publish the page or a clone of the page and share the link?

Anonymous
Not applicable

Re: Template Header and Footer not appearing on mobile

Hi Jay,

I inspected the code and noticed that it’s set to hide the header logo on Mobile. See below. How can I change this to have it visible. Just to preface, I have very little HTML, CSS skills.

Capture.PNG

Thanks!
Jenny

Justin_Laberge1
Level 4

Re: Template Header and Footer not appearing on mobile

Hi Jenny,

The easiest way is to edit the CSS file for the landing page - but I'm not sure if the CSS was inline (found in the actual landing page code) or linked from elsewhere.

You can scroll through the CSS to find media queries which looks something like:

"@media only screen and (max-width: 1280px) {

(normal css here)

}"

They are usually found towards the bottom of the CSS file. And you'll want to look for something like:

div.mktoMobileHide {

display:none;

}

And remove it, or comment it (/* csshtml here */). Now before you do any of this, make sure to back up your original HTML/css file in a notepad or html editor and save it locally. Even better, clone everything you are working on to test it.

Hope this helps

Jay_Jiang
Level 10

Re: Template Header and Footer not appearing on mobile

Can you confirm if your template doesn't have a on/off setting for something like "Hide in Mobile"

pastedImage_0.png

There's always the option to edit your template. You'd probably want to clone the template and remake the landing page so you don't affect any other pages that already exist.

Once you're in the template editor, I'd first try to remove any mktoMobileHide classes where you don't want the section hidden. Use CTRL + F to find mtkoMobileHide and delete it in between " " leaving any other classes remaining.

However if your template isn't as straightforward then you can paste the following CSS into your template which will cause all mktoMobileHide areas to show... which may cause unwanted side effects:

<style>

.mktoMobileHide {display:block!important}

</style>