Navigation überspringen

[Gelöst] Edit the width of dropdown field in Toolset View

This support ticket is created vor 1 year, 4 months. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Dieses Thema enthält 3 Antworten, hat 1 Stimme.

Zuletzt aktualisiert von Christopher Amirian vor 1 year, 4 months.

Assistiert von: Christopher Amirian.

Author
Artikel
#2796544

Hello,

I would like to make the width of the fields of my dropdown menu way shorter.

So far, they look like this: versteckter Link

They are full width and I cannot find the setting option in Toolset View.

Kindly advise.

Thank you,
Diane

#2796603

Christopher Amirian
Unterstützer

Sprachen: Englisch (English )

Hi Diane,

Welcome to Toolset Support. The search form items take up their container width and by having a correct parent container they should work ok.

But I noticed that you have a custom CSS code in:

versteckter Link

The CSS code below causes the whole container not to respect the padding:

.page-full .alignfull, .page-full .alignwide {
    margin-left: calc(-100vw / 2 + 100% / 2);
    margin-right: calc(-100vw / 2 + 100% / 2);
    max-width: 100vw;
}

If you remove that code you will see that the container is respected when it comes to the search form items.

Thanks.

#2796958

Hello Christopher,

Thank you for your prompt response.

I've removed the CSS code but the fields containers are still full width on the page. I've also tried deleting them and adding them again but it did not work.

Could you please further assist?

Thanks,
Diane

#2797188

Christopher Amirian
Unterstützer

Sprachen: Englisch (English )

Hi Diane,

Now that you have a clean slate you can use custom CSS code to adjust the width such as:

.js-wpv-filter-form-4283 select {
	width: 50%;
}

You also can make the container be centered using a CSS code like this:

.js-wpv-filter-form-4283 {
	display: flex;
	justify-content: center;
}

.js-wpv-filter-form-4283 select {
	width: 100%;
}

Thanks.