- Issue created by @drupaldope
- Status changed to Postponed: needs info
over 1 year ago 9:36pm 4 July 2023 - πΊπΈUnited States flashwebcenter Austin TX
Hello,
The screenshot shows it as a button.
https://drupal8-w3css-theme.flashwebcenter.com/w3css-paragraphs/w3css-pa...
yes, button is fine, I would like to use HTML in place of "First Tab Name (1)", for example to use an image or fontawesome
- Assigned to flashwebcenter
- Status changed to Fixed
over 1 year ago 6:13pm 16 July 2023 - πΊπΈUnited States flashwebcenter Austin TX
Hello,
With the css you can add image or fontawesome for each button. But if you want to change the field type from plain text to formatted text, you will have to delete the old field your-site-dotcome/admin/structure/paragraphs_type/w3css_tab_section/fields and create a new field type and update the twig template.
You should always create a backup for the database before work.I attached a screen recording β for the finished example on my local. In my example I deleted the field and created the same field name.
I also attached the changed config file and the twig template β . To use my example you will have to delete the field first then add the two yml file inside the exported config folder then import the new configuration. Then add the twig template to your custom theme.
You will have to tweak some css.Best wishes,
Alaa Thank you Alaa
Actually I added another field and changed the twig template to display that new field instead.
The old field is still used in paragraphs edit form as tab title.Now another issue has appeared, (jQuery, Drupal, once); where once is undefined.
Automatically closed - issue fixed for 2 weeks with no activity.
- Status changed to Fixed
5 months ago 10:31pm 27 June 2024