Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Neighborhood › How can I change the link of the "Continue shopping" field? › Reply To: How can I change the link of the "Continue shopping" field?
Hi,
My child theme functions.php is confused.
What ever I paste in it the site is complete black after it.
Here is my child theme functions.php:
<?php
add_filter( ‘gettext’, ‘sf_string_translate’, 20, 3 );
function sf_string_translate( $translated_text, $text, $domain ) {
switch ( $translated_text ) {
case ‘Add to Shopping Bag’ :
$translated_text = __( ‘In den Warenkorb hinzufügen’, $domain ); //just change it.
break;
}
return $translated_text;
}
add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
function theme_enqueue_styles() {
wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );
}
load_theme_textdomain( ‘swiftframework’, get_stylesheet_directory() . ‘/language’ );
function sf_child_theme_locale() {
//echo get_stylesheet_directory() . ‘/language’ ;exit;
//load_theme_textdomain( ‘swiftframework’, get_stylesheet_directory() . ‘/language’ );
load_child_theme_textdomain( ‘swiftframework’, get_stylesheet_directory() . ‘/language’ );
}
//add_action( ‘init’, ‘sf_child_theme_locale’ );
?>