Features

Character limit for the product titles in AMP Mode

7mo agoIn Review

Hi,
I want to have a character limit for the product titles on AMP mode is there any way to do that?

4 comments

  1. Elly7mo ago

    thanks for your reply is it possible also to make the product prices bigger?

    1. Anonymous7mo ago

      Dear, @Elly
      This area is not for support/customization questions - just inform you !
      I will help you with the question you asked but please, we have support for this or you may ask for help any customization service. So futher questions related to css question I would recommend to ask on our support of additional custom service.
      body li.product .price {
      font-size: 20px;
      }
      https://prnt.sc/YdPNt6rwOP6s
      Regards, Jack Richardson

  2. Anonymous7mo ago

    Hello @Elly,

    You may add custom CSS to XStore AMP section 
you may reach next few types of results 


    1/ https://prnt.sc/uLqVJuqUxM6V by adding next custom CSS 
li.product h2 {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    }


    2/ https://prnt.sc/yB5-BpA-7yxX by adding next custom CSS 
li.product h2 {
    line-height: 3ex;
    height: calc(2 * 3ex);
    overflow: hidden;
    display: inline-block;
    }
    You may read more about XStore AMP settings here -> https://xstore.helpscoutdocs.com/article/111-general-info-amp
    Regards, Jack Richardson

    1. Elly7mo ago

      hi when I use this code the shop page and product category page shows missing

      li.product h2 {
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;
      }