I need to know how to add an attribute on my website
-
I am trying to list more than one thing on the same page but having trouble doing so
One of my products have 5 different flavors and I want to list all five on one page -
Hi,
I’m not sure exactly what you envision, but if it’s just a list (of words or links), then may collapsible content would suit. See the Collapsible Content (accordion effect) section of the Advanced HTML support page for relevant information and instructions.
Example (click the caret to display the list):
<details><summary>flavors</summary>- vanilla
- strawberry
- butter pecan
- pistachio
- chocolate chip
The code for that is:
<details><summary>flavors</summary> <ul> <li><a href="https://en.wikipedia.org/wiki/Vanilla">vanilla</a></li> <li><a href="https://en.wikipedia.org/wiki/Strawberry">strawberry</a></li> <li>butter pecan</li> <li>pistachio</li> <li>chocolate chip</li> </ul>If you’re instead referring to drop-down items in a site menu, or have something else in mind, then let us know.
-
The code obviously didn’t work here, but it works perfectly in a WordPress.com post, page, text widget, etc., just like the example in the support page.
- The topic ‘I need to know how to add an attribute on my website’ is closed to new replies.