Forums Forums Search & Filter Pro Add info button

Viewing 10 posts - 1 through 10 (of 12 total)
  • Anonymous
    #249642

    Hi, another question, I would like to add a info/hover “i” for more information about an attribute. In ACF, I added text to the “instructions” field. If this field is filled, I want to show this in a added div after the filter heading.

    Do you have a hint how to achieve this? Is there some hook?
    Thanks,
    Roeland

    Trevor
    #249643

    There is a PHP filter for input fields, but I am unsure whether it could do something as complicated as that:

    https://searchandfilter.com/documentation/action-filter-reference/#filter-input-object

    Anonymous
    #249645

    Ok thanks, I will give it a try

    Trevor
    #249647

    I will wait for you to get back to me.

    Anonymous
    #249730

    Hi Trevor, the function you gave is modifying the filter selectors. Do you have something similar for modifying the filter headings?

    Trevor
    #249734

    I am unsure if it can be. Did you try the code on line 20 here:

    https://gist.github.com/rmorse/7b59b45a14b1ca179868

    Anonymous
    #249737

    That seems more promising than I thought, this must be possible with some JS. Do you know how to get a ACF field from the given function?

    Anonymous
    #249739

    Sorry for my questions, for php I am sort of a beginner

    Trevor
    #249741

    In the code preceding that, you should be able to get the ACF field information you need and save/set that as a string.

    For that you would need help from ACF I would think. It is not something I have done.

    Trevor
    #249743

    I just saw the follow up. This will be hard to do for a beginner, you may need the help of a coder. But see what you can find first.

    This is all I could find:

    https://support.advancedcustomfields.com/forums/topic/how-to-display-field-labels-and-values/

Viewing 10 posts - 1 through 10 (of 12 total)