WordPress.org

Forums

Resizing image from link (8 posts)

  1. MisterEddie
    Member
    Posted 1 year ago #

    Hey everyone,

    I'm very new to WordPress, and today I made a PayPal account and inserted their Donate button on a page. The problem is that the button is very small and easy to miss. I'm wondering how to make the image button larger. This is what the script looks like that allows them to click on the picture and donate to my account:

    <img src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" alt=" alt="" />

  2. graphical_force
    Member
    Posted 1 year ago #

    You may be able to make it larger using css.

  3. MisterEddie
    Member
    Posted 1 year ago #

    Thanks for the point in that direction, but can you be a little more specific? Thanks

  4. graphical_force
    Member
    Posted 1 year ago #

    Unless paypal is offering a way for you to use a larger image, you're going to have to use css to make the image larger.

    Something like wrapping that image in a div and then target it.

    <div id="custom-paypal-size">
    <img src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" alt=" alt="" />
    </div>

    The css:

    #custom-paypal-size img {
    width: 200px;
    height: 75px;
    }

    This code is untested so you may need to tweak the width and height.

  5. MisterEddie
    Member
    Posted 1 year ago #

    My God, I have no idea what you're talking about or where to put that stuff. I tried looking up adding css on WP, and stuff like PHP and other unknowns came up and I am super lost. Is this all really as complicated as I think it is, or is there some secret page that breaks all this stuff down?

  6. graphical_force
    Member
    Posted 1 year ago #

    Yeah, if Paypal does not offer a way to show a larger button by you using a link like the one you originally provided then you would have to get into some code. If that is beyond you, you can always hire someone.

  7. MisterEddie
    Member
    Posted 1 year ago #

    Part of me wants to learn how to do some more stuff, as long as it would be worth it. Do you recommend any sites for beginners trying to learn these things?

  8. graphical_force
    Member
    Posted 1 year ago #

    The codex is a great place to start: http://codex.wordpress.org/Main_Page

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.