How to use different short description in shop page and in product page in woocommerce

The short description template is /templates/single-product/short-description.php : <?php /** * Single product short description * * @author WooThemes * @package WooCommerce/Templates * @version 1.6.4 */ if ( ! defined( ‘ABSPATH’ ) ) exit; // Exit if accessed directly global $post; if ( ! $post->post_excerpt ) return; ?> <div itemprop=”description”> <?php echo apply_filters( ‘woocommerce_short_description’, $post->post_excerpt ) … Read more

Show Subcategory Description

wp_list_categories formats the results, instead you want to try get_categories and create your own loop to format the results. I do not know exactly how you want it formated, but this gives you the general idea. <?php if (is_category()) { $this_category = get_category($cat); if (get_category_children($this_category->cat_ID) != “”) { echo “<div id=”catlist”><ul>’; $childcategories = get_categories(array( ‘orderyby’ … Read more

Add visual editor to Media Edit Screen

This function added to functions.php does exactly that: // Enables Editor in Media edit screen. function add_editor_support_for_attachments($settings) { if( get_post_type() == ‘attachment’){ $quicktags_settings = array( ‘buttons’ => ‘strong,em,link,block,del,ins,ul,ol,li,code,close’ ); $settings = array( ‘wpautop’ => true, ‘textarea_name’ => ‘content’, ‘textarea_rows’ => 10, ‘media_buttons’ => false, ‘tinymce’ => true, ‘quicktags’ => $quicktags_settings, ); return $settings; } } … Read more

techhipbettruvabetnorabahisbahis forumutaraftarium24eduseduedueduedueduseduedueduedus