Page Titles

Jun 25, 2014 2:52 pm

Is there a way to prevent the page title from displaying as an h1 at the tops of web pages? Ideally, I would like the ability to prevent this on specific pages, as opposed to a blanket rule. Thanks!

Jun 26, 2014 4:27 pm

Hi daveb,

One way we've done this is by using the subtitle field to act as a trigger to hide the webpage title, by wrapping those two tags with a condition in the webpage detail layout. If the subtitle field is equal to 'hide', then we don't want to show either the H1 (title) or H2 (subtitle). So our statement could look like this:

<if [[subtitle]] != "hide">
<if [[title]]><h1>[[title]]</h1></if>
<if [[subtitle]]><h2>[[subtitle]]</h2></if>

Hope this helps!

Jun 26, 2014 4:38 pm

Nice! Thanks!

Jul 2, 2014 10:15 am

Great tip Brian. I actually used this today. Thanks.