Ir al contenido Ir a la barra lateral

Este es el foro de soporte técnico de WPML, el plugin multilingüe de WordPress.

Todas las personas pueden leerlo pero solo los clientes de WPML pueden ingresar comentarios. El equipo de WPML responde en los foros 6 días a la semana, 22 horas por día.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 -
- 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 -

Zona horaria del soporte: Asia/Dhaka (GMT+06:00)

Este tema contiene 1 respuesta, tiene 2 voces.

Última actualización por Prosenjit Barman hace 1 año, 2 meses.

Asistido por: Prosenjit Barman.

Autor Publicaciones
mayo 29, 2024 a las 4:56 pm #15685069

julio-davidR

Antecedentes del problema:
Estoy utilizando el plugin WPML en mi sitio web enlace oculto y quiero saber si es posible ocultar ciertos elementos del diseño como un custom post type o contenido de un carousel según el idioma seleccionado por el usuario.

Síntomas:
No hay un error específico, pero necesito configurar la visibilidad de ciertos elementos en diferentes idiomas.

Preguntas:
¿Es posible ocultar elementos específicos del diseño como un custom post type o contenido de un carousel en WPML según el idioma que el usuario seleccione?
¿Necesito algún plugin adicional que sea compatible con WPML para lograr esto?

mayo 30, 2024 a las 8:47 am #15686698

Prosenjit Barman
Partidario de WPML desde 03/2023

Idiomas: Inglés (English )

Zona horaria: Asia/Dhaka (GMT+06:00)

Hi There,
Thanks for contacting WPML support.

To reduce the waiting time, I took this ticket and responded in English. Please let me know if you're okay with it or want to continue the conversation in Spanish language. I will check and forward the ticket to one of our Spanish supporters to assist you in the Spanish language.

I understand your requirements. Unfortunately, hiding custom post types based on the selected language isn't directly possible without custom coding. I'm also not aware of any specific plugin that offers this functionality. However, if you're open to using custom code, you can refer to WPML Hook guide to find the Hook that can help.

The wpml_current_language hook could be useful for this purpose. The guide includes examples to help you understand its usage.

As providing support for custom coding is currently beyond the scope of our support, consider hiring a developer, experienced in customzing WPML from this link: https://wpml.org/contractors/

Regarding sliders, you can translate them using WPML and set the slider content manually for each language. This allows you to customize the slider content according to your needs in each language. For more information on manual translation, please refer to this guide: https://wpml.org/documentation/translating-your-contents/using-different-translation-editors-for-different-pages/

I hope you can understand. If there is anything else you need help with or would like to know, feel free to let me know. I will be happy to assist.

Best regards,
Prosenjit

El tema “[Cerrado] Necesito ocultar elementos del diseño dependiendo el idioma.” está cerrado a nuevas respuestas.