Skip Navigation

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 3 replies, has 1 voice.

Last updated by sophiaK-11 5 days, 19 hours ago.

Assisted by: Bobby.

Author Posts
December 30, 2024 at 3:02 pm #16553584

sophiaK-11

Background of the issue:
I am trying to implement CSS code added under Design --> Customizer --> Additional CSS in the Theme 'Twenty Seventeen'. This CSS is necessary due to a bug in the theme that affects the margin between the headline and the text on the home page in the mobile version. Here is the CSS code used: .page-id-9 .entry-header { margin-bottom: 1em !important; /*after*/ } The issue can be seen on the page: hidden link and I expected to see: hidden link.

Symptoms:
The additional CSS is not implemented in the translated version of the website, causing a layout issue on mobile devices.

Questions:
How can I ensure that the additional CSS code is implemented in the translated version of the website?

December 30, 2024 at 5:03 pm #16554124

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

Welcome to the WPML support forum. Before passing this thread to my colleague, I would like to share some suggestions and possible solutions for the issues you mentioned.

Normally, you can override the CSS styling on the WPML>>Languages page under the Language Switcher Options section. Simply click on the Additional CSS link to make your changes. Please try it after a site backup and let us know your feedback.

Refer to the following screenshots for more details.

hidden link

hidden link

--
Thanks!

Bigul

December 30, 2024 at 5:20 pm #16554168

sophiaK-11

Hi, thanks for your quick reply. I just added the respective CSS code to the "Additional CSS" field shown by you (see screenshot). However, this doesn't solve the problem, unfortunately.

I'm looking forward to receiving further assistance. Thanks in advance.

Bildschirmfoto 2024-12-30 um 18.19.44.png
December 30, 2024 at 9:21 pm #16554486

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Hi there,

Thank you for sharing the screenshot!

The CSS is not working because it is targeting a page id (9)

Each page has its ID, the translated page's ID differs from the default language.

Based on the source code I believe the page ID for hidden link is page-id-9595

Let us know your results, please.

December 30, 2024 at 10:15 pm #16554623

sophiaK-11

Great, it works. Thank you so much!!