Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1224924

    Hi,

    We need more that 6 columns in the ‘content slider’, how can we achieve this?
    Noticed the ‘av_one_sixth’ style, is there a way to add the av_one_seventh or something?

    #1224986

    Hi hotspot,

    You will need to do the following steps:
    1. (skip if you have one) Use a child theme. Instructions and the child theme can be downloaded here: https://kriesi.at/documentation/enfold/child-theme/
    2. Next, you’ll need to tweak the Content Slider, Add this code in your child theme’s functions.php:

    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;
    }

    3. Then copy this folder from the Enfold theme is wp-content > themes > enfold > config-templatebuilder > avia-shortcodes > contentslider
    4. In your child theme create a folder named shortcode then paste the copied folder inside it.
    5. Inside the contentslider folder, edit contentslider.php and find this code (should be in line 677):

    case '6': $grid = 'av_one_sixth'; break;

    below it, add this:

    case '6': $grid = 'av_one_seventh'; break;

    Hope this helps. :)
    Documentation Link: https://kriesi.at/documentation/enfold/intro-to-layout-builder/#add-elements-to-alb

    Best regards,
    Nikko

    #1225116

    Hi Nikko,

    Thanks for helping out. Unfortunately the solution will not make the columns into 7… any idea what we are doing wrong?

    #1225382

    Hi hotspot,

    I apologize I missed some steps and posted a wrong code, please replace this code:

    case '6': $grid = 'av_one_seventh'; break;

    to

    case '7': $grid = 'av_one_seventh'; break;

    and on the same file, please find this code (line 224):

    __( '6 Columns', 'avia_framework' )	=> '6'

    replace it with:

    __( '6 Columns', 'avia_framework' )	=> '6',
    __( '7 Columns', 'avia_framework' )	=> '7'

    and finally on your Content Slider, change the number of columns to 7. :)

    Best regards,
    Nikko

    #1225853

    Hi Nikko,

    That worked like a charm, thank you so much!

    #1225941

    Hi hotspot,

    Glad we could help :)

    If you need further assistance please let us know.
    Best regards,
    Victoria

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