• Resolved sand99

    (@sand99)


    Hello,
    is it possible, to show the value of a attribute as html code?

    So for example, now it’s shown as: <p>text<br />
    and I want the text to be bold.

    Any Ideas?

    Thank you all!

    • This topic was modified 3 years, 5 months ago by sand99.
    • This topic was modified 3 years, 5 months ago by sand99.
    • This topic was modified 3 years, 5 months ago by sand99.
Viewing 4 replies - 1 through 4 (of 4 total)
  • On mine I can use:

    .variations .enabled{
    font-weight:bold;
    }

    Can you share a link to your site so we can get a better idea of what CSS would be needed.

    Thread Starter sand99

    (@sand99)

    Thanks, but it’s not 100% the correct answer.

    Here is a snippet of the code, my site is not online yet

    <td class="woocommerce-product-attributes-item__value"><p><p><strong>Gefahrenhinweise zum Harz</strong><br /><br>
    H411 Giftig für Wasserorganismen, mit langfristiger Wirkung.</p></p>
    <p><p><strong>Sicherheitshinweise zum Harz</strong><br /><br>
    P102 Darf nicht in die H?nde von Kindern gelangen.<br /><br>
    zuführen.</p></p>
    <p><p><strong>Gefahrenhinweise zum H?rter</strong><br /><br>
    H332 Gesundheitssch?dlich bei Einatmen.<br /><br>
    /><br>
    Eventuell vorhandene Kontaktlinsen nach M?glichkeit entfernen. Weiter ausspülen.</p></p>
    </td>

    So the theme (Kadence) puts all my Value Text (which is written in html) into new <p> elements and displays it with all the coding stuff. So all the < and > are visible. And for example the tag doesn’t do anything.

    I hope you can understand what I mean..

    Ah sorry – I misunderstood the question – you mean that the attributes are being displayed as HTYML code instead of a properly formatted list?

    If so then that’s an issue with the theme or a conflict with another plugin – I’d suggest you reach out to the Kadence support.

    Hi @sand99

    We’ve not heard back from you in a while, so I’m marking this thread as resolved. Hopefully, you were able to find a solution to your problem! If you have other questions, please feel free to open a new topic.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Attributes as html’ is closed to new replies.