Solved

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

Posted on 2015-01-10
2
150 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 500 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

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this. Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it i…
In order to have all security and back ups taken care of, WordPress users can sign up for services with WP Engine.
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…
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…

717 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