By newmediaist on
I'd like to change the "Add new Comment" text link to an button, but can't figure out how to do it. Can anyone point me in the right direction?
Thanks
I'd like to change the "Add new Comment" text link to an button, but can't figure out how to do it. Can anyone point me in the right direction?
Thanks
Comments
I'd like to know this too,
I'd like to know this too, but for 6!
...
I wrote a short tutorial on how to do this using image replacement.
I'll repeat it here to save you the hassle of clicking through.
Use Icons for Node and Comment Links
A lot of people want to replace the boring links text with sexy icons. The easiest way to get this done is using an accessible image replacement technique. There are lots of IR methods that have been developed over the years and I'm going to show you one that I use all the time and works in all browsers, and most importantly is accessible to screen readers.
All the core links have a unique class, for example:
We can use the class to target a specific link with a unique icon, then apply the IR method to move the text out of the browser viewport.
The code
Lets replace the "Add New Comment" link with our sexy icon. The IR method I am using here is known as the Phark Method and is credited to a chap named Mike Rundle.
As you will see we are now floating the list items, this might cause a clearing issue, if so you can apply the
clear-blockclass to the lists containing block element, usually a DIV, for example:Of course you can use this for comment links as well, and for just about any other text you want to replace.
Pimp your Drupal 8 Toolbar - make it badass.
Adaptivetheme - theming system for people who don't code.