How to remove placeholder text from the browser's Reader View?

Level 2

How to remove placeholder text from the browser's Reader View?

A few months ago we noticed that our MKTO pages, which use a Guided LP template, show the placeholder text of modules that are turned off/not live on the page when viewing the page in the browsers Reader View. The suggestion we got from MKTO support was to remove the placeholder content (Lorem Ipsum text) from all modules that we are not using on the live page which is doable but a bit cumbersome given how many landing pages we have and create on an almost daily basis. Essentially we want to prevent any modules that are not used on the page currently from showing up in the Reader View. I was wondering if anyone has run into that same scenario and maybe found a solution for it?

 

Nadine

3 REPLIES 3
Level 10 - Community Moderator

Re: How to remove placeholder text from the browser's Reader View?

On a Guided LP — unlike in an email — "not used" can only mean that you're hiding the HTML element using CSS, right? So it's still in the page.

 

Reader View (using Firefox as an example)  is remarkably dependent on guesswork. It tries to distinguish your primary "article" content from content that's disposable in the context of reading (nav bars, comment sections, etc.). But it doesn't have one strict rule for what it includes and excludes; rather, it tries a few different heuristic, weight-based methods to find stuff to include.

 

Anyway — and I need to work up a blog post on this — you can start by having a mktoBoolean that adds the HTML hidden attribute to the element if it's not used. Yes, this means your authors need to set that boolean to really hide an element.

 

Level 2

Re: How to remove placeholder text from the browser's Reader View?

Thanks, Sanford. I will give that a try. Looking forward to reading you blog post on this.

Level 10 - Community Moderator

Re: How to remove placeholder text from the browser's Reader View?

It's coming. But if you DM me I can show you the approach that'll be in the post. It would be good to have someone else test it before publication anyway.