[Theme: Mystile] Cannot modify header information
-
Hello,
I’m working for days now on the problem of english words within woocommerce on my german website. Now I found a solution for changing the words “Recent Products” and “Checkout”, I put this on my functions.php of the Mystile Theme and it worked.
add_filter( 'gettext', 'kia_text_strings', 20, 3 );** * Change text strings * * @link https://codex.www.ads-software.com/Plugin_API/Filter_Reference/gettext */ function kia_text_strings( $translated_text, $text, $domain ) { switch ( $translated_text ) { case 'Checkout' : $translated_text = __( 'Kasse', 'ftp://[email protected]/clickandbuilds/artekatzshop/wp-content/languages/de_DE.po' ); break; case 'Recent Products' : $translated_text = __( 'Unsere Empfehlungen', 'ftp://[email protected]/clickandbuilds/artekatzshop/wp-content/languages/de_DE.po' ); break; case 'Search Product' : $translated_text = __( 'Suche', 'ftp://[email protected]/clickandbuilds/artekatzshop/wp-content/languages/de_DE.po' ); break; } return $translated_text; }
The Problem now: If I klick on “Kasse” (what was Checkout before) I get the following issue report: “Warning: Cannot modify header information – headers already sent by (output started at /homepages/39/d73891982/htdocs/clickandbuilds/artekatzshop/wp-includes/functions.php:1) in /homepages/39/d73891982/htdocs/clickandbuilds/artekatzshop/wp-includes/pluggable.php on line 1121”
What do I have to do now to solve this?
Would love to get your support!
Thanks. ??You can see the website here: https://www.zabird.de
- The topic ‘[Theme: Mystile] Cannot modify header information’ is closed to new replies.