Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1293473

    Hi guys,

    I started the following topic. https://kriesi.at/support/topic/changing-avia-iconbox-title-to-h2/

    I did some changes in the buttons_fullwidth.php section. In particular I mean the following change:
    – Go to /enfold/config-templatebuilder/avia-shortcodes/buttons_fullwidth and copy buttons_fullwidth.php file to your child theme inside /shortcodes/ folder
    – Open buttons_fullwidth.php file on your child theme and find following line

    $content_html .= “<span class=’avia_iconbox_title’ >{$atts[‘label’]}</span>”;

    and change it to following

    $content_html .= “<h2 class=’avia_iconbox_title’ >{$atts[‘label’]}</h2>”;

    After updating Enfold all changes are lost.
    I am now tired of making the changes again after each update. Is there a solution to this that the changes are retained?

    Thanks for your help.

    #1293503

    read carefully: https://kriesi.at/support/topic/changing-avia-iconbox-title-to-h2/#post-1261597

    the child-theme usage of edited enfold alb elements – works if you insert to your child-theme functions.php :

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

    The trick is to have a copy of the alb element ( in your case: buttons_fullwidth.php ) in a subfolder of your child-theme folder: shortcodes and to edit this copy.

    Because this child-theme folder is untouched on an update of the parent theme – entries and edited alb elements are not influenced.
    But if there are major changes on the parent file – you had to synchronize these edited elements again by new edited files.
    But that is something which did not change the layout – it can cause that this alb element didn’t have the new features of the parent element.

    #1293742

    Hi,

    Thanks for sharing and for helping out @guenni007 :-)

    Best regards,
    Rikard

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