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.

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Alejandro 1 year, 2 months ago.

Assisted by: Alejandro.

Author Posts
October 27, 2023 at 11:37 am #14678295

kitijaJ

Hello,

I'm using the dropdown option for choosing languages and at the moment there is so much white space on one side. How can I remove the white space? Or is it possible to have transparent background?

hidden link

Would appreciate your help 🙂

October 27, 2023 at 12:12 pm #14678683

Alejandro
Supporter

Languages: English (English ) Spanish (Español ) Italian (Italiano )

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

Hello!

That "white space" is just the dropdown configuration that generatepress has, it's not coming from wpml.

However you can edit tha with CSS by using this code:

.main-navigation .sub-menu {
    width: fit-content;
    background-color: transparent;
}

If it doesn't work, add "!important" right after "fit-content" before the semi-colon.

Please know this is considered custom-coding which is out of the scope of our support and this is as far as i can go. the goal here is to point you in the right direction.

That should do it.

October 27, 2023 at 12:37 pm #14678973

kitijaJ

Thank you! It worked 🙂