This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 2 replies, has 2 voices.

Last updated by Laura 8 months ago.

Assigned support staff: Laura.

Author Posts
February 13, 2019 at 10:23 am #3193256

katrineK-3

We are trying to hide specific elements on our "Cases" page when switched to the English language.

We have currently tried out this php shortcode: https://wpml.org/forums/topic/changing-elements-based-on-language-via-php-shortcode-etc/

It doesn't seem to be working. We would like to HIDE elements in a specific language, not show.

February 13, 2019 at 11:44 am #3193669

katrineK-3

.

February 13, 2019 at 1:53 pm #3194361

Laura
Supporter

Languages: English (English ) Italian (Italiano ) Portuguese (Brazil) (Português )

Timezone: Europe/Rome (GMT+02:00)

Hi,

the topic you linked is from 2016 so probably it wouldn't even work anymore.

Can't you just avoid translating certain part of the pages or creating a manual translation, so you have more control over the layout?

I think it would be possible to hide specific portions of the page, but it would require custom coding, and we don't support that anymore.

The topic ‘[Closed] We need help hiding specific content in English’ is closed to new replies.