Skip to main content
Known Participant
Jan 4, 2018 5:06 PM UTC
Question

Adding a hyperlink to a DIV in the RH2017 interface

Hi all,

We have a custom button set up as a div. I can add the div to what would be the button text easily enough, but I can't find a way to link it without just going into the code.  That is, it won't let me attach a hyperlink to a DIV.

Is there some trick to this I'm not seeing? I could swear I've done this before...

Thanks!

Christian

This topic is closed to new replies. Start a new post to keep the conversation going.

6 replies

Captiv8r
Legend
Jan 4, 2018 5:36 PM UTC

Hi there

I think more information is needed here.

For example, what exactly do you mean when you say "We have a custom button set up as a div"? A button is an object on a page. I'm not sure how one goes about setting a button up as a div.

Generally speaking, in the RoboHelp editor you select what you want and you then make it a hyperlink. The fact you seem to be talking about divs suggests that you are more than comfortable mucking around in the code. So assuming it's possible to make a div a hyperlink, one would think it would be a cake walk for configuring a hyperlink.

Cheers... Rick

Translate
Known Participant
Jan 4, 2018 6:53 PM UTC

Always make them ask before you overshare

Basically we have clickable images.  These aren't actual image files, but DIVs containing text, all set up to have a custom look.  Basically, I need to recreate this construction:

<a class="link_style" href="http://target.url.com">

     <div class="div_style">Clickable Text</div>

</a>

I have the CSS set up, so the buttons look right and the links behave properly and all that stuff. I'm struggling to figure out how to imbed the DIV in the hyperlink, because:

1) We have multiple writers and not all are comfortable with raw HTML. Basically just me, really. But...

2) Tomorrow is my last day, and I'm trying to set this up for my future former co-workers

Thanks!

Translate
Captiv8r
Legend
Jan 4, 2018 7:06 PM UTC

Hmmm, have you tried putting this into a User Defined Variable?

Or perhaps a snippet?

Cheers... Rick

Translate