Postings

You can freely browse the forum and post in the community forum.
However, you need a valid license to write posts for support (own a valid commercial software license or have purchased a support membership).

Posts only show once reviewed. This is mainly preventive to keep spam away. Thank you for your understanding!

Icon for city and other fields

More
IP: 83.87.180.136 13 years 4 months ago #2618 by miracle
Hi,

I use icon pack black. I want to add a icon to the field city. I tried to make a con_city.png but that didn't work out. How can I achieve this?

BTW, a field birthday would be nice to add...
More
IP: 207.229.172.231 13 years 4 months ago #2623 by admin
Hello,

first, for the birthday field request: the component does not add fields that are not part of the Joomla! framework at the moment. You can still achieve this by using one of the standard fields and use it for birthdays. It is just a workaround for now.

Now, for the icon: you need to 'tell' the stylesheet that you are using this icon.
Code:
.personsuburb { background: url("../icons/black/con_city.png") no-repeat scroll 0 center transparent; display: inline-block; padding-left: 20px; }
This will add your icon to the component. Add this code to your template's stylesheet.

Olivier.
More
IP: 83.87.180.136 13 years 3 months ago #2769 by miracle
Sorry for the delay. I added the code to custom.css, the place where I add all the custom code according to my template provider (Yootheme). It ain't working.

See attached the code according Firebug.
More
IP: 207.229.172.231 13 years 3 months ago #2773 by admin
No problem for the delay :-)
Thanks for the screenshot, although it shows the html, not the CSS code so it does not help much.
Is there a URL I can look at? Or can you attach a screenshot of the CSS related to the .personsuburb class?
Thanks!

Olivier.