Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #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!

    #1461321

    First : 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.

    #1461329

    Hey 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:

    https://github.com/KriesiMedia/enfold-library/tree/master/temp_fixes/enfold_6_0/config-templatebuilder/avia-shortcodes/toggles

    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ünter

    #1461334

    hm – 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

    #1461340

    Hallo 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
    Julian

    #1461366

    But did you try to use now the tags as before? as far as i understand he fixed it.
    my solution is something if you use many of them and want to wrap all at once in <sup></sup>
    that warning comes always – when using tags.

    #1461381

    Hi,


    @Guenni007

    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ünter

    #1461444

    Thank you! Now it works again!

    Great support as always!

    Best regards,
    Julian

    #1461486

    Hi,
    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

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘HTML characters broken in accordion title’ is closed to new replies.