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!

Change Icons for Links

More
IP: 65.28.35.254 11 years 8 months ago #4128 by DaveOzric
Hello, I would like to change the icons around a little for the various settings in the Body section.
My client is selling tickets and I am using the Links A for the link to the ticket site. They would like to use that ticket icon you use for one of the other icons (don't recall which one) for the Link A instead. Currently it's a link icon.

It looks like some kind of icon text? Is there a easy way to do an override or..?

Thanks
More
IP: 174.44.39.212 11 years 8 months ago #4130 by admin
Replied by admin on topic Change Icons for Links
Hello!

at this time, I did not put a way to change font icons around (it is in my task list). You cannot override a font icon with another one. But you can override the font icon with an image:
Code:
.SYWicon-link:before { content: ''; background-image: url(/../images/myimage.png); width:16px; height: 16px; display: inline-block; }

The image needs to be in the /images folder of the module.

Note: this example will replace all link font icons...

Olivier.
The following user(s) said Thank You: DaveOzric
More
IP: 65.28.35.254 11 years 8 months ago #4131 by DaveOzric
Replied by DaveOzric on topic Change Icons for Links
I'll give that a shot.

So changing the css to this won't work? Replacing the 6 with the ticket icon text you use in the other?
Just curious.

.SYWicon-link::before, .SYWicon-chain::before {
content: "6";
}
More
IP: 174.44.39.212 11 years 8 months ago - 11 years 8 months ago #4132 by admin
Replied by admin on topic Change Icons for Links
Yes, that should work as well.
It is just a matter of finding out what to put in the 'content' property.
This can be found in fonts.css of the media/syw/css folder

Olivier.
Last edit: 11 years 8 months ago by admin.
The following user(s) said Thank You: DaveOzric
More
IP: 65.28.35.254 11 years 8 months ago #4134 by DaveOzric
Replied by DaveOzric on topic Change Icons for Links
Adding the custom css to the Styles tab area worked. I found an item called ticket in the css file. Thanks!!
More
IP: 174.44.39.212 11 years 8 months ago #4135 by admin
Replied by admin on topic Change Icons for Links
Perfect, glad it worked out :-)

Olivier.