Julien MA Jacob
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Plugin Info Card] Notice avec Google Sit KitPour ceux qui rencontrerai ce problème, plut?t que de modifier le code de l’extension, vous pouvez ajouter ce code dans votre fichier functions.php
function wprock_wppic_register_route() { register_rest_route( 'wppic/v1', '/get_html', array( 'methods' => 'GET', 'callback' => 'wppic_get_shortcode', 'permission_callback' => '__return_true', ) ); register_rest_route( 'wppic/v1', '/get_query', array( 'methods' => 'GET', 'callback' => 'wppic_get_query_shortcode', 'permission_callback' => '__return_true', ) ); } add_action( 'rest_api_init', 'wprock_wppic_register_route' ); remove_action( 'rest_api_init', 'wppic_register_route' );
Hello @tyke79,
The URL must look like https://www.mydomain.es/en/amp/
Does it work like this?The “Translate AMP page” option is activated in the options of the Weglot plugin?
Bests,
Forum: Plugins
In reply to: [Translate WordPress and go Multilingual - Weglot] Question about translateHello,
Yes, it’s OK. If the theme is hard coded in the original language, Weglot will work perfectly ^^
Bests
Forum: Plugins
In reply to: [Translate WordPress and go Multilingual - Weglot] Question about translateHello @eddyg93,
A few small questions so that I can fully understand the need.
What is the original language of your site?
What did you mean by “Is it possible to avoid multisite” ?Best
Forum: Plugins
In reply to: [Translate WordPress and go Multilingual - Weglot] polylang + elementorHello @jordimopi
I think you are on the wrong page. We are Weglot. A plugin that allows you to translate a site by automatically finding the content to translate and by offering a first automatic translation (manually editable). Weglot is fully compatible with Elementor ??
You can take a look here to find out more:
– https://elementor.com/blog/weglot-translation-plugin/
– https://weglot.com/fr/integrations/wordpress-translation-plugin/Hope to see you soon,
Best regardsForum: Plugins
In reply to: [Translate WordPress and go Multilingual - Weglot] Translate part of the siteHello @nikiberd,
My apologies, I just saw your last answer. By using the following hook, you can make replacements in your pages depending on the language. You can also use it to remove or add items. I think it can solve your problem.
https://developers.weglot.com/wordpress/filters/translations-filters#weglot_html_treat_page
Let me know if this solved your problem ??
Best regards,Hello @rpuig,
I think you are on the wrong page. We are Weglot, a plugin that allows you to translate a site, with automatic content detection and an automatically generated first translation. I suggest you take a look at our features that you might like if you want to simplify your translation process: https://weglot.com/features/
Our plugin offers a translation of post type slugs on each edit page, but it is also possible to translate any part of a URL using a hook as follows:
<?php add_filter( 'weglot_get_option', function( $option, $key, $options ) { if ( 'custom_urls' !== $key ) { return $option; } $option['fr'] = array_merge(array( 'categorie' => 'category', 'ma-categorie-1' => 'my-1-category-slug', 'ma-categorie-2' => 'my-2-category-slug', ), $option['fr']); return $option; }, 20, 3);
Do not hesitate to try us ^^
Best,
https://dashboard.weglot.com/registerForum: Plugins
In reply to: [Translate WordPress and go Multilingual - Weglot] flag in menu / nav bar?Hello @andi-saitenhieb,
For the question 1: Pricing
Indeed, It is the number served by the Weglot API that are counted, whether or not they are edited or generated automatically. If you want to estimate your site’s word count, you can use our word count tool here: https://wordcount.weglot.com/
For the question 2: Language switcher appearance
Please, Can you check at the options available on the menu item to see if this fixes the problem? You can access it by : Appearances -> Menus -> Menu links options “Show as dropdown (By default it’s a list)” (Screen capture: https://i.ibb.co/dsTcY5s/Capture-d-e-cran-2020-07-24-a-12-12-02.png).
If this does not meet your expectations, you can send me the relevant site link and I will look to offer you a personalized solution.
Best regards,
Forum: Plugins
In reply to: [Translate WordPress and go Multilingual - Weglot] flag in menu / nav bar?Hello @andi-saitenhieb,
To display the language selector in a menu by displaying the?flag instead of the language name, you must, in your WordPress backoffice, Weglot settings :
To show flags :
– Check option : With flags (Check if you want flags in the language button)to hide the name :
– Uncheck option : With name (Check if you want to display the name of languages)The number of words is the total number of words on your website, multiplied by the number of languages you want to translate it into. You can find all details here : https://weglot.com/pricing/
Best regards,
Hello @heveraert,
Thank you for your repport, we investigate about this problem.
Please, can you add this hook to your website. That solve the problem ?add_filter( 'weglot_get_option', function( $option, $key, $options ) { if ( 'custom_urls' !== $key ) { return $option; } if ( empty( $option ) ) { return $option; } foreach ( $option as $lang => $url_translation_by_lang ) { foreach ( $url_translation_by_lang as $url_base => $url_translated ) { if ( empty( trim( $url_base ) ) || empty( trim( $url_translated ) ) ) { $corrupted = array( $url_translated, $url_base ); $option[$lang] = array_diff( $option[$lang], $corrupted ); } } } return $option; }, 20, 3);
Best regards,
Forum: Plugins
In reply to: [Translate WordPress and go Multilingual - Weglot] Translate part of the siteHello @nikiberd,
Yes, you can exclude certain URLs or blocks like this:
https://support.weglot.com/article/95-how-to-exclude-urls-blocks-words-from-translationWeglot provide you a first layer of automatic translations, then you have the possibility:
– To manually edit all your translations if you want. We provide you some useful tools in order to do that (https://support.weglot.com/article/128-how-to-edit-my-translations)
– To add some specific translations rules to indicate if you want a (group of) word(s) to be never or always translated in a custom way. (https://support.weglot.com/article/130-translations-exceptions)
– To order some professional translations (https://support.weglot.com/article/198-how-to-order-professional-translations)Best regards,
Forum: Plugins
In reply to: [Translate WordPress and go Multilingual - Weglot] Error 404 Weglot TranslateHello @guidcolombia,
if you uninstall Weglot, all the translated versions of your pages will disappear. If not, you must clear your site’s cache ??
Best regards,
Forum: Plugins
In reply to: [Translate WordPress and go Multilingual - Weglot] Integration with InstapageHello @ahordii,
If you can identify your instapage pages with a condition in PHP, then you can use this filter to not display the language selector by returning an empty string.
add_filter( 'weglot_button_html', 'custom_weglot_button_html', 10, 2 ); function custom_weglot_button_html( $button_html, $add_class ) { if ( true ) { // Instapage condition return ''; } return $button_html; }
I hope this solves your need. Let me know if I have problems with this solution.
Best regards,Forum: Plugins
In reply to: [Translate WordPress and go Multilingual - Weglot] Only one siteHello @paperzz,
For the 1rst part of your message, you speak about a WordPress multi-site ?
If yes, you can activate the plugin on the website you need it.If you don’t need the button, you can use this filter :
add_filter( 'weglot_button_html', 'custom_weglot_button_html', 10, 2 ); function custom_weglot_button_html( $button_html, $add_class ) { return ''; }
Then you can also dequeue the CSS and JS with this hooks :
add_action( 'wp_print_scripts', 'prefix_deregister_javascript', 99 ); function prefix_deregister_javascript() { if ( is_admin() ) { return; } wp_deregister_script( 'wp-weglot-js' ); } add_action( 'wp_print_styles', 'prefix_deregister_styles', 99 ); function prefix_deregister_styles() { if ( is_admin() ) { return; } wp_deregister_style( 'weglot-css' ); }
`
Let me know if that solve your needs,
Best regards,- This reply was modified 4 years, 5 months ago by Julien MA Jacob.
Hello,
Yes there seems that there was a problem with Sectigo SSL main service that affected many websites on the internet today. Can you check now and let me know as the issue should be resolved ?
Best