![Check out Enfold](https://kriesi.at/wp-content/themes/kriesi/images/banner-enfold.jpg)
-
AuthorPosts
-
July 3, 2024 at 5:43 pm #1461237
We need to use HTML characters in accordion titles because we use brand names which needs a “<sup>®</sup>”. Since the last update, HTML is escaped in all accordion titles.
How can I fix this?
Thanks in advance!July 4, 2024 at 1:30 pm #1461321First : how do you insert that registered mark to your title. Copy paste from an existing one – or do you use a html entity?
Sorry – my code had to be updated with vers. 6 – …
please try on child-theme functions.php:function wrap_copyright_text_with_sup(){ ?> <script> (function($) { $(window).on('load', function(){ $('body :not(script)').contents().filter(function() { return this.nodeType === 3 ; }).replaceWith(function() { return this.nodeValue.replace(/[™®©]/g, '<sup>$&</sup>'); }); }); })(jQuery); </script> <?php } add_action('wp_footer', 'wrap_copyright_text_with_sup');
But i do not know why on toggle titles this happens twice. …
maybe a mod knows why – guess it has to do with the way the opended toggle Title is set.July 4, 2024 at 2:26 pm #1461329Hey conflock,
Thank you for reporting this – and sorry for the problems.
Will be fixed in next release.
Meanwhile you can replace the content of folder “..\enfold\config-templatebuilder\avia-shortcodes\toggles\” with the files of:
If you need help let us know and we can do it for you.
In case you have enabled file compression please disable it, save theme options, enable it again and save theme options again.
Best regards,
GünterJuly 4, 2024 at 3:16 pm #1461334hm – even after replacing all files the script does not work on toggle titles as expected.
See on headings and in text block alb all is ok.
https://webers-testseite.de/accordion/Edit : i removed the script to show that the fix is working on toggle titles
July 4, 2024 at 3:49 pm #1461340Hallo Günter,
first of all, thanks for the fast reply! Unfortunately, it doesn’t work on the accordion titles.
Please let me know if there is a solution, as we face this problem on several websites.
Best regards and thank you
JulianJuly 4, 2024 at 6:50 pm #1461366July 4, 2024 at 8:47 pm #1461381Hi,
I forgot to mention that when using HTML markup in toggle title the open toggle title is ignored (there is a message in the description text). This is a limitation – but I think something to live with.
In your test site https://webers-testseite.de/accordion it works as it should – with fixed toggle title as it did before 6.0 where we added the open toggle title option.
@conflock
Did you clear browser cache? See example of @Guenni007.
Can you give me a access to a staging site with full WP admin access where I can see why it is not working ?
Best regards,
GünterJuly 5, 2024 at 3:28 pm #1461444Thank you! Now it works again!
Great support as always!
Best regards,
JulianJuly 6, 2024 at 3:19 pm #1461486Hi,
Glad Günter and Guenni007 could help you sort this out, thank you Guenni007, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
Mike -
AuthorPosts
- The topic ‘HTML characters broken in accordion title’ is closed to new replies.