stanigator
stanigator

Reputation: 10926

<a href=...> syntax

I am trying to append a link to the text as shown below:

<a href=\"http://blog.sysil.com/?page_id=5\">Contact Us</a> <br />Copyright © 2010 Stanley Lee. All Rights Reserved.

However, it is not linking properly. Do you know what is causing the linking error? Thanks in advance for your help!

Upvotes: 2

Views: 10629

Answers (3)

Christian Neverdal
Christian Neverdal

Reputation: 5375

Read http://tutorialblog.org/use-embedit-to-add-html-code-in-wordpress/ on how to add HTML to wordpress.

Quote: "Sometimes you may just be able to copy and paste code or write HTML code directly into your posts. To do this, you just need to click the HTML tab at the top of the post and then write or paste the code into your post and publish it."

Going to the HTML tab and inserting the code there should prevent WordPress from adding extra backslashes. :)

Upvotes: 2

Delan Azabani
Delan Azabani

Reputation: 81384

Remove the backslashes that precede the double quotes and the link should work fine.

Upvotes: 1

JYelton
JYelton

Reputation: 36512

The backslashes (\) before the quotation marks in your anchor tag are the problem; you only need those if you are trying to escape them in a string of a programming language (for example PHP).

Try:

<a href="http://blog.sysil.com/?page_id=5">Contact Us</a>...

Upvotes: 5

Related Questions