Page 1 of 1

HOW TO CUSTOMIZE THE BUTTON "View panorama"

Posted: 24 May 2019, 21:27
by todi4444
Hello everyone! I want to ask how can I edit the blue button "View Panorama".
I want to change:
the text,
the color and
align to the center of the thumb.


Any ideas of which code if for it? Thank you!

Re: HOW TO CUSTOMIZE THE BUTTON "View panorama"

Posted: 25 May 2019, 10:21
by Benno
Hi,
Text: Do a language override of this constant: COM_PHOCAPANORAMA_VIEW_PANORAMA
or edit this string: COM_PHOCAPANORAMA_VIEW_PANORAMA="View Panorama"
directly in en-GB.com_phocapanorama.ini
The rest should be done via css.

Kind regards,
Benno

Re: HOW TO CUSTOMIZE THE BUTTON "View panorama"

Posted: 27 May 2019, 20:12
by todi4444
Thank you very much! I did the override. But I am searching for days the css code but nothing changes the alignment and the color of the button.. Please advice me which file or code is resposible for the change of the button.. please...

Re: HOW TO CUSTOMIZE THE BUTTON "View panorama"

Posted: 27 May 2019, 20:28
by Jan
Hi, if you want to stylize the button with CSS, you can add such CSS to your template CSS (best into custom.css) so it is loaded as last and can override all previous settings.

Jan

Re: HOW TO CUSTOMIZE THE BUTTON "View panorama"

Posted: 27 May 2019, 21:00
by todi4444
with which code I will refer only to the styling of the button?

Re: HOW TO CUSTOMIZE THE BUTTON "View panorama"

Posted: 27 May 2019, 21:05
by Jan
Hi, mostly this cannot be said without seeing the code e.g. with Google Web Developer Tool - there can be more CSS which can stylize buttons so the best way ist just inspect the element in Google Chrome to get info, which class needs to be overridden:

Image
(example - right click on the button in Google Chrome and click on Inspect so you can see the info about styling)
Image

Jan