Tagged: content slider
-
AuthorPosts
-
June 23, 2020 at 5:43 pm #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?June 24, 2020 at 2:58 am #1224986Hi 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-albBest regards,
NikkoJune 24, 2020 at 11:04 am #1225116Hi Nikko,
Thanks for helping out. Unfortunately the solution will not make the columns into 7… any idea what we are doing wrong?
June 25, 2020 at 12:26 am #1225382Hi 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,
NikkoJune 26, 2020 at 3:08 pm #1225853Hi Nikko,
That worked like a charm, thank you so much!
June 26, 2020 at 5:22 pm #1225941Hi hotspot,
Glad we could help :)
If you need further assistance please let us know.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.