• Resolved alexbaes

    (@alexbaes)


    Hello, I have created the categories for the Spanish language and I have marked a color for them. Then I have translated the categories with WPML, but they appear without color. They do not appear in the settings so that you can indicate a color to them. How can I do it? Thanks

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Andy Fragen

    (@afragen)

    Thread Starter alexbaes

    (@alexbaes)

    Yes, I have copied this into my functions.php

    add_filter (‘teccc_add_terms’, function () {
    $ translated_terms = array (
    ‘atelier-cuisine-en-anglais’,
    ‘atelier-cuisine-en-espagnol’,
    ‘cooking-classes-in-english’,
    ‘cooking-classes-in-spanish’,
    );

    return $ translated_terms;
    });

    But it does not work, you can check.

    Plugin Author Andy Fragen

    (@afragen)

    Can you paste a screenshot of your Category Colors settings?

    Thread Starter alexbaes

    (@alexbaes)

    How can I send or paste a screenshot here?

    Plugin Author Andy Fragen

    (@afragen)

    You will need to use some paste board service.

    Plugin Author Andy Fragen

    (@afragen)

    You are using some sort of minify plugin for the CSS so I can’t really see what the plugin is generating.

    Thread Starter alexbaes

    (@alexbaes)

    Okey.
    3 images:
    one is the calendar in normal view browser, in spanish view calendar.
    another is the calendar in incognit view browser (private), in spanish view calendar I don’t know why appears all categories.
    and the last is color settings.

    Now I don’t use the wpml code, it’s only the default settings, create categories, translate with WPML and apply colors.

    https://ibb.co/xCzfnrh
    https://ibb.co/Gv0HMR2
    https://ibb.co/nLg58cP

    Thread Starter alexbaes

    (@alexbaes)

    Now I’ve added this code:

    add_filter( 'teccc_add_terms', function(){
    	$translated_terms = array(
    		'tarckday',
    		'moto trackday',
    		'event',
    		'driving course',
    		'yielded track',
    		'off-road',
    	);
    
    	return $translated_terms;
    });

    and the colors disappear. Screenshot
    https://ibb.co/xj6kCXP

    Thread Starter alexbaes

    (@alexbaes)

    I have disabled wp-rocket minify and cleared the cache.

    Thread Starter alexbaes

    (@alexbaes)

    Okey, this don’t works and the web is on production mode, I need resolve this.
    I’ve eliminate the code with this:

    add_filter( 'teccc_delete_terms', function(){
    	$translated_terms = array(
    		'Event',
    		'Moto trackday',
    		'Tarckday',
    	);
    
    	return $translated_terms;
    });

    But the categories remains, how can I eliminate it? thanks

    Plugin Author Andy Fragen

    (@afragen)

    I’m not really sure that I understand the issue. An explanation with corresponding images might be needed. I’m sorry I’m just not getting it.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Translate categories WPML’ is closed to new replies.