WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Help] TwnetyTen Church - Sidebar Text Widget Problem (8 posts)

  1. Anuradha Edirisuriya
    Member
    Posted 3 years ago #

    Hello,
    I have been using TwentyTen Child Theme - TwentyTen Church for my website. The problem I have faced so far is that when I add a text widget and enter some text or add any image linking to external source, it wraps with the site's link.

    For example;

    I entered the text "Find me on facebook" and linked it like below.

    <a title="Find Us" target="_blank" href="www.facebook.com/xxxxxxxxx">Find me on facebook</a>

    Then I saved it and clicked to test it. But I was directed to,
    http://prefects.bandaranayakecollege.org/www.facebook.com/xxxxxxxxx

    not to www.facebook.com/xxxxxxxxx. Why does this happen? Any solution will be appreciated.

    Thank you.
    Anuradha

  2. alchymyth
    Forum Moderator
    Posted 3 years ago #

    this is what the browser sees in the textwidget:
    <a title="Find Us" target="_blank" href="bandaranayakecollege"><img src="http://prefects.bandaranayakecollege.org/wp-content/uploads/2011/07/fb-find.png" /></a>
    double check it and insert the intended link.

  3. Anuradha Edirisuriya
    Member
    Posted 3 years ago #

    Sorry, my bad. Even if I put that code, it directs me to prefects.bandaranayakecollege.org/bandaranayakecollege not to bandaranayakecollege.

    I corrected it now. The text, "Find me on facebook" is replaced with the image.

    <a title="Find Us" target="_blank" href="www.facebook.com/bandaranayakecollege"><img src="http://prefects.bandaranayakecollege.org/wp-content/uploads/2011/07/fb-find.png"/></a>

    Something is wrapping the code it put there. I can't figure out why that happens.

  4. alchymyth
    Forum Moderator
    Posted 3 years ago #

    try and use http:// with all absolute link urls;

    i.e.:

    <a title="Find Us" target="_blank" href="http://www.facebook.com/bandaranayakecollege"><img src="http://prefects.bandaranayakecollege.org/wp-content/uploads/2011/07/fb-find.png"/></a>
  5. Anuradha Edirisuriya
    Member
    Posted 3 years ago #

    Now it works. Thank you very much.

  6. fridaygrrl
    Member
    Posted 3 years ago #

    Hi, I am new to HTML and have followed the instructions in the text widget for placing an image-- here is the code:

    <img src="http://www.mywebsite.org/wp-content/uploads/USMS-Logo-FINAL-tm.jpg" width="200" />

    Now I would like to link that image to another website, opening in a separate window. I have searched these forums before asking, but being new to HTML, I didn't understand some of the responses. One responder said to look it up on W3 School, but I was lost there too. Any help is appreciated.

  7. Anuradha Edirisuriya
    Member
    Posted 3 years ago #

    <a title="your-website-name" target="_blank" href="your-website-url"><img src="http://www.mywebsite.org/wp-content/uploads/USMS-Logo-FINAL-tm.jpg" width="200" /></a>

    Copy and paste this in text widget and rename "your-website-name" and "your-website-url" to relevant name and url.

  8. fridaygrrl
    Member
    Posted 3 years ago #

    Thank you very much! This worked great.

Topic Closed

This topic has been closed to new replies.

About this Topic