Данный сайт активно использует технологию JavaScript.
Пожалуйста, включите JavaScript в вашем браузере.
Live
PTR
12.0.5
PTR
12.0.1
Бета
WoWHead Tooltips: Show Icon Only
Ответить
Вернуться на главную страницу форума
Сообщение от
Gragoria
Ok I am using the tooltip in various places on my site. What I'm looking for is to have the tooltip act normal when viewing guild news page. When I go to search for a character, I want to only show large icons with no text proceeding the icon. I have tried a few classes but the method my items are going to display is using:
<a href="
http://www.wowhead.com/?item=124634"
class="itemTextHide"><img src="
http://www.wowhead.com/?item=124634"
border="0" /></a>
That is an example, using the same method above minus the img tag then I would like the same result with no proceeding text/item name.
No I do not have a BBCode setup as all links are converted on my site automatically even if used in a forum post. So it picks up the href tag and converts so that is a relief there. But the reason I want to use a CSS class that way I can use it throughout my site where I only want icons to show with no text.
Сообщение от
Gragoria
Still looking at getting this figured out. Suggestions are welcome as well.
Сообщение от
Gragoria
19 days and still no one has any idea. Figured at least someone who knew the ins and outs of the tooltip could give some advice.
Сообщение от
Gragoria
27 days and still looking at any insight into this.
Сообщение от
ItzFeral
I have been searching around but couldn't find an answer on this. Can I only use the Icon or even position the text to the left of the icon with the tooltips?
Сообщение от
Jerek
Wow, how did this ancient post never get a response. My apologies to Gragoria, though they're unlikely to see this response at this point. Here's some general information on how to configure our tooltip options for icons and renaming text:
In the whTooltips options you can include or exclude renameLinks: true or iconizeLinks: true to determine whether icon additions or link renaming happens.
If you want to control a specific link being renamed, add the HTML attribute data-wh-rename-link="true" or data-wh-rename-link="false".
If you want to control the icon that a link gets, add the HTML attribute data-wh-icon-size="SIZENAME" where "SIZENAME" is one of "tiny", "small", "medium", or "large", but to use a size other than "tiny" you'll need to include the "iconSize" option in the whTooltips option, whether it's specifying a size like iconSize: 'small' or just setting iconSize: true to load our icon library without a default.
There's no option for changing what side the icon appears on. If you want the text to the left of the icon the only way to do that is to have two links: one where the rename happens, followed by one where an icon is added to a link that has no text.
Ответить
Вы не авторизованы.
Войдите
или
зарегистрируйтесь
, чтобы оставить сообщение.