Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #903308

    hi,
    How can I be able to change the title h4 for Icon List to another Hn?

    Best regards

    #903798

    Hey allen,

    You can do this by editing this file in the Enfold: enfold > config-templatebuilder > avia-shortcodes > iconlist.php and look for this code (line 556):

    $title_el = "h4";

    replace it with another heading tag. :)

    Also, I would like to recommend using a child theme: https://kriesi.at/documentation/enfold/using-a-child-theme/

    Best regards,
    Nikko

    #903934

    i did this to have a setting field for icon-box and icon-list alb element. (sinse Enfold 4 – do not try it if you are using an older version)
    You can download those files here: Download
    The best way is to have those files in child-theme/shortcodes. folder
    and to include them by functions.php in your child-theme:

    add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1);
    function avia_include_shortcode_template($paths){
      $template_url = get_stylesheet_directory();
          array_unshift($paths, $template_url.'/shortcodes/');
      return $paths;
    }

    for the list i do not set the possibility to have h1 because there should be only one h1 each page!
    looks this way: https://postimg.org/gallery/144tcszl8/

    #903948

    Hi,

    @Guenni007
    , thank you for sharing your solution.

    Best regards,
    Mike

    #904592

    Thanks @guenni007 .

    I attempted this, NOT using the child theme (the child theme, for whatever reason, doesn’t look the same as the parent theme, even after importing parent theme data and clearing caches).

    Instead, I placed the 2 icon PHP files into themes/enfold/config-template-builder/avia-shortcodes, and pasted the above code into the parent functions.php file. I then get the error code “< class=’iconbox_content_title ‘ itemprop=”headline” >” on the page I wanted to modify. Any ideas what I could be doing wrong? Thanks!

    #904803

    Hi,
    I also tested and found this error is only visible until you edit the page and choose which heading you which to have and then save. I believe that it is when first loaded the option is not set. Afterwards it works fine.
    2018-01-29_234828

    Best regards,
    Mike

    #904807

    it does not work with already setted alb elements – so you have to open them again and save them once more.
    Every new alb element will have that already

    i prooved it again : https://webers-testseite.de/iconlists-and-iconboxes-with-h-tag/

    So if you already have elements set before, then you have to re-edit them – and save

    • This reply was modified 6 years, 10 months ago by Guenni007.
    #904919

    Hi,
    Thanks for confirming. Also thanks for sharing, this works well :)

    Best regards,
    Mike

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.