Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Woo Commerce Wordpress 4.1 How can I change the sale 'placeholder' picture?

Posted on 2015-01-10
2
Medium Priority
?
167 Views
Last Modified: 2015-01-20
Woo commerce
Wordpress 4.1
How can I change the sale 'placeholder' picture.

I do not have access to ftp so I can not find picture (placeholder.png) and swap.

placeholderscreenshot of placeholder for sale taking too much space, plus placeholder.png is ugly
0
Comment
Question by:rgb192
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 15

Accepted Solution

by:
eemit earned 2000 total points
ID: 40544958
To change the product 'placeholder' picture add this to your child theme's functions.php and use image you want:
// change the product 'placeholder' picture
add_filter('woocommerce_placeholder_img_src', 'yourprefix_placeholder_img_src');
function yourprefix_placeholder_img_src( $placeholder_img ){
	//Place your image in images subfolder of your child theme
	//$placeholder_img = get_stylesheet_directory_uri() . '/images/your_placeholder.png';
	// If you don't have access to ftp
	$placeholder_img = "here path to your uploaded image";

	return $placeholder_img;
}

Open in new window

To change the product 'sale flash' you can use CSS to style it e.g.:
.woocommerce span.onsale,
.woocommerce-page span.onsale {
	border-radius: 50%;
	line-height: 28px;
	min-height: 28px;
	min-width: 28px;
}

Open in new window

Add that to your child theme's style.css
0
 

Author Closing Comment

by:rgb192
ID: 40561132
Difficult, but that is the correct answer. I will just tell client that option costs a long time and to not focus on it.

Thanks.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
The purpose of this video is to demonstrate how to set up an RSS Feed on a WordPress Website. This will be demonstrated using a Windows 8 PC. Feedburner will be used for this demonstration. Go to your WordPress login page. This will look like the…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question