MarcusEl Posted July 7, 2022 Share Posted July 7, 2022 Hi, I am trying to figure out how to do formatting in the title part of an accordion block. In particular, I need part of the title to be in italics, like this: Normal text Italics I cannot work out how to do this! Any idea how to format text in the title part of an accordion block? Link to comment
tuanphan Posted July 8, 2022 Share Posted July 8, 2022 First, add this to Settings > Advanced > Code Injection > Footer <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script> $(document).ready(function(){ $("span.accordion-item__title").each(function(){ $(this).html($(this).text()); }); }); </script> Next, edit accordion title, use this format Accordion Item 2 <em>Text 2</em> Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
MarcusEl Posted July 9, 2022 Author Share Posted July 9, 2022 It works, thank you so much for your help! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment