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

    Hello,
    How can I replace the line on the testimonial link with an icon?
    Picture
    Picture Link

    Thanks, Enrico

    #756658

    i think it will be the best if you change the testimonial.php

    copy a testimonial.php to your child-theme / shortcodes folder
    if this does not exist – create one.
    the file to copy is in enfold/config-templatebuilder/avia-shortcodes/

    and add this to your child-theme 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;
    }

    now the copy will be used instead of the parent-theme shortcode.

    see line : 420/421:

    if($link)	$output .= "<span class='hidden avia-testimonial-markup-link'  {$markup_url}>{$link}</span>";
    if($link)	$output .= " &ndash; <a class='aviablank avia-testimonial-link' href='{$link}' >{$linktext}</a>";

    here is your “-” that &ndash; delete it to have:

    if($link)	$output .= "<span class='hidden avia-testimonial-markup-link'  {$markup_url}>{$link}</span>";
    if($link)	$output .= " <a class='aviablank avia-testimonial-link' href='{$link}' >{$linktext}</a>";

    if you like to insert later an icon you can place it then via pseudoclass :before f.e:

    .avia-testimonial-link::before {
        content: "\e822 \00a0";
        font-family: entypo-fontello;
    }

    Result here: Link

    #756664

    the dash is to seperate from jobdescription. !
    if you can live with the dash and ad only an icon infront of the link you only need the last css code

    #756705

    Hi,

    Thanks for the great tip @Guenni007

    Let us know if that works for you :)

    Best regards,
    Vinay

    #756838

    Wow, thats great. Thanks Guenni007 :)
    Topic solved.

    #757420

    Hi,

    Glad that it’s fixed. Thanks @Guennie007 :)

    Best regards,
    Nikko

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Replace line on testimonial link with an icon?’ is closed to new replies.