Home › Forums › Pro Themes › Biography Pro › Make download resume button to load resume on separate tab
Tagged: child theme, WP Child Theme Generator
- This topic has 1 reply, 2 voices, and was last updated 9 years ago by wensolutions. 
Viewing 2 posts - 1 through 2 (of 2 total)
	
- 
		AuthorPosts
- 
		
			
				
October 21, 2016 at 6:41 pm #21555niharikabalachandra ParticipantI wanted to make the download button open in a new tab. Please let me know how I can change this as it will currently open on the same tab. October 22, 2016 at 8:22 am #21581wensolutions KeymasterPlease follow the given steps below. 1. Create a Child Theme and activate it. Note : Or, use WP Child Theme Generator plugin to create a new child theme easily without any coding. 2. Copy and paste the following code in your child theme’s functions.php . function biography_after_text_slider() { global $biography_customizer_all_values; $biography_header_contact_url = $biography_customizer_all_values['biography-header-contact-url']; $biography_header_contact_url_button_text = $biography_customizer_all_values['biography-header-contact-url-button-text']; $biography_header_resume_url = $biography_customizer_all_values['biography-header-resume-url']; $biography_header_resume_url_button_text = $biography_customizer_all_values['biography-header-resume-url-button-text']; if( empty( $biography_header_contact_url) && empty ( $biography_header_resume_url ) ){ return; } ?> <div class="goest-btn"> <?php if( !empty( $biography_header_contact_url) ){ ?> <a class="button button-feature button-contact" target="_blank" href="<?php echo esc_url( $biography_header_contact_url ); ?>"> <?php echo esc_html($biography_header_contact_url_button_text);?> </a> <?php } if( !empty( $biography_header_resume_url) ){ ?> <a class="button button-feature button-resume line-btn" target="_blank" href="<?php echo esc_url( $biography_header_resume_url ); ?>"> <?php echo esc_html($biography_header_resume_url_button_text);?> </a> <?php } ?> </div> <?php }3. Finally, Download button will open in new tab. Let us know if you have any problem. 
- 
		AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)
	
- You must be logged in to reply to this topic.
 
	    




