Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #467881

    Hello,
    I want to change the position of the authors name above the text description and also the color of the authors name in my testimonial.

    How can I realize it with my child-theme?

    #468303

    Hi paaploo!

    Could you provide us with a link to the site in question so that we can take a closer look please?

    Regards,
    Rikard

    #468744

    of course …

    #468981

    Hey!

    Please go to Enfold/config-templatebuilder/avia-shortcodes and open testimonials.php file and find

    				$output .= 		"<div class='avia-testimonial-content {$this->content_class}'  {$this->content_styling} {$markup_text}>";
    				$output .= 		ShortcodeHelper::avia_apply_autop(ShortcodeHelper::avia_remove_autop($content));
    				$output .= 		"</div>";
    				$output .= 			"<div class='avia-testimonial-meta'><div class='avia-testimonial-arrow-wrap'><div class='avia-arrow'></div></div>";
    	if(!$grid)  $output .=  $avatar;
    				$output .= 				"<div class='avia-testimonial-meta-mini'>";
    	if($name)	$output .= 					"<strong  class='avia-testimonial-name'  {$this->title_styling} {$markup_name}>{$name}</strong>";
    if($subtitle)	$output .= 					"<span  class='avia-testimonial-subtitle {$this->subtitle_class}' {$this->title_styling}  {$markup_job}>{$subtitle}</span>";
        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>";
    				$output .= 				"</div>";
    				$output .= 			"</div>";

    and change it to

    				$output .= 			"<div class='avia-testimonial-meta'><div class='avia-testimonial-arrow-wrap'><div class='avia-arrow'></div></div>";
    	if(!$grid)  $output .=  $avatar;
    				$output .= 				"<div class='avia-testimonial-meta-mini'>";
    	if($name)	$output .= 					"<strong  class='avia-testimonial-name'  {$this->title_styling} {$markup_name}>{$name}</strong>";
    if($subtitle)	$output .= 					"<span  class='avia-testimonial-subtitle {$this->subtitle_class}' {$this->title_styling}  {$markup_job}>{$subtitle}</span>";
        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>";
    				$output .= 				"</div>";
    				$output .= 			"</div>";
    				$output .= 		"<div class='avia-testimonial-content {$this->content_class}'  {$this->content_styling} {$markup_text}>";

    and then refer to this post to move it to your child theme – http://kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/
    and add following code to Quick CSS in Enfold theme options under General Styling tab to change authors name color

    .avia-testimonial-name {
      color: orange!important;
    }

    Cheers!
    Yigit

    #469007

    Hi Yigit,
    the color change works fine and also the name is above, but the text-discription from the testimonial is gone :-(

    • This reply was modified 9 years, 4 months ago by paaploo.
    #471434

    Hello,
    can somebody help?

    #471570

    Hey!

    Please change the code in testimonials.php file to following one

    				$output .= 			"<div class='avia-testimonial-meta'><div class='avia-testimonial-arrow-wrap'><div class='avia-arrow'></div></div>";
    	if(!$grid)  $output .=  $avatar;
    				$output .= 				"<div class='avia-testimonial-meta-mini'>";
    	if($name)	$output .= 					"<strong  class='avia-testimonial-name'  {$this->title_styling} {$markup_name}>{$name}</strong>";
    if($subtitle)	$output .= 					"<span  class='avia-testimonial-subtitle {$this->subtitle_class}' {$this->title_styling}  {$markup_job}>{$subtitle}</span>";
        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>";
    				$output .= 				"</div>";
    
    				$output .= 		"<div class='avia-testimonial-content {$this->content_class}'  {$this->content_styling} {$markup_text}>";
    				$output .= 			"</div>";

    Cheers!
    Yigit

    • This reply was modified 9 years, 4 months ago by Yigit.
    #471590

    Hi Yigit,
    thank you for your answer – but it doesn’t work :-(

    #471596

    Hey!

    I have updated the code above. Please try it now, if that too does not work, please undo all the changes and let us know.

    Best regards,
    Yigit

    #471600

    :-(

    it doesn’t work – the code is now the original

    #471605

    Hi!

    I have added following code to Functions.php file in Appearance > Editor

    
    function add_custom_script(){
    ?>
    <script>
    jQuery(function() {
    	jQuery(".avia-testimonial-meta-mini").each(function(){
    		jQuery(this).closest('.avia-testimonial_inner').prepend(jQuery(this));
    	});
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_script');

    and then added following code to bottom of Style.css file of your child theme

    
    .avia-testimonial-meta-mini {
      margin-left: 100px;
    }
    .avia-testimonial-image {
      margin-top: -50px;
    }

    Please review your website now

    Best regards,
    Yigit

    #472207

    Hi Yigit,
    thank you – it works :-)

    Is it possible to get the pictures in the position of the name? Now it is near by the description …

    #472224

    Hey!

    This part of code was removed from your style.css file

    .avia-testimonial-image {
      margin-top: -50px;
    }

    I added once again, please review your website now.
    Regards,
    Yigit

    #472240

    Thank you very much for your excellent support :-) It works fine.

    #472243

    Hi!

    You are welcome, we are always happy to help :)
    For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
    And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
    For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)

    Cheers!
    Yigit

Viewing 15 posts - 1 through 15 (of 15 total)
  • The topic ‘Testimonial Author Position and Color’ is closed to new replies.