- Posts: 4
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
- miracle
-
Topic Author
- New Member
-
Less
More
IP: 83.87.180.136
13 years 4 months ago #2618
by miracle
Icon for city and other fields was created 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...
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...
- admin
-
- Administrator
-
Less
More
- Posts: 1931
IP: 207.229.172.231
13 years 4 months ago #2623
by admin
Olivier.
Replied by admin on topic Re: Icon for city and other fields
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.
This will add your icon to the component. Add this code to your template's stylesheet.
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;
}
Olivier.
- miracle
-
Topic Author
- New Member
-
Less
More
- Posts: 4
IP: 83.87.180.136
13 years 3 months ago #2769
by miracle
Replied by miracle on topic Re: Icon for city and other fields
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.
See attached the code according Firebug.
- admin
-
- Administrator
-
Less
More
- Posts: 1931
IP: 207.229.172.231
13 years 3 months ago #2773
by admin
Olivier.
Replied by admin on topic Re: Icon for city and other fields
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!
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.
