Skip Navigation

[Resolved] Edit the width of dropdown field in Toolset View

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.

This topic contains 3 replies, has 1 voice.

Last updated by Christopher Amirian 1 week, 5 days ago.

Assisted by: Christopher Amirian.

Author
Posts
#2796544

Hello,

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

So far, they look like this: hidden link

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

Kindly advise.

Thank you,
Diane

#2796603

Christopher Amirian
Supporter

Languages: English (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:

hidden 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
Supporter

Languages: English (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.