Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Change Download Button Image Globally

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › Change Download Button Image Globally

Tagged: download button

  • This topic has 6 replies, 2 voices, and was last updated 13 years, 5 months ago by mack417.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • December 9, 2011 at 2:32 pm #4994
    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

    December 9, 2011 at 3:55 pm #39497
    wzp
    Moderator

    Look for the following file in the “images” directory:

    download_icon.png

    December 12, 2011 at 10:46 pm #39498
    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.

    December 12, 2011 at 11:36 pm #39499
    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.

    December 22, 2011 at 9:16 pm #39500
    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?

    December 22, 2011 at 10:51 pm #39501
    wzp
    Moderator

    The following post will explain how you can customize the button image for each of your products:

    https://support.tipsandtricks-hq.com/forums/topic/how-to-change-the-buy-button-images-for-estore-and-simple-shopping-cart-plugins

    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’;

    December 23, 2011 at 1:10 pm #39502
    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.

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ