• Im trying to put two clickble img in the sidbar, but I dont know how to put that HTML in the widget. I have uploaded the img and they are in the folder for uploads. I have tried the text-widget” but the only thing that shows is the alt-text.

    Im also working with a localhost and cyberduck to edit the files.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Do you have a link to your website or do you only have it as a localhost ?

    The way you do it in a text widget is like this:

    <a href="https://google.com" target="_blank"><img src="https://mysite.com/uploads/image.jpg" /></a>

    So there are two web elements:

    1. The anchor tag, also called a link tag. There’s an opening tag that begins with <a … > and a closing tag that looks like </a>. The target=”blank” attribute makes the link open up in a new window or tab (depending upon how the browser is set up) instead of the same window.
    2. The image tag, which defines the image. The image tag goes between the opening <a … > and closing </a> tags, and the img tag doesn’t have opening and closing elements, just one tag that looks like <img … />. Because it’s just one tag, there’s a slash just before the closing bracket. The src=”…” attribute should be the address of the image.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Link-img in the sidebar’ is closed to new replies.