Frank
Posts: 0
Joined: Wed Feb 01, 2012 4:10 pm

Second line in header

Hi there,

I want to add a second line to the header with the jQuery command

$('h1').first().append('h3SubTitle/h3');

This line is executed with the screen load event, but nothing happens...

BTW:

$('h1').first().text('Title').append('h3SubTitle/h3');

will change the header caption to title, so the first part must be correct.

Thx for your support

Regards
Frank

Frank
Posts: 0
Joined: Wed Feb 01, 2012 4:10 pm

Second line in header

ok - the h3's are removed while uploading in the subtitle ;-)

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Second line in header

Both ways worked for me. Did you get it working?

Frank
Posts: 0
Joined: Wed Feb 01, 2012 4:10 pm

Second line in header

no - I shared the project 25910 with you...

Sample that's not working is on first screen "scrArbeitsplatz" (load event).
Caption is changed, but no second line is appended...

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Second line in header

code
$('h1').first().text('Title').append('
SubTitle
');
/code
this replaces the entire caption because of text('..'). It replaces the current value and then sub title is appended.

code
$('h1').first().append('
SubTitle
');
/code
in this case, it's only appended.

Frank
Posts: 0
Joined: Wed Feb 01, 2012 4:10 pm

Second line in header

$('h1').first().append('SubTitle');

works, but what I want is a second line with a smaller font (see my first reply)
This was my initial question:

$('h1').first().append('<h3>SubTitle</h3>');

and

$('h1').first().append('<br>SubTitle');

also works.

My suggestion is, that the default padding/margin for the h-tags is too big so that the second h-line will shown outside the header...

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Second line in header

We are going to make it possible to place any components inside the header/footer so you will get a lot more control over it.

Return to “Issues”