The way to show a short description info in the shop page.
Last active
August 5, 2019 05:00
-
-
Save irwingb1979/fee7738132f9fc8668f5ee98d9e8f405 to your computer and use it in GitHub Desktop.
Plugin Wordpress - The way to show a short description in the shop page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=== WordPress Importer === | |
/** | |
* Plugin Name: WooCommerce Shop Description | |
* Description: The way to show a short description in the shop page | |
* Version: 1.0 | |
* Author: @irwingb | |
* Author URI: https://twitter.com/irwingb | |
*/ | |
== Description == | |
The way to show a short description in the shop page | |
== Installation == | |
Upload the files the plugin folder /wp-content/plugins/YourPluginName and active. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: WooCommerce Shop Description | |
* Description: The way to show a short description in the shop page | |
* Version: 1.0 | |
* Author: @irwingb | |
* Author URI: https://twitter.com/irwingb | |
*/ | |
function short_description() { | |
the_excerpt(); | |
} | |
add_action( 'woocommerce_after_shop_loop_item_title', 'short_description', 40 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment