• Resolved jedifunk

    (@jedifunk)


    Hello

    Great plugin so far! Couple of questions about modifying the output of the dropdowns.

    1. I’d like to remove the label all together rather than simply not giving it content.

    2. I’m using a perhaps unusual approach to my dropdown stylings. I have a DIV with a specific class on it that wraps around the select. I also create an INPUT text field that I can style like the rest of my inputs, and then have the actual SELECT absolutely positioned behind this INPUT. I then use some JS to open the SELECT when the INPUT is clicked.

    How can I accomplish getting the correct DIV I need, as well as adding the additional INPUT inside that DIV?

    3. I’d also like to hide some of the Taxonomies on the frontend, while still having the ability to use them in the functionality.

    Example: example.com/post_type/tax_term1 Hide tax_term1 dropdown and only show tax_term2 dropdown

    Any help is appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jonathandejong

    (@jonathandejong)

    Hi,

    Thank you! I’ll attempt to help you out as best I can ??

    1. Easiest would probably be to just hide the label with CSS. It’s also good for screen readers and such to keep the labels machine readable (hidden but not removed).

    2. Are you sure you cannot use select2 and restyle that? It uses a similar approach. If not, your best bet is to use the action hooks beautiful_actions_before_select and beautiful_actions_after_select to add content before and after the divs wrapping the selects.

    3. See my answer in your other post. Best way is to just hide them with CSS.

    Thread Starter jedifunk

    (@jedifunk)

    @jonathandejong

    Great! I’ll check out modifying select2, but will likely just disable and try to use the actions.

    On that subject, you might want to update the filters/actions section of the plugin page to show these actions, as they are not listed.

    Thanks.

    Plugin Author Jonathandejong

    (@jonathandejong)

    Best of luck!

    I am aware the section is not updated. I’m working on a separate proper documentation website but it’s hard to find the time ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Modify Dropdown HTML Output’ is closed to new replies.