-
AuthorPosts
-
March 6, 2017 at 10:55 pm #756617
Hello,
How can I replace the line on the testimonial link with an icon?

Picture LinkThanks, Enrico
March 6, 2017 at 11:59 pm #756658i 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 .= " – <a class='aviablank avia-testimonial-link' href='{$link}' >{$linktext}</a>";here is your “-” that
–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
March 7, 2017 at 12:14 am #756664the 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 codeMarch 7, 2017 at 3:20 am #756705March 7, 2017 at 8:47 am #756838Wow, thats great. Thanks Guenni007 :)
Topic solved.March 8, 2017 at 1:33 am #757420Hi,
Glad that it’s fixed. Thanks @Guennie007 :)
Best regards,
Nikko -
AuthorPosts
- The topic ‘Replace line on testimonial link with an icon?’ is closed to new replies.
