Jump to content
kalypha65

Is it possible to add a hyperlink in a widget, without creating a sidebar?

Recommended Posts

Not sure if this is even a possibility, but I am trying to add hyperlinks in the text of a feedback widget. However, it splits the paragraph at the start of the first <href and moves the rest of the paragraph out of the widget pop-up box and onto the main page.

 

Here is what I am wanting to do, but have so far not been successful:

 

<?php if(in_array($this->session->getSessionData('theme'), array("brandx"))): ?> <widget path="feedback/AnswerFeedback" label_dialog_title="<strong>PLEASE NOTE: Orders cannot be cancelled or modified and account issues cannot be resolved via this channel.</strong> Should you require immediate assistance with your order or your account, please <a href="http://callus.com" target="_new"><strong>Call Us</strong></a> or <a href="http://chatwithus.com" target="_blank"><strong>Call Us</strong></a>. Thank you for providing information related to answer content and site feedback only." dialog_width="375px" />

 

Any help with this would be greatly appreciated.

Share this post


Link to post
Share on other sites

The quotes are breaking the string. It sees this as the label_dialog_title attribute, because of the quotes:

 

label_dialog_title="<strong>PLEASE NOTE: Orders cannot be cancelled or modified and account issues cannot be resolved via this channel.</strong> Should you require immediate assistance with your order or your account, please <a href="

 

One solution would be to use single quotes instead of double quotes for either the attribute or the value inside the attribute. Otherwise you need to encode the quotes inside the attribute value so that they don't close the attribute.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...