- This topic has 2 replies, 2 voices, and was last updated 8 years, 11 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Home › Forums › Pro Themes › Biography Pro › Download Resume Button on Home Page
Tagged: button
I would like to change the text button from Download Resume to Buy My Book on the Home Page.
http:cwmemory.com
Well, since the text ‘Download Resume’ is hard-coded inside a theme file you have to override this behavior by making a Child Theme.
After making a Child Theme and activating it you would have two new files namely style.css and functions.php.
In your functions.php put this custom code just below your existing code.
function biography_after_text_slider() {
global $biography_customizer_all_values;
$biography_header_contact_url = $biography_customizer_all_values['biography-header-contact-url'];
$biography_header_resume_url = $biography_customizer_all_values['biography-header-resume-url'];
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" href="<?php echo esc_url( $biography_header_contact_url ); ?>">
<?php _e( 'Contact Me', 'biography' );?>
</a>
<?php
}
if( !empty( $biography_header_resume_url) ){
?>
<a class="button button-feature button-resume line-btn" href="<?php echo esc_url( $biography_header_resume_url ); ?>">
<?php _e( 'Buy My Book ', 'biography' ); // changing to your custom text?>
</a>
<?php
}
?>
</div>
<?php
}
Please notice in the code above, I have changed the default text to your custom text for button. This should work for you.
Thanks
Thanks. I’ve never tried to create a child theme, but will give it a shot.
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. |