Link color
-
I have a question, WordPress doesn’t accept this code (i see this code in W3Scools.com):
-
Ops, correction: (this code is been edited WordPress transform in a link, code tag doesn’t work in forums)
a style text-decoration:underline; WordPress.com /a
-
try this:
<a href=[URI]"><span style="color:[color]; text-decoration:[value]">Text</span></a>
-
-
-
I’m sorry, you are right… I need more coffee… *sigh*
Yeah, wordpress will strip inline styles in tags other than “div” or “span” The only way to do what you want is with the CSS upgrade.
-
Ah, you want to display code… if so, just use the regular HTML tags… try either of these two:
<pre>[your code here]</pre>
or
<code>[your code here]</code>
HTH
-
It DOES work:
`<span style=”text-decoration: underline;”>TITLE_HERE</span>
(devblog, in your 5:20 PM post you omitted the first quotation mark.)
-
And I omitted the second backtick…
<a href="URL_HERE" target="_blank"><span style="text-decoration: underline;">TITLE_HERE</span></a>
-
-
Me too…
(Let me add that it can be done in the visual editor as well: you write the title first, highlight it, click the Underline button, then highlight it again, click the Link button and add the URL.)
-
-
-
-
WordPress does not accept this code ;(
No, it doesn’t, that’s why I told you to use regular “code” or “pre” HTML tags…
-
-
-
yeah, it will ignore it, because like I explained above, it will strip styles off tags other than “div” or “span”.
Panaghiotisadam, is giving you an example of how to work around this little problem.
- The topic ‘Link color’ is closed to new replies.