Sticky Add to cart button not showing full product title

This topic has 3 replies, 2 voices, and was last updated 1 years, 5 months ago ago by Sadikul Islam

  • Avatar: Sadikul Islam
    Sadikul Islam
    Participant
    June 20, 2023 at 14:50

    Hi, the sticky add-to-cart bar is not showing the full title, it limits characters, How can I show the full title of the product in the bar?

    See the screenshot and website link in the private content area.

    Thank you

    Please, contact administrator
    for this information.
    2 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    June 20, 2023 at 16:25

    Hello, Sadikul Islam,

    Thank you for contacting us and for using XStore.

    Add the next code in functions.php of your child theme:

    add_filter('etheme_sticky_cart_title', function ($title, $full_title) {
        return $full_title;
    }, 10, 2);

    Filter to show the full title in the sticky panel instead of cropped one by 30 chars.

    Kind Regards,
    8theme team

    Avatar: Sadikul Islam
    Sadikul Islam
    Participant
    June 20, 2023 at 18:25

    Thank you for the code, one more question: how do I change the font and size and how much spacing it expands,

    the link is in the private area

    Please contact administrator
    for this information.
  • Viewing 3 results - 1 through 3 (of 3 total)

The issue related to '‘Sticky Add to cart button not showing full product title’' has been successfully resolved, and the topic is now closed for further responses

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