-
AuthorPosts
-
April 1, 2022 at 3:11 pm #1346905
Hi,
I would like to insert the points below in the testimonials instead of the side arrows, what can I do?
Something like this: https://monosnap.com/file/gWEAfphgbhjQEJOstAdhEprNfpWQS0
Thank you for your support,
ManuelaApril 4, 2022 at 5:54 am #1347091Hey Manuela,
Thank you for the inquiry.
This is possible but you have to modify the enfold/config-templatebuilder/avia-shortcodes/testimonials/testimonials.php file directly. We provided a modified version of the testimonial element below with the slider dots.
// https://pastebin.com/raw/bHghKdk2
Best regards,
IsmaelApril 12, 2022 at 4:02 pm #1348122Hi Ismael,
and to do this I have to create the testimonials.php file inside the child theme, right?
and then inside it, I copy the code you gave me: // https://pastebin.com/raw/bHghKdk2
Thanks for the support,
ManuelaApril 12, 2022 at 6:45 pm #1348148Hi Manuela,
Yes, that is true. Then you can refer to this post – https://kriesi.at/documentation/enfold/intro-to-layout-builder/#add-elements-to-alb to load the file from your child theme.
Best regards,
YigitApril 13, 2022 at 9:01 am #1348194Hi,
I followed the post you suggested: https://kriesi.at/documentation/enfold/intro-to-layout-builder/#add-elements-to-alb
I created the file in the ” testimonials.php” folder of the child theme.
I inserted the function in the function.php file, but I get the error you see in the image: https://monosnap.com/file/xLnW2GXhcSZxglvooVFUjGSBns5Iy8
WordPress sent me an email with the details of the error:Error Details
=============
An error of type E_ERROR was caused in line 731 of the file /home/customer/www/leagrowingpeople.com/public_html/wp-content/themes/enfold-child/shortcodes/testimonials.php. Error message: Uncaught Error: Call to undefined method aviaElementStyling::add_responsive_classes() in /home/customer/www/leagrowingpeople.com/public_html/wp-content/themes/enfold-child/shortcodes/testimonials.php:731
Stack trace:
#0 /home/customer/www/leagrowingpeople.com/public_html/wp-content/themes/enfold-child/shortcodes/testimonials.php(931): avia_sc_testimonial->get_element_styles(Array)
#1 /home/customer/www/leagrowingpeople.com/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-template.php(1123): avia_sc_testimonial->shortcode_handler(Array, ‘\n[av_test…’, ‘av_testimonials’, Array)
#2 /home/customer/www/leagrowingpeople.com/public_html/wp-includes/shortcodes.php(356): aviaShortcodeTemplate->shortcode_handler_prepare(Array, ‘\n[av_test…’, ‘av_testimonials’)
#3 [internal function]: do_shortcode_tag(Array)
#4 /home/customer/www/leagrowingpeople.com/public_html/wp-includes/shortcodes.php(228): preg_replace_callback(‘/\\[(\\[?)(av_tes…’, ‘do_shortcodIf I remove the function I don’t see any changes in the testimonial.
How can I fix it?Thank you for your support,
ManuelaApril 13, 2022 at 1:03 pm #1348232Hi,
Thank you for the update.
The error occurs because you haven’t created a new shortcode path in the child theme directory. To do that, we added this code in the functions.php file.
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; }
We also added this css code in the style.css file to adjust the position of the dots a bit.
.avia-slideshow-dots a { display: inline-block; } .avia-slideshow-dots { bottom: -30px; }
Best regards,
IsmaelApril 13, 2022 at 4:27 pm #1348258Hi,
Sorry how come I only see 2 testimonials when there should be 6?
Look at the image:
https://monosnap.com/file/KGtjYlhQG4VcBObP3iHO0EC7gIMbOX
https://monosnap.com/file/W2h1HyFtWvJE60kBBgpXINGCbCYdwdThank you for your support,
ManuelaApril 15, 2022 at 3:17 am #1348468Hi,
Sorry for about that. We adjusted this line (980) to get the actual number of entries or testimonials.
'total_entries' => avia_sc_testimonial::$counter - 1, 'container_entries' => 1,
The correct number of dots should display now.
Best regards,
IsmaelApril 16, 2022 at 12:45 pm #1348545Hi,
yes now it works,
Thank you for your support,
ManuelaApril 16, 2022 at 1:14 pm #1348553Hi,
Glad Ismael could help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
Mike -
AuthorPosts
- The topic ‘Dot and Testimonials’ is closed to new replies.