Topic Closed
cs
80 Posts

Hi everyone,

is there any chance to get something like a "strip_tags" to the head's title-tag?

I use the configuration's "page-titel" to design the (navbar-)brand appearance a little bit, but the inserted style-attribute will than appear in the browser's tab or title bar. With the "strip_tags" it will be gone there, but the brand is still well modified.

For the time beeing, it works when manually changing "/include/tool/Output.php" line 1354., but only until next update...

What can I do to place this request?

Thanks

/CS

 

2 years ago#10357

juergen
1.4K Posts
52.8K Downloads
16 Plugins
design, web development & visual effects

I'd say the title isn't meant to contain HTML markup.

But

A) We have a plugin filter hook 'MetaTitle' to modify the title (see here). You can use it in a theme as well.

B) You might want to change template.php and replace
<?php
  global $config;
  echo common::Link('',$config['title'],'','class="navbar-brand"');
?>

with

<?php \gp\tool\Output::Get("Extra", "Brand"); ?>

Create a new Extra Content Area 'Brand' and edit on page.

Edited: 2 years ago#10358

cs
80 Posts

... isn't meant to contain ...

Yes, that is right, but If someone uses it this way :-) the "strip_tags" would be a good and safe way to clean that up and prevent from looking ugly. Never mind... I will try the hook approach.

Thanks /cs

 

2 years ago#10359

juergen
1.4K Posts
52.8K Downloads
16 Plugins
design, web development & visual effects
On the other hand, it won't hurt. Therefore, added.
2 years ago#10360

Topic Closed

 

News

elFinder 2.1.50 in Upcoming Release
12/28/2019

A new release for Typesetter is in the works with a lot of improvements including the ... Read More

Typesetter 5.1
8/12/2017

Typesetter 5.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More

More News

HH-Support

Company located in T├│rshavn, Faroe Islands. * Webpage Design * ReadSpeaker Distribution Partner * Consultant & Provider of a wide range of programs for visually impaired ...

Find out more about our Provider Spotlight

Log In

  Register