Home Forums Pro Themes Biography Pro Make download resume button to load resume on separate tab

This topic contains 1 reply, has 2 voices, and was last updated by  wensolutions 2 years, 10 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #21555

    niharikabalachandra
    Participant

    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.

    #21581

    wensolutions
    Keymaster

    @niharikabalachandra,

    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.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.