Solved

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

911 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

23 Experts available now in Live!

Get 1:1 Help Now