emichaels
asked 7 years ago

I would like to UNLINK the Testimonial Company field from the Website field within the DW Page Testimonial blocks. This takes the visitor off my site and to my client’s site.
In a related note: After I discovered it was doing that, I tried to delete the name OUT of the Company field, but it won’t let me! I delete the Company name, hit update, but the name is still there.
 

2 Answers
Jackie Lord
answered 6 years ago

In order to un-link client from testimonial sections, please open file testimonials.php in the folder path: /wp-content/themes/dw-page/inc/ 
Replace the following code:

 <cite>
<img src="'. get_post_meta(get_the_ID(), '_testimonial_avatar', true) .'" class="avatar" alt="" />
<strong>'. get_post_meta(get_the_ID(), '_testimonial_name', true) .'</strong>
'. get_post_meta(get_the_ID(), '_testimonial_job', true) .' at <a href="'. get_post_meta(get_the_ID(), '_testimonial_website', true) .'">'. get_post_meta(get_the_ID(), '_testimonial_company', true) .'</a>
</cite>

by this one:

 <cite>
<img src="'. get_post_meta(get_the_ID(), '_testimonial_avatar', true) .'" class="avatar" alt="" />
<strong>'. get_post_meta(get_the_ID(), '_testimonial_name', true) .'</strong>
'. get_post_meta(get_the_ID(), '_testimonial_job', true) .' at '. get_post_meta(get_the_ID(), '_testimonial_company', true) .'
</cite>

Hope this helps!

emichaels
replied 6 years ago

Thank you for your help, I really appreciate it. But that code did not seem to help, both of the issues are still there.

Jackie Lord
replied 6 years ago

Can you send your website URL and admin account for further checking (via private answer below)

DominicStaff
answered 6 years ago

Hi Emichaels !
You can log open the shortcode.php file in the folder path “\wp-content\themes\dw-page-modern\inc”. Find the line 290.
Replace the following code:

<small>'.$name.$job.' <cite><a href="'.$website.'">'.$company.'</a></cite></small>

With new code:

<small>'.$name.$job.' <cite><a>'.$company.'</a></cite></small>

Hope this helps !

Powered by DW Question & Answer Pro