Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #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,
    Manuela

    #1347091

    Hey 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,
    Ismael

    #1348122

    Hi 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,
    Manuela

    #1348148

    Hi 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,
    Yigit

    #1348194

    Hi,
    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_shortcod

    If I remove the function I don’t see any changes in the testimonial.
    How can I fix it?

    Thank you for your support,
    Manuela

    #1348232

    Hi,

    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,
    Ismael

    #1348258

    Hi,
    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/W2h1HyFtWvJE60kBBgpXINGCbCYdwd

    Thank you for your support,
    Manuela

    #1348468

    Hi,

    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,
    Ismael

    #1348545

    Hi,
    yes now it works,
    Thank you for your support,
    Manuela

    #1348553

    Hi,
    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

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Dot and Testimonials’ is closed to new replies.