Replies: 4 comments 8 replies
-
|
Hi @Daveden2! Thank you for sharing your feedback! 🙏 That's a good idea, especially regarding lists! Including a hook to add more HTML tags may be a good idea too. We will consider adding more options in the future, but for not, to ensure consistency these are the available options (see this discussion). As a follow-up, it would be nice to understand use cases for including other HTML tags as @doronwolf asked here. Could you share some other use cases aside from including lists? 🙂 About anchor tags (
|
| Element | Anchor Inside | Anchor Outside |
|---|---|---|
| Div Block | ❌ | ✅ <a>Content</a> |
| Flexbox | ❌ | ✅ <a>Content</a> |
| Heading | ✅ <h2><a>Content</a></h2> |
❌ |
| Paragraph | ✅ <p><a>Content</a></p> |
❌ |
| Image | ❌ | ✅ <a><img></a> |
| SVG | ❌ | ✅ <a><svg></svg></a> |
| YouTube | N/A | N/A |
Anchor tags in atomic Button elements
The Button element is a little different. By default it will output a <button> tag. But as soon as you add a link to this element, it will replace the <button> tag with a <a> (anchor) tag. This will allow to use this element for other things in the future and maintains it semantically accurate.
Here are two buttons side-by-side:
| Button without a Link | Button with a Link |
|---|---|
<button class="e-button-base"> Click here </button> |
<a href="#" target="_self" class="e-button-base"> Click here </a> |
I hope this clarifies your questions about including anchor tags as options.
Let me know if you have further questions! 😉
Beta Was this translation helpful? Give feedback.
-
|
Forgive me if I have misunderstood. If you have an anchor tag inside a |
Beta Was this translation helpful? Give feedback.
-
|
|
Beta Was this translation helpful? Give feedback.
-
|
Hey @Daveden2! How are you? We just released Elementor Editor v3.34 - Beta1, which includes several enhancements based on your feedback! 🙌 For example, now Paragraph Atomic Elements can have a We would love to learn from your feedback regarding these new enhancements and features! Feel free to join the discussion over at https://elemn.to/beta-334 😉 See you there! 💪 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
The fact that we can now interact with the core HTML elements is amazing. However, based on experience with some other builders, it would be awesome if we could add any popular semantic HTML tag to our divs.
<a>or<button>, place a span with text, and an SVG element, and we get our desired button with an icon.ul > li.If possible, we could get a hook to add custom HTML tags that are not included in the list of tags.
I also can't wait to get the dynamic custom attributes.
Agreement
Beta Was this translation helpful? Give feedback.
All reactions