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 12 years, 10 months ago by mack417.
-
AuthorPosts
-
December 9, 2011 at 2:32 pm #4994mack417Member
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 #39497wzpModeratorLook for the following file in the “images” directory:
download_icon.png
December 12, 2011 at 10:46 pm #39498mack417MemberThanks 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 #39499wzpModeratorTHAT 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 #39500mack417MemberGreat, 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 #39501wzpModeratorThe following post will explain how you can customize the button image for each of your products:
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 #39502mack417MemberThank 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.
-
AuthorPosts
- You must be logged in to reply to this topic.