Page 1 of 1

Mobile Header Background

Posted: Fri Jul 17, 2015 4:26 am
by Deon

Hi

Can I use this code to change the Background Header?
$('div[dsid="mobileheader"]').css('background-image', 'url("' + Tiggzi.getImagePath("Congratulations.jpg") + '")');

It works for the content area but does not seem to work for the header.

I know how to change the header background with CSS but the header is dynamic.


Mobile Header Background

Posted: Sun Jul 19, 2015 4:58 pm
by Deon

Any update here please?


Mobile Header Background

Posted: Sun Jul 19, 2015 7:24 pm
by Illya Stepanov

Hi Deon -

No, you will need to use class selector for your jQuery Theme to be able dynamically change background of the header.

Something like this:
pre
&#47;&#47; where &#46;ui-bar-code<is a swatch letter>/code and this class is for both footer and header&#46;
$("&#46;ui-bar-b")&#46;css('background-image', 'url("' + Tiggzi&#46;getImagePath("Congratulations&#46;jpg") + '")');
/pre


Mobile Header Background

Posted: Mon Jul 20, 2015 1:41 pm
by Deon

Thank you. I will give it a try.