PROBLEM WITH LONG TITLE IN HOMEPAGE - by anonprophet

This topic has 6 replies, 2 voices, and was last updated 9 years, 2 months ago ago by Jack Richardson

  • Avatar: anonprophet
    anonprophet
    Participant
    October 5, 2015 at 06:36

    1.

    2. how to remove Product Descriptiontext
    http://i.imgur.com/JVXR8ef.png

    5 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    October 5, 2015 at 12:45

    Hello,

    1. You can short product title using this code in wp-content/themes/blanco/functions.php :

    add_filter( 'the_title', 'shorten_woo_product_title', 10, 2 );
    function shorten_woo_product_title( $title, $id ) {
    if (get_post_type( $id ) === 'product' ) {
    return wp_trim_words( $title, 4 ); // change last number to the number of WORDS you want
    } else {
    return $title;
    }
    }

    2. Please provide your website url in private content.

    Best regards,
    Jack Richardson.

    Avatar: anonprophet
    anonprophet
    Participant
    October 6, 2015 at 06:15

    Hi, i dont want reduce the title,
    could u fix this without reduce the title ?

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    October 6, 2015 at 07:42

    Hello,

    Try to use this code in custom.css file:

    .product-slider .carousel {
       height: 400px !important;
    }

    To create custom.css you need rename default.custom.css to custom.css in wp-content/themes/blanco directory via FTP and enable it in Blanco – Theme Settings, tick “Enable Custom CSS file”.

    Best regards,
    Jack Richardson.

    Avatar: anonprophet
    anonprophet
    Participant
    October 8, 2015 at 05:40

    thanks, how about my 2nd question remove product description

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    October 8, 2015 at 08:00

    Hello,

    You need edit the file wp-content/themes/blanco/woocommerce/single-product/tabs/description.php and delete the title in line 17.

    Best regards,
    Jack Richardson.

  • Viewing 6 results - 1 through 6 (of 6 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.