Move Short Description into a custom tab

This topic has 9 replies, 4 voices, and was last updated 1 years, 8 months ago ago by Rose Tyler

  • Avatar: george kakamoukas
    george kakamoukas
    Participant
    April 4, 2023 at 21:56

    Hi,
    I am trying to move short description to the custom tab on product single page.

    8 Answers
    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    April 5, 2023 at 08:52

    Hello George Kakamoukas,

    We regret to inform you that it is not possible to achieve your desired outcome with the current version of the theme. Item support does not include services to modify or extend the item beyond the original features, style, and functionality described on the item page.

    If you would like to pursue paid customization services, we recommend submitting a customization request to the WPKraken team via their website: https://wpkraken.io/?ref=8theme.

    Alternatively, you can use any third-party plugin for it, which better meets your requirements but at your own risk.

    We hope this information is helpful.

    Best Regards,
    8Theme’s Team

    Avatar: Clau8826
    Clau8826
    Participant
    April 5, 2023 at 09:03

    Hi, As i was searching for this a couple of days ago for my site, I would be happy to provide you with code to achieve what you need, if it’s allowed by xstore moderator for me to post it here

    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    April 5, 2023 at 09:38

    Hello @Clau8826,

    Thank you for your inquiry. If you have a code that may be of assistance to other customers, we invite you to share it here.


    @george
    kakamoukas please note that any code shared should be used at your own risk.

    We appreciate your understanding.

    Best Regards,
    8Theme’s Team

    Avatar: Clau8826
    Clau8826
    Participant
    April 5, 2023 at 09:54

    Hello

    You can do the following:
    Add this custom code into your functions file or use a code snippet plugin to add it

    // Add shortcode to export product short description
    function custom_code_export_short_description_elsewhere() {
        global $product;
    
        // Check if the current page is a single product page
        if (is_product()) {
            // Get the current product ID
            $product_id = get_the_ID();
    
            // Get the product object
            $product = wc_get_product($product_id);
    
            // Get the product short description with HTML tags
            $short_description = apply_filters( 'woocommerce_short_description', $product->get_short_description() );
    
            // Return the short description with HTML tags
            return $short_description;
        }
    }
    add_shortcode('export_short_description_elsewhere', 'custom_code_export_short_description_elsewhere');
    

    Then you can place the following shortcode in another place on your product page. The shortcode will export the product’s short description
    [export_short_description_elsewhere]

    Hope it helps

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 5, 2023 at 12:16

    Hello, Clau8826,

    Thank you for your response.

    Kind Regards,
    8theme team

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 5, 2023 at 12:17

    Hello, George Kakamoukas,

    Please note that the theme support team is not responsible for custom changes in files.
    We hope for your understanding.

    Kind Regards,
    8theme team

    Avatar: george kakamoukas
    george kakamoukas
    Participant
    April 5, 2023 at 12:41

    Dear Clau8826,
    thank you very much for your support! I will try to embed the code you sent me and I will update the thread.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 6, 2023 at 10:28

    Hello, George Kakamoukas,

    We will not close this topic, so you will be able to reply here.

    Kind Regards,
    8theme team

  • Viewing 9 results - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.