WordPress.org

Ready to get started?Download WordPress

Forums

Logo button/banner code (13 posts)

  1. leylap
    Member
    Posted 4 years ago #

    Hi I have a self-hosted website, http://www.motherhooddiaries.com and have had an offer for some advertising on another website's homepage. They have asked me for a button or banner code. Would you happen to know where I can get this code?

    Many thanks in advance

    Leyla

  2. Paul
    Member
    Posted 4 years ago #

    You will have to create this yourself. The basic idea is you give other website a link to your site and mostly, this link includes an animated/static image pointing to your site. If tracking is to be included in the link, then this will be coded within your site that will record clicks from this banner (something like that).

    The basic banner HTML only code looks something like...
    <a target="_blank" href="http://www.your-website.com"><img src="http://www.your-website.com/path/to/your/image.jpg" alt="image name" /></a>

  3. leylap
    Member
    Posted 4 years ago #

    Hi,

    Thanks for the great tip.

    Someone has actually already created a banner for me on the webpage below. Is there anyway I can extract the code of that Motherhood Diaries banner from this page and use it to send to another website? The website is below:

    http://www.pinkwishes.co.uk/motherhooddiaries.htm

  4. Paul
    Member
    Posted 4 years ago #

    The banner on http://www.pinkwishes.co.uk/motherhooddiaries.htm
    <a target="_blank" href="http://www.motherhooddiaries.com"><img src="http://www.pinkwishes.co.uk/md4.gif" alt="Motherhood Diaries" /></a>

  5. leylap
    Member
    Posted 4 years ago #

    That's great thank you so much, but is it ok to use that coming from my website? It has the website link to pinkwishes on there, which I don't want. Am I able to substitute that for my website, http://www.motherhooddiaries.com or will that not work?

    Thanks again!

  6. leylap
    Member
    Posted 4 years ago #

    I'm sorry if i sound like a dunce, I'm a complete beginner :-(

  7. Paul
    Member
    Posted 4 years ago #

    If you want to replace that with your site URL, you will need to save the image somewhere in your site. Let's say you uploaded the image to your site's root, you can then change the image URL to your site.

    If you're just going to change the URL your banner image will not show up and instead will be replaced with the alternate image title (declared in alt="" attribute).

  8. leylap
    Member
    Posted 4 years ago #

    I can't seem to get it to work. Is something wrong here? So sorry to keep bothering you. I don't want to keep this other website waiting :-(

    <img src="http://www.motherhooddiaries.com/F:/Businesses/MD/Images/md4.gif" alt="Motherhood Diaries" />

  9. leylap
    Member
    Posted 4 years ago #

  10. Paul
    Member
    Posted 4 years ago #

    Yes. The image needs to be uploaded somewhere in your site first. Once done, the image source would look something like
    <img src="http://www.motherhooddiaries.com/location/of/md4.gif" alt="Motherhood Diaries" />

  11. leylap
    Member
    Posted 4 years ago #

    Hi again. I've tried and I just can't seem to get the logo to work :-(

    <img src="http://www.motherhooddiaries.com/home2/motherh5/md4.gif" alt="Motherhood Diaries" />

  12. leylap
    Member
    Posted 4 years ago #

    Lol I've finally done it but the image is too big now!! I'll have to resize the picture I think, if it is to work. Thanks so much for your help and so sorry to have bothered you so much.

  13. Paul
    Member
    Posted 4 years ago #

    Alright. No problem.

Topic Closed

This topic has been closed to new replies.

About this Topic