Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #990420

    Hi !

    I would like to change the title of the icon boxes for H2, it possible ?

    #990429

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

    #990438

    read carefully on top of this page – it works with child-theme and edited Alb Elements:
    https://webers-testseite.de/edited-enfold-alb-elements/#icons

    or 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');
    #990439
    This reply has been marked as private.
    #990449

    the 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>');

    #990478

    Hi,

    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 Shannon

    #990481

    i 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.

    #990482

    Yes It’s that ! :-)

    #990483

    Here !

    Is it the box yellow, blue and green…
    Thanks !

    #990487

    Hi,
    Add this to quick css:

    .iconbox .iconbox_content .iconbox_content_title{
    text-transform:none!important;
    }

    Best regards,
    Jordan Shannon

    #990490
    This reply has been marked as private.
    #990494

    Hi,

    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 Shannon

    #997294

    Thank you, all it’s ok :-)

    #997304

    Hi,

    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

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘Change title H2 in’ is closed to new replies.