Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #888793

    In config-templatebuilder/avia-shortcodes/cell.php, there is the custom_class output missing.

    Adding this to any line before line 431 inside the shortcode_handler method:
    $custom_class = !empty($meta['custom_class']) ? $meta['custom_class'] : '';
    And replacing this on line 431:
    $output = '<div class="flex_cell no_margin '.$shortcodename.' '.$meta['el_class'].' '.$extraClass.' '.avia_sc_cell::$extraClass.'" '.$outer_style.'>';
    with that:
    $output = '<div class="flex_cell no_margin '.$shortcodename.' '.$meta['el_class'].' '.$extraClass.' '.avia_sc_cell::$extraClass.' '.$custom_class.'" '.$outer_style.'>';
    will add the custom class to the element as expected.

    • This topic was modified 6 years, 11 months ago by kraftjungs. Reason: missing line number for the replace
    #889116

    Hey,

    Thanks for sharing, however i tried reproducing the issue on my local installation however custom CSS class field shows up fine and adds the class on my end.
    Please make sure that you are using the latest version of the theme 4.2 – https://kriesi.at/documentation/enfold/updating-your-theme-files/

    Best regards,
    Yigit

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