• Helloo all can anybody help me to solve my problem
    I just need different colors as checkbox with their respective color as background.Is there any method to change checkbox as color background according to name of their.
    For example i had categories Color containing Red,black,green,blue and so on sub categories
    While display that portion in search form like different color name as background of respective color name

    Thank You all for your help in advance

    https://wordpress.org/plugins/ultimate-wp-query-search-filter/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author TC.K

    (@wp_dummy)

    It is rather complicated. But you can try using css to change the respective checkbox to display the backgroud image.
    You can use inspect element feature of your browser (chrome or firefox or opera)to find the element where you want to change. Of course you will need some css3 skill though.

    Thread Starter WordPressRock

    (@rls)

    By defining colors by css it will not be dynamic because i need red text with red background checkbox, black with black and if i change text name red to blue then it should be dynamically change in checkbox to Blue
    how it can be done by CSS

    Thank You all for your help in advance

    Plugin Author TC.K

    (@wp_dummy)

    Well, what you want is dynamic changing the color, and this is way more complicated. It can’t be done by only CSS, this involved javascript.
    It is hard to explain it here.

    Thread Starter WordPressRock

    (@rls)

    Ya I know about that its impossible by css only so i want to need help for that portion
    Can You Post Javascript code sample here so that I can Look Forward about that Portion

    Thank You Help In Advance

    Thread Starter WordPressRock

    (@rls)

    One More Question can i make this plugins for search in custom fields for colors by making checkbox for colors
    Thank You
    Waiting Your Response

    Thread Starter WordPressRock

    (@rls)

    For Now I try to make Static Color checkbox. But i just want to know it is possible to make static color as checkbox and search in color custom fields.

    Thanks a lot In advance

    Plugin Author TC.K

    (@wp_dummy)

    Ya I know about that its impossible by css only so i want to need help for that portion

    Using jquery, get the selector of each of the checkbox with the color. Then applied the color on the checkbox wrapper.

    One More Question can i make this plugins for search in custom fields for colors by making checkbox for colors

    Yes, but still not dynamic though.

    For Now I try to make Static Color checkbox. But i just want to know it is possible to make static color as checkbox and search in color custom fields.

    Still, need customization.

    Actually if you look at the source code you can see there is filters for user to customize every display type html.
    So if you want to change taxonomy checkbox, you can look for uwpqsf_tax_field_checkbox and refer to the source code to customize them.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Need Different color as checkbox in search form’ is closed to new replies.