Home Forums WoodMart support forum Split: Gutenberg Blocks not available

Split: Gutenberg Blocks not available

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #710975

    Maki889
    Participant

    Hello, I’m currently redesigning my website and am using the “Pets” pre-built website, which you have implemented really beautifully.

    Unfortunately, the title for category “Nahrungsergänzungsmittel” does not fit in because it too long.
    I would like to split it into two lines, but I can’t find an option to do this. Where can I customize this?

    Attached is a picture of how it currently looks and how it should look.

    Attachments:
    You must be logged in to view attached files.
    #710984

    Maki889
    Participant

    Sorry, I mean category “Ergänzungsfuttermittel”

    #711020

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    Please try to use the below custom CSS code and paste it to Theme Settings >> Custom CSS >> Global CSS section:

    .wp-block-wd-tabs-content.wd-tabs-content-wrapper.wd-37b044f9 .wd-carousel-wrap .wd-carousel-item.wd-slide-visible.wd-full-visible:nth-child(3) a {
        width: 70%;
        display: inline-block;
    }

    Best Regards.

    #711143

    Maki889
    Participant

    Thanks, but the code separates the title not correctly according to German spelling rules.

    The solution acc. to claude.ai (2 steps):
    Step 1: Add a soft hyphen character (U+00AD) to your category name at the correct break point. Go to WooCommerce → Products → Categories → Edit the category. In the name field, place your cursor where you want the hyphen to appear and press Alt + 0173 (Windows numpad). The character is invisible but the browser will break the word there when needed.
    Step 2: Add this to Theme Settings → Custom CSS → Global. Change data-loop=”3″ to match the position of your category tile:

    css/* Fix: Soft hyphen word-break on mobile for long category names (3rd tile) */
    .wd-cat[data-loop=”3″] .wd-cat-content,
    .wd-cat[data-loop=”3″] .wd-cat-header,
    .wd-cat[data-loop=”3″] .wd-entities-title,
    .wd-cat[data-loop=”3″] .wd-entities-title a {
    display: block !important;
    overflow: visible !important;
    overflow-wrap: normal !important;
    word-wrap: normal !important;
    word-break: normal !important;
    -webkit-hyphens: manual !important;
    hyphens: manual !important;
    white-space: normal !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    max-height: none !important;
    text-overflow: unset !important;
    }

    Why it works:
    The key is overriding display: flex/inline-flex with display: block and setting overflow-wrap: normal instead of break-word. With break-word, the browser is allowed to break the word anywhere and ignores the soft hyphen. With normal, the browser is forced to only break at the soft hyphen position, displaying a proper hyphen character.

    Hope this helps for everyone with the same issue. You can close this topic (and the old one).

    #711191

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    Thank you for sharing the detailed solution and explanation.

    Using a soft hyphen together with the CSS adjustment is a good approach for controlling the word break according to the correct language rules, and we appreciate you posting it here as it may also help other users facing a similar situation.

    I will now mark this topic as resolved. If you have any other questions or need further assistance, feel free to open a new topic.

    Best Regards.

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Split: Gutenberg Blocks not available’ is closed to new replies.