You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Online

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

#117680 Plugin Style CSS - problem with HTML tag a

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by XavierM on Tuesday, 19 May 2026 21:01 BST

XavierM

Hi,

For a tag HTML we can't select  a custom style.

I enclose 3 images :

  • custom Style setting with class="button" for a tag.
  • in article editor trying to select custom style "Bouton en savoir plus"
  • in article code showing a tag 2026 with no class (the class for a tag 2025 has been added manually)

Many thanks for your help.

Attachments

Ryan

In the Style Select (Styles CSS) parameters, set the Tag (Belise) option to None (Apply to Selected Tag) (Aucun (peut s'appliquer à toutes balises))

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

XavierM

Thanks for your reply.

But if I do so, the class is set to p tag. (see image enclosed)

Attachments

Ryan

But if I do so, the class is set to p tag.

That should only when selecting the link, you also selected text outside of the link. Do you get the same result if you select the link by double-clicking on it?

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

XavierM

I tried to double click but it selects 1 word, the button text has 4 words

Ryan

Try this:

  1. Make sure the Tag option is reset as suggested in my previous post. Selecting a tag option is for creating the element, not updating an existing one.
  2. it can be difficult to select a link with a drag select, so you only need to click anywhere in the link (single click), then select and apply your style from the Styles list.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

XavierM

ok understood, what we did wrong was to select the whole link

Many thanks