hakyangler Active member Feb 4, 2025 #1 Hello ; how can I make the "follow" text appear when I hover over the icon with the mouse, as in the example picture?
Hello ; how can I make the "follow" text appear when I hover over the icon with the mouse, as in the example picture?
Solution bzcomputers Feb 4, 2025 You need to add "title" attribute to you link tag. The title will then be what appears on hover of the icon/link. HTML: <a title="Follow XXX On YouTube" href="https://www.youtube.com/XXX/" target="_blank" rel="nofollow noopener"><i class="fab fa-youtube" data-xf-init="icon"></i></a>
You need to add "title" attribute to you link tag. The title will then be what appears on hover of the icon/link. HTML: <a title="Follow XXX On YouTube" href="https://www.youtube.com/XXX/" target="_blank" rel="nofollow noopener"><i class="fab fa-youtube" data-xf-init="icon"></i></a>
bzcomputers Well-known member Feb 4, 2025 #2 You need to add "title" attribute to you link tag. The title will then be what appears on hover of the icon/link. HTML: <a title="Follow XXX On YouTube" href="https://www.youtube.com/XXX/" target="_blank" rel="nofollow noopener"><i class="fab fa-youtube" data-xf-init="icon"></i></a> Upvote 1 Downvote Solution
You need to add "title" attribute to you link tag. The title will then be what appears on hover of the icon/link. HTML: <a title="Follow XXX On YouTube" href="https://www.youtube.com/XXX/" target="_blank" rel="nofollow noopener"><i class="fab fa-youtube" data-xf-init="icon"></i></a>
hakyangler Active member Feb 4, 2025 #3 bzcomputers said: You need to add "title" attribute to you link tag. The title will then be what appears on hover of the icon/link. HTML: <a title="Follow XXX On YouTube" href="https://www.youtube.com/XXX/" target="_blank" rel="nofollow noopener"><i class="fab fa-youtube" data-xf-init="icon"></i></a> Click to expand... thank you, it worked for me, now I can beautify it with some css. Upvote 0 Downvote
bzcomputers said: You need to add "title" attribute to you link tag. The title will then be what appears on hover of the icon/link. HTML: <a title="Follow XXX On YouTube" href="https://www.youtube.com/XXX/" target="_blank" rel="nofollow noopener"><i class="fab fa-youtube" data-xf-init="icon"></i></a> Click to expand... thank you, it worked for me, now I can beautify it with some css.
bzcomputers Well-known member Feb 4, 2025 #4 This may help you get started with the css... CSS: a { position: relative; display: inline-block; } a[title]:hover:after { content: attr(title); position: absolute; text-align: center; padding: 5px; width: 100%; color: #ffffff; background: #000000; border-radius: 10px; top: 100%; left: 0; } Upvote 0 Downvote
This may help you get started with the css... CSS: a { position: relative; display: inline-block; } a[title]:hover:after { content: attr(title); position: absolute; text-align: center; padding: 5px; width: 100%; color: #ffffff; background: #000000; border-radius: 10px; top: 100%; left: 0; }
hakyangler Active member Feb 4, 2025 #5 a small addition from me, this is the result for friends who need it in the future. this way, there is no need to add css. Code: data-xf-init="tooltip" Code: <a title="Follow XXX On YouTube" href="https://www.youtube.com/XXX/" target="_blank" data-xf-init="tooltip" rel="nofollow noopener"><i class="fab fa-youtube" data-xf-init="icon"></i></a> Upvote 0 Downvote
a small addition from me, this is the result for friends who need it in the future. this way, there is no need to add css. Code: data-xf-init="tooltip" Code: <a title="Follow XXX On YouTube" href="https://www.youtube.com/XXX/" target="_blank" data-xf-init="tooltip" rel="nofollow noopener"><i class="fab fa-youtube" data-xf-init="icon"></i></a>