New Landing How can we help? Themeforest Theme Support Dante Custom css to change category for product info excerpt on products overview page

Viewing 15 posts - 1 through 15 (of 20 total)
  • Posted in: Dante
  • #194266
    tynus
    Member
    Post count: 170

    Hi,
    I need Custom css (or something else) to change category info (underneath the product photo) for a short product information excerpt, on products overview page.
    I don’t know whether this is possible at all, but maybe there is a way?

    Thanks

    (please keep link private)

    #194370
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please use this custom css code:-
    .posted_in{display:none !important;}
    Thanks
    Mohammad

    #194392
    tynus
    Member
    Post count: 170

    I think this is what you’ve send me earlier already. This is just to remove the category, right?

    I want to exchange that for a short product-description. So instead of the category (posted_in) a short product info excerpt.

    Is this possible?

    #194405
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I am not sure but you can try to edit content-product.php file at /dante/woocommrce/
    Find this code:-

    <?php
    $size = sizeof( get_the_terms( $post->ID, 'product_cat' ) );
    echo $product->get_categories( ', ', '<span class="posted_in">' . _n( '', '', $size, 'woocommerce' ) . ' ', '</span>' );
    ?>

    Change with:-
    <?php echo apply_filters( 'woocommerce_short_description', $post->post_excerpt ) ?>
    Thanks
    Mohammad

    #194417
    tynus
    Member
    Post count: 170

    would it be possible to do this in the custom.php file, you think?
    And if so, how?

    Otherwise it will be gone after an update, you see?

    Thanks

    #194418
    tynus
    Member
    Post count: 170

    I mean functions.php of course…sorry

    #194423
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please copy this file with same directory structure at child theme directory to avoid upgrade loss issue. Child theme should be activated.
    Thanks
    Mohammad

    #194465
    tynus
    Member
    Post count: 170

    Yes, this did worked great.
    But it takes the complete info. What do I use if I only want to show a small part of the description?
    I’ve tried to use the read more tag, but that did not work.

    Now the layout gets bad, because each product has a different description (longer/shorter).

    Any ideas about how to tackle that?

    thanks, Mohammad

    #194512
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    That is main issue so we dont include this feature within the theme.
    Thanks
    Mohammad

    #194516
    tynus
    Member
    Post count: 170

    ok, thanks for your help, Mohammad.
    Have a great day

    #194664
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You most welcome.
    Thanks 🙂
    With Best Regards
    Mohammad

    #194745
    tynus
    Member
    Post count: 170

    Hi,
    I just want to ask one more thing,please.

    If I use this code it shows the section “woocommerce_short_description” right?

    But what I really ment was the section with the class is “product_short”. This is the short description on top of the product page.
    First comes product short, them product accordion en below the product short description.

    So if possible, I want to show the “#product-accordion .accordion-inner” section text or the “#product-accordion .accordion-inner” section text.

    What code should I use for that inside the content-product.php file?

    Thank you

    #194747
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I am not getting your point exactly. Which information do you want?
    Thanks
    Mohammad

    #194757
    tynus
    Member
    Post count: 170
    This reply has been marked as private.
    #194759
    tynus
    Member
    Post count: 170

    So the “.woocommerce div.product .product-short” I mean, sorry made a typo

Viewing 15 posts - 1 through 15 (of 20 total)

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

License required for one of the following items
Login and Registration Log in · Register