Created
January 30, 2015 08:34
-
-
Save agusmu/fb9840cbb62ce1c27f00 to your computer and use it in GitHub Desktop.
PrimaShop - Customize Call To Action Text on specific page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'prima_get_setting_calltoaction_text', 'prima_custom_calltoaction_text' ); | |
function prima_custom_calltoaction_text( $text ) { | |
/* call to action text on homepage */ | |
if ( is_home() || is_front_page() ) | |
$text = 'Get free shipping now!'; | |
/* call to action text on shop page */ | |
if ( is_shop() ) | |
$text = 'Get 10% discount when you purchase $100 or more!'; | |
return $text; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment