- This topic has 1 reply, 2 voices, and was last updated 7 years, 11 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Home › Forums › Pro Themes › Biography Pro › Make download resume button to load resume on separate tab
Tagged: child theme, WP Child Theme Generator
I 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.
Please 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.
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |