Modify CSS info box

Phoca Maps - displaying maps in Joomla! CMS
d-force
Phoca Member
Phoca Member
Posts: 10
Joined: 04 Jan 2010, 22:22

Modify CSS info box

Post by d-force »

Hi to everybody,

I kindly ask you if there is a possibility to modify the css file for the info box that we see once we click on a marker on the map.

If in the article that display the map there is already an <h1> tag, the infobox of a marker will display the name with <h1> css of the article.

It's possible to change the format of the "info box"?

Thanks! :wink:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48398
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Modify CSS info box

Post by Jan »

Hi, you can modify it in the code, see:
components\com_phocamaps\views\map\tmpl\default.php

Jan
If you find Phoca extensions useful, please support the project
d-force
Phoca Member
Phoca Member
Posts: 10
Joined: 04 Jan 2010, 22:22

Re: Modify CSS info box

Post by d-force »

Thank you Jan, I will have alook there! :|
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48398
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Modify CSS info box

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
d-force
Phoca Member
Phoca Member
Posts: 10
Joined: 04 Jan 2010, 22:22

Re: Modify CSS info box

Post by d-force »

Hi Jan, I couldn't able to modify the aspect of "info box".

In the file you suggested me I have found the following items:

// Check values

// Design

// Plugin - no border

// Map Box (maybe is this?)

Could you help me? Thanks a lot!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48398
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Modify CSS info box

Post by Jan »

Hi, you should find the h1 tag and change to your own.

Jan
If you find Phoca extensions useful, please support the project
d-force
Phoca Member
Phoca Member
Posts: 10
Joined: 04 Jan 2010, 22:22

Re: Modify CSS info box

Post by d-force »

Jan wrote:Hi, you should find the h1 tag and change to your own.

Jan
Its seems there is no <h1> tag in the whole component.... :shock:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48398
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Modify CSS info box

Post by Jan »

Hi, yes there is, in this file:
components\com_phocamaps\views\map\tmpl\default.php

line 296

Jan
If you find Phoca extensions useful, please support the project
d-force
Phoca Member
Phoca Member
Posts: 10
Joined: 04 Jan 2010, 22:22

Re: Modify CSS info box

Post by d-force »

OK I found it... :oops:

And what about to configure dimensions of infobox? Is that possible?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48398
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Modify CSS info box

Post by Jan »

Hi, this depends on the conent, so you can try to set dimensions in editor (some limitation will be set by Google API, maybe :idea: )
If you find Phoca extensions useful, please support the project
Post Reply