- This topic has 3 replies, 2 voices, and was last updated 9 years, 9 months ago by
Theme Horse Support Team.
-
AuthorPosts
-
February 1, 2016 at 6:08 pm #42102
Akira
ParticipantCould you tell me how make a link from the image slider in the _self window.not target _blank.
February 2, 2016 at 5:11 am #42131Theme Horse Support Team
KeymasterHi 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!
February 2, 2016 at 5:39 am #42134Akira
ParticipantTHANKS! I got it!
February 2, 2016 at 5:53 am #42135Theme Horse Support Team
KeymasterOk that’s great Akira
Thank you!
-
AuthorPosts
- You must be logged in to reply to this topic.
