Testimonial [pbck_testimonial_author_url] target

More
9 years 9 months ago #40274 by ajaey
Hello CEd and community,

i try to change the testimonial author url for an external link. The Link works but i have no chance to set it with a target for a new tab or window like [target="_blank"]
But i need it.

I searched all the php and xml scripts but i cant find a code snipped where i can change or add this feature.

I hope you can help me.

Regards, AJaey

Please Log in or Create an account to join the conversation.

More
9 years 8 months ago #40286 by ced1870
Hi

in
plugins\pagebuilderck\testimonials

edit the file
plugins\pagebuilderck\testimonials\layouts\edit_testimonials.php
on
function ckUpdatePreviewArea() {
line 164

you will find that line 172

$ck('#previewarea .pbck_wrap .pbck_testimonial').eq(i).find('.pbck_testimonial_author_url > a').attr('href', $ck('.item_author_url_href_edition',el).val());

just replace it with something like this

$ck('#previewarea .pbck_wrap .pbck_testimonial').eq(i).find('.pbck_testimonial_author_url > a').attr('href', $ck('.item_author_url_href_edition',el).val()).attr('target', '_blank');


this shall work, you will need to go again in the options, make a change to update the fields and the new attribute shall be added
CEd

Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

More
9 years 8 months ago #40367 by ajaey
Thx... that works.
Should be fine if this would be a possible option in the plugin settings ;-)

Please Log in or Create an account to join the conversation.

Time to create page: 0.191 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 557 guests and one member online