Tips and Tricks HQ Forum

Support Forum for Tips and Tricks HQ Products

Register or log in - lost password? (Having an issue with the forum login?)

Search the Forum

Tips and Tricks HQ Forum » WP eStore Forum

Change Download Button Image Globally

(7 posts) (2 voices)
  • Started 5 months ago by mack417
  • Latest reply from mack417
  • Possible Solutions (Related Topics):
    1. How to Customize or Change the Buy Button Images for eStore
    2. Download Now customized button image?
    3. Can I change the paypal checkout image button in the sidebar?
    4. WP eStore - Customizing the buttons (changing the button images)
    5. line up add to cart button and change short code

Tags:

  • download button
  1. mack417
    Member

    Hi,

    How do I change the "Download" buttons image globally. I was able to set a custom image for the "add to cart" in the Settings menu, but there is not an option for "download". I looked for the image in the images folder, but couldn't find it. I also tried setting a button image in the individual product, but then that overwrites the "add to cart" button.

    I already have multiple products created, and would prefer to just change an image if possible. As an alternative, I would also be ok with editing the CSS to change size and color, i just can't seem to locate that.

    Any help is greatly appreciated.

    Thank You

    Posted 5 months ago #
  2. wzp
    Moderator

    Look for the following file in the "images" directory:

    download_icon.png
    Posted 5 months ago #
  3. mack417
    Member

    Thanks wzp. I checked that image, and it is not the "Download" button that I am looking for. I am looking for the one associated with the following shortcode

    [wp_eStore_download_now_button id=151]

    It's grey, square, looks like it has a class of "download_now_button" or "download_now_button_submit", but I do not see a URL when I inspect the element.

    I think that the button you pointed me towards was for the Free Download option.

    Posted 5 months ago #
  4. wzp
    Moderator

    THAT one is an honest to goodness HTML button, created by the eStore_show_download_now_button() function, in the eStore_misc_functions.php file.

    Posted 5 months ago #
  5. mack417
    Member

    Great, thanks. I have had time to take a look, but I am not really good at PHP. What line or section should I look at to style the button? None of it really looks like HTML to me. Or is there something that I could put in to get it to call an image for this?

    Posted 5 months ago #
  6. wzp
    Moderator

    I know you want to do this "globally," but let me first describe how you can do this on a per-product basis...

    Add/Edit Products --> Additional Product Details --> Button Image URL --> (Insert URL of button image you want).

    Now, if you are insistent upon wanting, for all time, to make a permanent change to the way the button looks...

    Edit the eStore_misc_functions.php file and look for...
    function eStore_show_download_now_button($id,$line_break=true,$nggImage='')

    Next, scroll down until you find this line...
    $button = $ret_product->button_image_url;

    Change it to...
    $button = 'http://mysite.com/buttons/whateveriwant.gif';

    Posted 5 months ago #
  7. mack417
    Member

    Thank You.

    I also appreciate the other options, I always hesitate before changing PHP because it can be an issue when there are updates. I had tried the per product option, but I have the products placed in multiple places, and that overrides my Add to Cart button.

    Thanks again.

    Posted 5 months ago #

RSS feed for this topic

Reply

You must log in to post.

Tips and Tricks HQ  | WP Shopping Cart  | WP Affiliate Software  | WordPress Membership Plugin