-
AuthorPosts
-
July 26, 2018 at 8:52 pm #990420
Hi !
I would like to change the title of the icon boxes for H2, it possible ?
July 26, 2018 at 9:13 pm #990429Hey Marie-Claude,
I’m not quite sure what you mean. Can you be a little more clear? Are you not changing the title via the textbox provided?
Best regards,
Jordan ShannonJuly 26, 2018 at 9:19 pm #990438read carefully on top of this page – it works with child-theme and edited Alb Elements:
https://webers-testseite.de/edited-enfold-alb-elements/#iconsor if you only want that for all icon-box titles instead of h3 a h2 – put this to functions.php of your child-theme
function replace_tags_with_tags(){ ?> <script> (function($) { function replaceElementTag(targetSelector, newTagString) { $(targetSelector).each(function(){ var newElem = $(newTagString, {html: $(this).html()}); $.each(this.attributes, function() { newElem.attr(this.name, this.value); }); $(this).replaceWith(newElem); }); } replaceElementTag('h3.iconbox_content_title', '<h2></h2>'); //you can add here more tag replacements }(jQuery)); </script> <?php } add_action('wp_footer', 'replace_tags_with_tags');
July 26, 2018 at 9:20 pm #990439This reply has been marked as private.July 26, 2018 at 9:33 pm #990449the function above is a general tag replacement function under preventing every attribut set on the original tag
the lines of replacement are only separated by semicolon. so for example if you like to switch in the footer from h3 headings to h2 headings only add in the function:replaceElementTag('h3.widgettitle', '<h2></h2>');
July 26, 2018 at 10:22 pm #990478Hi,
Please provide a link to the site/page where the icon is showing. If all you want to change is the case then it sounds like css text-transform can be used.
Best regards,
Jordan ShannonJuly 26, 2018 at 10:29 pm #990481i thought he/she likes to replace the default h3 Iconbox title to a h2 title. – but i can not see the hidden private content – maybe there is more info on this.
July 26, 2018 at 10:33 pm #990482Yes It’s that ! :-)
July 26, 2018 at 10:35 pm #990483Here !
Is it the box yellow, blue and green…
Thanks !July 26, 2018 at 10:47 pm #990487Hi,
Add this to quick css:.iconbox .iconbox_content .iconbox_content_title{ text-transform:none!important; }
Best regards,
Jordan ShannonJuly 26, 2018 at 11:02 pm #990490This reply has been marked as private.July 26, 2018 at 11:17 pm #990494Hi,
Please add my css to the very top of quick css so that it runs first, and then clear your cache a few times over.
Best regards,
Jordan ShannonAugust 14, 2018 at 9:03 pm #997294Thank you, all it’s ok :-)
August 14, 2018 at 9:11 pm #997304Hi,
I’m glad this was able to get resolved. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘Change title H2 in’ is closed to new replies.