Hello,

I created a field with the Link Module. The field automatically gets filled by importing a csv with the feeds module.

The link module does output the link in the node, thats not the problem. What i want is the link module to output a standard button (like for example ubercart with the add to cart button does) instead of a text link.

Probably have to change some code.. but i dont know how. Any one can help?

CommentFileSizeAuthor
#3 link_add_css_class.png21.86 KBjkingsnorth

Comments

jcfiala’s picture

In a lot of themes, using a class of 'button' on a link makes the link look like a button - try adding the button class to the link field in the field's configuration.

If this does what you want, let us know and we can close this. If it doesn't, maybe you could give a bit more detail on what you need?

joshualoman’s picture

Thats exactly what i need! But where exactly do i add the "button" class?

jkingsnorth’s picture

Title: Button instead of textlink. » Display link as button instead of text link
Category: Task » Support request
Issue summary: View changes
Status: Active » Closed (fixed)
StatusFileSize
new21.86 KB

You can add a class to the link by editing the field (Structure > Content types > X > Manage fields > Your link field).

About halfway down the settings page is the 'Additional CSS Class' option. Type 'button' in here. (Screenshot attached).

If that doesn't work you could use custom CSS to style the link, perhaps writing your own 'button' class.

(Marking as closed fixed since this is an old issue, please reopen if you still need assistance.)