Skip to content

Commit e95c930

Browse files
committed
Add placeholder image source customization, closes #4
1 parent 5ad3ee4 commit e95c930

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

includes/class-wc-customizer-settings.php

+15-1
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,21 @@ public function get_settings() {
374374
'type' => 'text'
375375
),
376376

377-
array( 'type' => 'sectionend' )
377+
array( 'type' => 'sectionend' ),
378+
379+
array(
380+
'title' => __( 'Images', 'woocommerce-customizer' ),
381+
'type' => 'title'
382+
),
383+
384+
array(
385+
'id' => 'woocommerce_placeholder_img_src',
386+
'title' => __( 'Placeholder Image source', 'woocommerce-customizer' ),
387+
'desc_tip' => __( 'Change the default placeholder image by setting this to a valid image URL', 'woocommerce-customizer' ),
388+
'type' => 'text'
389+
),
390+
391+
array( 'type' => 'sectionend' ),
378392

379393
),
380394
);

readme.txt

+3
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@ Here's the list of customizations you can make:
2222
* The number of products displayed per page
2323
* Heading text for the 'Product Description' and 'Additional Information' tab.
2424
* Checkout page coupon / login text
25+
* Checkout page "Create Account" checkbox default
2526
* Checkout page 'Submit Order' button text
2627
* Tax Label text
28+
* Placeholder image source
2729

2830
== Installation ==
2931

@@ -55,6 +57,7 @@ Yes! Fork the plugin on [Github](https://github.com/skyverge/woocommerce-customi
5557

5658
= 1.2.1-1 =
5759
* Added Checkout "Create Account" checkbox default customization
60+
* Added Placeholder image source customization
5861
* Moved settings to WooCommerce > Settings > Customizer
5962
* WooCommerce 2.2 Compatibility
6063
* Localization - Text domain changed from `wc-customizer` to `woocommerce-customizer`

0 commit comments

Comments
 (0)