• Resolved irori

    (@irori)


    Hi
    I would like to add a sidebar image to my right sidebar underneath my page list – do I do this in ‘style and edit sidebars’ or someplace else?
    what is the correct code to use when adding images here?

    I am using the theme Atahualpa and my site is https://www.peacefulsilkworms.com.au

    thankyou

Viewing 9 replies - 1 through 9 (of 9 total)
  • esmi

    (@esmi)

    You’re probably best editing your sidebar template and adding the image code where you want the image to display.

    <img src="url_of/image.jpg" width="xxx" height="yyy alt="text alternative" />

    kdkaushik

    (@kdkaushik)

    Add a text widget to your sidebar at the prefered location and put this code inside that text widget
    <img src="url_of/image.jpg" width="xxx" height="yyy alt="text alternative" />

    Thread Starter irori

    (@irori)

    Thankyou both, I have decided to go with the sidebar widget this is what I have put into the code in the widget but only the words ‘textalternative’ is showing in my sidebar with no image?

    <img src="url_of/www/public_html/wp-admin/images/sidebarimage1.jpg" width="140px" height="400px alt="textalternative" />

    what am i doing wrong?

    esmi

    (@esmi)

    You need to use the full address of the image that you want to display in place of url_of/www/public_html/wp-admin/images/sidebarimage1.jpg.

    Thread Starter irori

    (@irori)

    thanks esmi
    I have done this and ensured that the image is in the correct folder but i am still not getting the image on my website, this is what I have in the code exactly in the widget box

    <img src=”url_of/www/public_html/wp-content/themes/atahualpa342/images/sidebarimage1.jpg” width=”150″ height=”400 alt=”textalternative” />

    jrav001

    (@jrav001)

    You have the url wrong. It should look more like
    <img src="https://www.example.com/images/sidebarimage1.jpg" width="150" height="400 alt="textalternative" />

    Thread Starter irori

    (@irori)

    tried that still not showing any picture, one interesting thing is though, when the page is loading you can see the outline of where the photo is meant to come up but then when the page loads it is not there, could there be something simple blocking it?

    jrav001

    (@jrav001)

    The url is not correct. You have:

    https://www.peacefulsilkworms.com.au/public_html/wp-content/themes/atahualpa342/images/sidebarimage1.jpg

    but it should be

    https://www.peacefulsilkworms.com.au/wp-content/themes/atahualpa342/images/sidebarimage1.jpg

    Thread Starter irori

    (@irori)

    Your a legend! it works! thankyou thankyou!!!!!!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘adding sidebar image’ is closed to new replies.