highlight certain items in a dropdown menu

[ad_1]

Hello @massimo1971

Thank you very much for using our plugin. Yes, that’s possible. For example, assuming you want to highlight the first and third choices in a dropdown field with different colors and make their texts bold.

The first step will be to assign a class name to the field. Enter the preferred class name through the “Add CSS Layout Keywords” attribute in the Dropdown field settings. In this hypothetical example, I will use my-list

The second step is to define the custom styles. For this enter the style definition below through the “Customize Form Design” attribute in the “Form Settings > Advanced Settings” tab:


.my-list option:nth-child(1){ background: yellow; font-weight:bold;}
.my-list option:nth-child(3){ background: red; color:white; font-weight:bold;}

Best regards.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer