badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

Reply To: link from Image Slider

#42131

Hi Akira,

You mean to open it on same window right? So you don’t need to add target _self to open on same window. You can remove it target="_blank" so that it will open on same window/ browser.

The file is inside theme folder -> inc -> structure -> header-extension.php on line no 410 to 416 you will find this code

if (!empty($image_description)) {
							$ambition_image_slider_display .= '<div class="featured-content">'.$image_description.'</div><!-- .featured-content -->';
							$ambition_image_slider_display 	.= '<a title='.'"'.esc_attr($link_text). '"'. ' '.'href="'.esc_url($redirect_link).'"'.' class="call-to-action active" target = "_blank">'.esc_attr($link_text).'</a>';
							if(!empty($secondary_text)){
								$ambition_image_slider_display 	.= '<a title="'.esc_attr($secondary_text).'"' .' href="'.esc_url($secondary_url). '"'. 'class="call-to-action" target="_blank">'.esc_attr($secondary_text). '</a>';
							}
					}

replace above and add below code

if (!empty($image_description)) {
							$ambition_image_slider_display .= '<div class="featured-content">'.$image_description.'</div><!-- .featured-content -->';
							$ambition_image_slider_display 	.= '<a title='.'"'.esc_attr($link_text). '"'. ' '.'href="'.esc_url($redirect_link).'"'.' class="call-to-action active">'.esc_attr($link_text).'</a>';
							if(!empty($secondary_text)){
								$ambition_image_slider_display 	.= '<a title="'.esc_attr($secondary_text).'"' .' href="'.esc_url($secondary_url). '"'. 'class="call-to-action">'.esc_attr($secondary_text). '</a>';
							}
					}

Note: If you make a direct change in code then updating to new version will loose all customization code. So each and every time while updating to new version you need to make same changes. So it would be better if you make a child theme and customize the code.

Thank you!