WordPress.org

Ready to get started?Download WordPress

Forums

Break a link from being a link (9 posts)

  1. samgallo
    Member
    Posted 1 year ago #

    Crazy. Something new to me. Placed an image at the end of a line. Made the image a link. It links and colors the preceding text in that line no matter what I do, except break the line so the image goes on the next line.

  2. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Can you post a link to the page in question?

  3. samgallo
    Member
    Posted 1 year ago #

  4. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Is the issue with the small "click here" image in the lower section of the page? It has CSS styles from here:

    .imageSeven {
        background-color: #FFFFFF;
        border: 1px solid #CCCCCC;
        box-shadow: 0 0 7px #CCCCCC inset;
        padding: 7px;
    }

    is that what you don't want?

  5. samgallo
    Member
    Posted 1 year ago #

    Yes. I just want the link to be the (image), but the words "Click for the Gallo World Family Foundation:" are also linked. It's like the line should be:

    Click for the Gallo World Family Foundation: (image)

    But, whatever I do, the whole line is linked.

  6. bknutson
    Member
    Posted 1 year ago #

    There is an a tag around the text as well.

    <a title="Church Scene" href="" http:="" www.conservativepartyusa.org="" home="" religion="" "="" style="font-size:20px;">Click for the Gallo World Family Foundation: </a><a href="http://galloworldfamily.org"><img class="alignnone size-full wp-image-164 imageSeven" alt="next" src="http://www.santamariafrancesca.org/wp-content/uploads/2007/06/next.png" height="28" width="29"></a>

    Remove the a tag before the "Click for..." text, and remember to remove the closing tag after "Foundation:"

    <a title="Church Scene" href="" http:="" www.conservativepartyusa.org="" home="" religion="" "="" style="font-size:20px;">
  7. samgallo
    Member
    Posted 1 year ago #

    I know it must be there, but what you are pointing to has nothing to do with this website. It has to be some stray code from a copy & paste I used. Where are you looking? I'm looking at the "Page" called home. Is there a view in WordPress that I don't know about. I'm looking at the "text" view. Is there a html view?

  8. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    You can use "view source" in a browser to see the rendered HTML for a page.

  9. samgallo
    Member
    Posted 1 year ago #

    I search everywhere for the stray code and did find a couple of places that I edited. But it still didn't help. Finally, I unlinked the complete line, then placed a close tag before "Click" and relinked the image and it worked. Thanks for your help.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags