• Resolved Supplement Genie

    (@supplementgenie)


    I am adding descriptions to each of my brand pages similar to what I have dome on my woocommerce categories.

    With my categories, I have it so that the full description is shown on desktop with only a snippet shown on mobile devices with the option to show more.

    I have used the following code

    <div><input id=”post-1″ class=”read-more-state” type=”checkbox” />
    <div class=”read-more-wrap”>
    <h2>Heading 2</h2>
    <p>Main snippet.</p>
    <div class=”read-more-target”>
    <p>Additional Info.</p>
    <p>Additional Info 2.</p>
    <p>Additional Info 3</p>
    </div>
    </div>
    <label class=”read-more-trigger” for=”post-1″></label>
    </div>

    In the categories section, this works perfect, however when adding this to brands the `<div> elements get deleted and I am left with:

    <h2>Heading 2</h2>
    <p>Main snippet.</p>
    <p>Additional Info.</p>
    <p>Additional Info 2.</p>
    <p>Additional Info 3</p>

    Is there anything I can do to enter the code without it being changed by the plugin?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom code in text area of description being removed’ is closed to new replies.