issue – creating links in a static block

Hi,

I am having problems adding links into a static_block, e.g.

Code:

<ul>
<li><a href="{{store direct_url="terms-conditions.html"}}">Terms &amp; Conditions</a></li>
</ul>

Once its saved, it produces:

Code:

<ul>
<li><a href="\&quot;{{store">Terms &amp; Conditions</a></li>
</ul>

What is the problem? I don’t want to disable the WYSIWYG.

Tx!

5 answers

Profile photo of chavan 100.00 $tone June 8, 2011
Public

Go to the Static Block and then Click on the "Show / Hide Editor" button

Once Done the editor will go off and then enter this code

Code:

<ul><li><a href="{{store direct_url="terms-conditions.html"}}">Terms &amp; Conditions</a></li></ul>

Then save the Block.

Note: If you Find my Post useful please click on the Thanks Icon

#1
Profile photo of Robert Stevens 0.00 $tone June 9, 2011
Public

Hi Chavan,

Thanks for your help, I was able to figure it out, I had to remove the quotation marks in the href attribute, e.g.

Code:

<a href=link.html> 
and NOT: 
<a href="link.html">
#2
Profile photo of Robert Stevens 0.00 $tone June 9, 2011
Public

I agree its no good, I have tried yours But no luck :/

I also tried using the WYSIWYG editor insert link option and using just use regular html. But nothing works when I use the apostrophes. So your method will work but it needs not to have the apostrophes in the href attribute. This applies to when I have the editor is set to show or hide.

Tx anyhoo

#4

Please login or Register to Submit Answer

Written By

Comments