How do I add a checkbox as a design element to page content?

  • Unknown's avatar

    I’m helping a client with a hosted Premium site.
    I’m trying to add a checkbox, not in a form, but as a simple design element for a FAQ CSS-ONLY dropdown accordion. However, each time I insert it in my page, the input tag gets stripped.

    Example:
    <h1>Welcome to FAQ</h1>

    • <input type=”checkbox” checked>

    Becomes the following after Saving/Updating:
    <h1>Welcome to FAQ</h1>

    I assume this is because WordPress.com doesn’t allow custom forms. I understand this, but why not allow simply allow checkboxes for design purposes?

    Has anyone else successfully utilized a checkbox as a button or other design element on a wordpress.com site?

    FYI – I’ve been a web designer for 20+ years and I’m helping a client with an existing site and the past couple days learning about the limitations of hosted sites on wordpress.com astounds me.

    The blog I need help with is: (visible only to logged in users)

  • Good Morning –

    Which page or post are you working on? Happy to take a closer look at this.

    Will a call to action button work? https://en.support.wordpress.com/wordpress-editor/blocks/buttons-block/

  • The topic ‘How do I add a checkbox as a design element to page content?’ is closed to new replies.