Jump to content

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


kalypha65
 Share

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.

Link to comment
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.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...