Announcement

#1 2016-10-07 22:36:33

spacres
Member
2016-10-06
7

How to

Hi,

Hope this is the right place for this question.
I have a 2 word title for my photo gallery, and I want the 2nd word a different color.
how do I do that using the default 'clear' template?

example :
I want the word 'photo' to be black and the word 'gallery' to be red.

I tried <font color="black">Photo</font><font color="#DE3D0E"> Gallery</font>
But of course the html shows up in the header and i dont want that.

thanks for your thoughts on this.

Piwigo version: 2.8.2
PHP version: 5.4.45
MySQL version: 5.6.33

Last edited by spacres (2016-10-08 01:10:51)

Offline

 

#2 2016-10-08 06:04:28

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7207

Re: How to

Hi :-)

spacres wrote:

I tried <font color="black">Photo</font><font color="#DE3D0E"> Gallery</font>

You can test

<span style:{color: black;}>Photo</span><span style:{color: #DE3D0E;}> Gallery</span>


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#3 2016-10-08 06:24:24

spacres
Member
2016-10-06
7

Re: How to

Hi ddtddt,
thanks for your reply.

I tried your code but it does not work when used in the
configuration > general > basic settings - gallery title.

(it is the "%gallery_title%" part that i am referring to)

mine does work, it does change the color of the 2 words on the top of the main page,
but at the top of the browser window/tab instead of  "Photo Gallery" it shows like this

<font color="black">Photo</font><font color="#DE3D0E"> Gallery</font>

in IE 8, opera and firefox.

Last edited by spacres (2016-10-08 07:36:17)

Offline

 

#4 2016-10-08 08:34:31

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7207

Re: How to

Hi :)

You can replace "%gallery_title% by real title


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#5 2016-10-08 10:53:17

spacres
Member
2016-10-06
7

Re: How to

Hi ddtddt,

Thanks for the tip, Id did help me resolve the issue & now it works fine.
=)

I also had the FCK Editor extension installed, made it easy to edit the h1 code.
I added <h1><font color="black">Photo</font><font color="#DE3D0E"> Gallery</font></h1>

in raw mode with FCK Editor then copied 'Photo Gallery' to the Basic settings > Gallery title
and it worked perfectly.
I now have 'Photo' in black and 'Gallery' in red & its displaying "Photo Gallery" in all browsers to.
(without the html code this time)

thank you, it is good that it matches the rest of my website pages.

Last edited by spacres (2016-10-08 10:54:00)

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact