Solved

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

Posted on 2015-01-10
2
127 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
2 Comments
 
LVL 15

Accepted Solution

by:
eemit earned 500 total points
Comment Utility
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
Comment Utility
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

WordPress is constantly evolving, and with each evolution appears to get better and better.  One of the big drawbacks prior to version 3 was that there was no way to be able to set up a custom menu from the backend. The Old Way Adding menus is…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…
The viewer will learn how to dynamically set the form action using jQuery.

762 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now