Promo text not working for franch language

This topic has 11 replies, 3 voices, and was last updated 2 years, 8 months ago ago by Simona

  • Avatar: Simona
    Simona
    Participant
    February 16, 2022 at 18:06

    Hi, my website is in IT, EN and FR languages but just for franch language the promo text doesn’t appear. I tried to delete them more times but nothing changed

    10 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 17, 2022 at 08:05

    Hello,

    Thanks for using our theme.
    Please provide temporary wp-admin and FTP access, so we can take a closer look.
    Create an account via Dashboard (Users > Add new) with administrator role http://prntscr.com/s3rc9m > provide us with username and password via the Private Content area http://prntscr.com/s5mao7 You can use any email for it.
    If you do not know how to create FTP contact with your hosting provider, they will help you.

    Regards

    Avatar: Simona
    Simona
    Participant
    February 18, 2022 at 10:10

    Hi,
    thank you for your answer.

    Please let me know when you have finished

    Please contact administrator
    for this information.
    Avatar: Simona
    Simona
    Participant
    February 18, 2022 at 10:51

    Hi, I warning you that now it works only one of the two message I added in Promo Text per each language.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 19, 2022 at 09:01

    Hello,

    Thanks for the reply.
    One of our technicians will give an answer after the weekend. Please be patient

    Regards

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 23, 2022 at 08:49

    Hello,

    Fixed. Clear cache and check now, please.

    Regards

    Avatar: Simona
    Simona
    Participant
    February 23, 2022 at 11:42

    Hi, franch promo text still doesn’t work.

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    February 24, 2022 at 06:34

    Hello,

    Our developers will take a look at French lang. I’ll inform you once they fix problem.

    Regards

    Avatar: Simona
    Simona
    Participant
    March 1, 2022 at 09:33

    Hi, do you have any news for me? I need to have the website online as soon as possible.

    The rows on promo text and blog don’t work again.

    Thanks

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 3, 2022 at 09:52

    Hello,

    Sorry for the delay in answering.
    We have fixed this issue for you via child-theme/functions.php -> https://gyazo.com/70e88d0bc4eb9847449002e8b4de3a5f
    We have added the filter for ‘theme_mod_promo_text_package’ because this field of options cannot work correctly with multiple header so if you need to change any text for promo text element, please change it here.
    Working test -> https://gyazo.com/82a1818b52ca990ee52e512a0b7d8fd3

    Example code we have added for you. (If any user will find the same issue and wants to fix by himself)

    add_filter('theme_mod_promo_text_package', function($args) {
    	if ( defined('ICL_LANGUAGE_CODE') ){
    		switch ( ICL_LANGUAGE_CODE ) {
    			case 'fr':
    				$args = array(
    					array(
    						'text' => 'Inscrivez-vous à la newsletter pour recevoir nos promotions!',
    						'icon'  => 'et_icon-shopping-cart-2',
    						'icon_position'  => 'before',
    						'link_title' => "JE VEUX M'INSCRIRE",
    						'link' => '#'
    					),
    					array(
    						'text' => 'Dépensez 100 € pour la livraison gratuite en ITALIE, 159 € en Europe (zone A), 200 € en Europe (zone B) ',
    						'icon'  => 'et_icon-message',
    						'icon_position'  => 'before',
    						'link_title' => "JE VEUX M'INSCRIRE",
    						'link' => '#'
    					),
    				);		
    				break;
    			case 'it':
    				
    		$args = array(
    					array(
    						'text' => 'Spendi 100€ per la spedizione gratuita in ITALIA, 159€ in Europa (zona A), 200€ in Europa (zona B)',
    						'icon'  => 'et_icon-shopping-cart-2',
    						'icon_position'  => 'before',
    						'link_title' => "ACQUISTA ORA",
    						'link' => '#'
    					),
    					array(
    						'text' => 'Iscriviti alla newsletter per ricevere le nostre promozioni!',
    						'icon'  => 'et_icon-message',
    						'icon_position'  => 'before',
    						'link_title' => "VOGLIO ISCRIVERMI",
    						'link' => '#'
    					),
    				);
    				break;
    			case 'en':
    		$args = array(
    					array(
    						'text' => 'Subscribe to our newsletter to receive our promotions!',
    						'icon'  => 'et_icon-shopping-cart-2',
    						'icon_position'  => 'before',
    						'link_title' => "SUBSCRIBE ME",
    						'link' => '#'
    					),
    					array(
    						'text' => 'Spend €100 to get free shipping for ITALY, €159 Europe (A zone), €200 Europe (B zone)',
    						'icon'  => 'et_icon-message',
    						'icon_position'  => 'before',
    						'link_title' => "BUY NOW",
    						'link' => '#'
    					),
    				);
    				break;
    		}
    	}
    	return $args;
    }, 99999999999);

    Regards

    Avatar: Simona
    Simona
    Participant
    March 4, 2022 at 13:46

    Thank you!

  • Viewing 11 results - 1 through 11 (of 11 total)

The issue related to '‘Promo text not working for franch language’' has been successfully resolved, and the topic is now closed for further responses

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.