Testimonial [pbck_testimonial_author_url] target

Testimonial [pbck_testimonial_author_url] target was created by ajaey

Posted 7 years 1 month ago #40274
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
by ajaey

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

Replied by ced1870 on topic Testimonial [pbck_testimonial_author_url] target

Posted 7 years 1 month ago #40286
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

by ced1870

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

Replied by ajaey on topic Testimonial [pbck_testimonial_author_url] target

Posted 7 years 1 month ago #40367
Thx... that works.
Should be fine if this would be a possible option in the plugin settings ;-)
by ajaey

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

Time to create page: 0.607 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 1338 guests and no members online