Tuesday, August 30, 2022
HomeWordPress DevelopmentCustomized headings on WYSIWYGs per versatile content material module in ACF

Customized headings on WYSIWYGs per versatile content material module in ACF


We’ve got a grasp versatile content material subject. In that subject, are all the elements we provide the shoppers to construct with. We have to goal ONE of these versatile content material subject choices, and make sure the WYSIWYG editor on that one part, solely lets you choose H5 and H6 (Not 1, 2, 3, and 4, because it’s 4 ranges deep already.). Undecided if it is related, however among the modules within the FCM are clones of different subject teams, the place the WYSIWYG lives.

We aren’t on the lookout for the worldwide setting that modifications all WYSIWYGs because it’s solely the one part we need to change. We’re already disabling the H1 globally utilizing the “tiny_mce_before_init” filter and rendering 2-6 in that method.

Have not discovered something but by means of digging by means of filters, however good probability I am lacking one thing. Ideally this resolution can be scalable, to permit any FCM to be overridden to ensure the right headings are at all times accessible per part. Any perception on what filters to have a look at, and many others, can be enormously appreciated. Thanks in superior.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments