Conversation
supporthey, tried to translate the map with wpml. it creates a new post for the second language but doesnt copy the clickable areas so i have to recreate them. is there a better way to do this? thanx
Hello @eimaste ! Unfortunately, this seems to be the only way to handle translations with Draw Attention + WPML at this time 🙁 We have a guide on how this works: https://wpdrawattention.com/guides/wpml-for-translations/ However, I can raise this up with our developers to see if there’s anything that can be done to make this process easier, though we cannot promise an ETA.
hey, in your guide, the hotspots are not translated, they need to be recreated. so its the procedure we used, more or less. is there a way to delete the translated page?
Hello @eimaste , when editing the translated image/page, you should be able to see “Move to Trash” on the page. You can go to your WP-Admin area > Draw Attention, click the pencil icon under the column with the flag where it says “Edit xyz translation” in a tooltip, and then in that page, click “move to trash” in the publish section. Can you confirm if that works?
hey, no there is no move to trash button, in neither the original, nor the translation. i took a screenshot: https://ibb.co/8JhtbL2
Hi @eimaste , could you reach out to our support team so we can take a closer look at this? Please contact us at support@wpdrawattention.com
hey, just to say that we found a workaround. we were in a hurry, so after contacting the support, we found the following solution, for anyone that might have the same problem: first of all took a full backup. second step, an export of draw attention hotspots. make sure you export the language you want! it doesnt export both languages. then in wpml settings, made the draw attention as not translatable and created a shortcode: function map_text() { if ( ICL_LANGUAGE_CODE==’en’ ) { return ‘englisg text’; } else { return ‘other language’; } //endif; } add_shortcode(‘map-text’, ‘map_text’); which we entered in the draw-attention “Default More Info” field, the one fied we needed translation.
Hello @eimaste ! Unfortunately, this seems to be the only way to handle translations with Draw Attention + WPML at this time 🙁 We have a guide on how this works: https://wpdrawattention.com/guides/wpml-for-translations/ However, I can raise this up with our developers to see if there’s anything that can be done to make this process easier, though we cannot promise an ETA.
hey, in your guide, the hotspots are not translated, they need to be recreated. so its the procedure we used, more or less. is there a way to delete the translated page?
Hello @eimaste , when editing the translated image/page, you should be able to see “Move to Trash” on the page. You can go to your WP-Admin area > Draw Attention, click the pencil icon under the column with the flag where it says “Edit xyz translation” in a tooltip, and then in that page, click “move to trash” in the publish section. Can you confirm if that works?
hey, no there is no move to trash button, in neither the original, nor the translation. i took a screenshot: https://ibb.co/8JhtbL2
Hi @eimaste , could you reach out to our support team so we can take a closer look at this? Please contact us at support@wpdrawattention.com
hey, just to say that we found a workaround. we were in a hurry, so after contacting the support, we found the following solution, for anyone that might have the same problem: first of all took a full backup. second step, an export of draw attention hotspots. make sure you export the language you want! it doesnt export both languages. then in wpml settings, made the draw attention as not translatable and created a shortcode: function map_text() { if ( ICL_LANGUAGE_CODE==’en’ ) { return ‘englisg text’; } else { return ‘other language’; } //endif; } add_shortcode(‘map-text’, ‘map_text’); which we entered in the draw-attention “Default More Info” field, the one fied we needed translation.