Link color

  • Author
    Posts
  • #318136

    raul008
    Member

    I have a question, WordPress doesn’t accept this code (i see this code in W3Scools.com):


    WordPress.com

    #318336

    raul008
    Member

    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

    #318339

    devblog
    Member

    try this:

    <a href=[URI]"><span style="color:[color]; text-decoration:[value]">Text</span></a>
    #318341

    raul008
    Member

    Thanks, i know this code, but the text-decoration:[value] not work :(

    #318343

    raul008
    Member

    Is the code:

    [code]
    Text
    [/code]

    WordPress doesn’t accept :(

    #318344

    raul008
    Member

    Is the code:


    Text

    WordPress doesn’t accept :(

    #318345

    raul008
    Member

    Code tag not working :|

    A image in notepad, look this:

    http://img413.imageshack.us/my.php?image=codepk3.jpg

    #318346

    devblog
    Member

    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.

    #318349

    devblog
    Member

    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

    #318359

    It DOES work:

    `<span style=”text-decoration: underline;”>TITLE_HERE</span>

    (devblog, in your 5:20 PM post you omitted the first quotation mark.)

    #318362

    And I omitted the second backtick…

    <a href="URL_HERE" target="_blank"><span style="text-decoration: underline;">TITLE_HERE</span></a>

    #318364

    devblog
    Member

    thanks, see? I need more coffee…

    #318372

    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.)

    #318490

    raul008
    Member

    Here this code:

    WordPress.com
    #318491

    raul008
    Member

    Here this code:

    WordPress.com

    #318492

    raul008
    Member

    :@ ! Here this code in a image:

    http://img413.imageshack.us/my.php?image=codepk3.jpg

    WordPress does not accept this code ;(

    #318494

    devblog
    Member

    WordPress does not accept this code ;(

    No, it doesn’t, that’s why I told you to use regular “code” or “pre” HTML tags…

    #318495

    raul008
    Member
    #318496

    raul008
    Member

    Ignore the [code] tag, is the a style ;)

    #318498

    devblog
    Member

    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.