ResolvedShort description

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #29138
    zhekastar
    Participant

    Hello. Thank you for the great template! How do I remove a short description of the product on the order page? Why it doesn’t work??? Hook: remove_action( ‘woocommerce_single_product_summary’, ‘woocommerce_template_single_excerpt’, 20 );

    #29147
    Althemist
    Keymaster

    Hi zhekastar,

    Not really sure what do you mean. What do you call “the order page”? Please, explain more, so we can assist you.

    #29167
    zhekastar
    Participant

    Here on these pages. How do I delete a short description? Page . In the documentation woocommerce that this hook removes the short description from this page. But this hook doesn’t work for some reason. And with the help of other hooks, you can delete the price and product names on this page.

    remove_action('woocommerce_single_product_summary','woocommerce_template_single_title', 5  ); // Deletes the product name
        remove_action('woocommerce_single_product_summary','woocommerce_template_single_price',10  ); // Deletes the price
        remove_action('woocommerce_single_product_summary','woocommerce_template_single_excerpt',20  );  // And this hook should delete the description. But it doesn't work! Why?

    Maybe I’m setting the wrong priority?

    details__short-description p {
        margin: 0 0 10px 0;
        display: none;
    } //  This option does not suit me.

    Since this code removes descriptions everywhere.

    #29171
    zhekastar
    Participant
    #29182
    Althemist
    Keymaster

    Hello zhekastar,

    CSS would be the only option in your case:

    .lafka-product-summary-wrapper div.summary .woocommerce-product-details__short-description p {
        display: none;
    }

    Hope this helps.

    Regards,
    Dimitar

    #29208
    zhekastar
    Participant

    Thanks. It works. You are the best of the best.

    #29214
    Althemist
    Keymaster

    Thanks for your 5-star review on ThemeForest. It helps us a lot keep improving our themes and adding new features. 🙂

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register