Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: Fixed height for product titles in Archive/Catalog pages

Discussion in 'Misc WordPress Requests' started by Vajrasar Goswami, Apr 7, 2018.

  1. Vajrasar Goswami

    Guest

    Reply To: Fixed height for product titles in Archive/Catalog pages, by Vajrasar Goswami

    Hi @geoffatmm. This is a common problem as the title strings will vary on certain products.

    One quick fix is to identify the max title length and assign the title div height based on that. In your case I can see that your titles are max expanding to 3 lines. You can add following to your CSS and the title container for all the titles will be specific in height to contain 3-lines without disturbing the layout.

    .post-type-archive .title {
    min-height: 88px !important;
    }

    Another way is to write few lines of JS/jQuery to restrict titles on certain character count. Also, I’m sure you can also look into plugin or code solutions for the same.

    Reply To: Fixed height for product titles in Archive/Catalog pages
     
    #1

Share This Page

Monarch Social Sharing Plugin