• I have a Post and when I add an <a href> around a few words for example

    </a><a href="url">words</a>

    It won’t appear on the page. there’s nothing there. How can this be resolved?

Viewing 15 replies - 1 through 15 (of 24 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    I’ve edited the title of your topic to something useful. Just naming the topic “Posts -” isn’t very effective. 😉

    http://codex.wordpress.org/Forum_Welcome#Choose_A_Good_Topic_Title

    Also if you are going use HTML code here then please use the code button.

    I have a Post and when I add an <a href> around a few words for example

    Which words?

    Thread Starter scottkr

    (@scottkr)

    I have some wording that I want to wrap/surround with an a href with but when I add it nothing appears on the web page. The wording is there if I remove the a href. Once I add the a href the wording disappears and there’s no hyperlink there. Can this not be done?

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Unless I’m completely misunderstanding you (which is always possible with me) I think you should try this:

    When you create a post in WordPress highlight the word in the visual editor and just click the link button (the one that looks like a chain link). That will popup a dialog box where you can paste the link for that word or words.

    Thread Starter scottkr

    (@scottkr)

    Yes, I know how to use the Link and I did that but what I’m saying is that when I add the link code to the words it disappears.

    Since there’s no way to attach screen shots here let me try it this way.

    Without the a href code this is what shows.

    IEEE Spectrum – Features 1790â€ēs unique Patent Scorecard Analysis
    Patent Power 2012 Scorecard Article
    California Green Innovation Index
    1790 provides patent analysis for high profile green innovation index.

    When I add the a href code to the second and third lines this is what shows.

    IEEE Spectrum – Features 1790â€ēs unique Patent Scorecard Analysis

    1790 provides patent analysis for high profile green innovation index.

    The 2nd and 3rd lines just disappear, nothing zero, gone.

    Is the preceding </a> there for a reason or did it just slip in while you were posting?

    <a href="url">words</a>
    </a><a href="url">words</a>
    Thread Starter scottkr

    (@scottkr)

    Lee, ignore that. The question is can you have an a href in a Post? Because when I wrap some words with an a href as my prior message says it disappears.

    Please go to this page as you’ll see what I mean –

    http://dev.1790analytics.com/case-studies/

    As you see the first 4 lines are plain text. Then just below those first four lines of plain text I put them again but the 2nd and 3rd lines are not there because once I add the a href around the words in the 2nd and 3rd lines they disappear.

    once I add the a href around the words in the 2nd and 3rd lines they disappear.

    Are you trying to put two lines of text in like this…

    <a href="url">Patent Power 2012 Scorecard Article
    California Green Innovation Index</a>

    ??
    If so, I will give that a try and see what happens, but I have never had trouble adding a link anywhere.

    This works 🙂

    IEEE Spectrum – Features 1790â€ēs unique Patent Scorecard Analysis
    <a href="http://www.wordpress.org" target="_blank">Patent Power 2012 Scorecard Article</a>
    <a href="http://wordpress.org/plugins/" target="_blank">California Green Innovation Index</a>
    1790 provides patent analysis for high profile green innovation index.

    So does this:

    IEEE Spectrum – Features 1790â€ēs unique Patent Scorecard Analysis
    <a href="http://www.wordpress.org" target="_blank">Patent Power 2012 Scorecard Article
    California Green Innovation Index</a>
    1790 provides patent analysis for high profile green innovation index.
    Thread Starter scottkr

    (@scottkr)

    No, TWO separate lines (sentences).

    Line 1 with a hyperlink.

    Line 2 with a hyperlink.

    Line 1 – Patent Power 2012 Scorecard Article

    Line 2 – California Green Innovation Index

    I’ve done this
    words
    As I’ve said when I add the a href to surround the words I want it all goes away. Please look again at the web page I sent you.
    http://dev.1790analytics.com/case-studies/

    This is a Post, not a Page.

    Why isn’t the a href being accepted?

    Two separate lines is exactly what my first post was. I don’t know what to tell you as that code works perfectly fine in a POST. 🙂

    This CSS is “hiding” those links:

    ul.lcp_catlist a {
        display: none;
    }

    Line 73 of style.css

    WPyogi knows… 🙂

    WPyogi knows… 🙂

    LOL – well, not always, but thanks for the vote of confidence, leejosepho :).

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    WPyogi get’s my vote. 😉

Viewing 15 replies - 1 through 15 (of 24 total)

The topic ‘How to add links to words in a post’ is closed to new replies.