• Resolved mmanning1

    (@mmanning1)


    Hello,
    I am trying vertically align the icon to the start of the doc title, for long titles, in category boxes. I tried this but it didnt work.
    .betterdocs-sidebar-content .betterdocs-categories-wrap li {
    display: block !important;
    }

    Also, is there a way to limit the numbers of words of characters shown on the doc title in the category boxses? I have some long doc titles and they make the category boxes very long.

    Thank you

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support Abid Hasan

    (@abidhasan112)

    Hi @mmanning1 ,

    Please add this CSS on your stylesheet to make icon vertically align for long content on your sidebar:

    .betterdocs-category-sidebar .betterdocs-categories-wrap .docs-item-container li {
        display: block;
    }

    Regarding limiting the number of words of the characters on the doc title in the category boxes, you can use this CSS:

    .betterdocs-category-list .docs-item-container ul li a {
        word-break: break-word;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        line-height: 16px;
        max-height: 40px;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    Hope it helps. You can change the value to max-height: 40px; and see the best suits for your use case.

    Let me know how it goes.
    Thank you!

    Thread Starter mmanning1

    (@mmanning1)

    Hi Abid and thank you,
    I tried both recommendations but they didnt help. Not sure why.

    Thank you

    Plugin Support Abid Hasan

    (@abidhasan112)

    Hi @mmanning1 ,

    Could you please give us your page URL so that we can check from our end and provide the correct CSS in your case?

    Thank you!

    Thread Starter mmanning1

    (@mmanning1)

    Thank you. Anyway to privately send you the URL?

    Plugin Support Abid Hasan

    (@abidhasan112)

    Hi @mmanning1 ,

    You can send us your URL from here: https://wpdeveloper.com/support/new-ticket/

    Thank you!

    Thread Starter mmanning1

    (@mmanning1)

    Done. Thank you.

    Plugin Support Abid Hasan

    (@abidhasan112)

    Hi @mmanning1 ,

    One of our support team members replied to your ticket via our support channel. Has your query been resolved?

    For the future viewer of this topic – Here is the CSS that we provided from our end:

    .betterdocs-categories-wrap.single-kb .docs-item-container li, .betterdocs-popular-list.single-kb ul li {
        display: -webkit-box; !important;
    }
    
    .betterdocs-categories-wrap li a, .betterdocs-popular-list li a {
        word-break: break-word;
        overflow: hidden;
        line-height: 30px !important;
        max-height: 63px !important;
        overflow: hidden;
        display: -webkit-box !important;
    }

    Thank you!

    Plugin Support Abid Hasan

    (@abidhasan112)

    Hi there,

    We haven’t heard back from you in a long time. So, I am assuming your issue has been resolved.

    I am resolving this topic.
    Have a nice day!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Icon Alignment to Title’ is closed to new replies.