Support Forums

The forums are closed and will be removed when we launch our new site.

Looking for support? You can access the support system via your account.

Forums Forums Search Search Results for 'data-sf-form-id'

Viewing 10 results - 21 through 30 (of 189 total)
  • Author
    Search Results
  • #266556

    Trevor
    Moderator

    That is indeed what I was going to suggest you do next. In fact, form #2 could have Auto Submit OFF, and not submit button, and you simply place an Advanced button on the page, with javascript to copy the values over to the hidden fields, and then submit that form, using something like (assuming form #2 has an ID of 1234):

    $('.searchandfilter[data-sf-form-id="1234"]').submit();

    #266376

    Trevor
    Moderator

    So, looking at Product Category, this CSS hides the children:

    .searchandfilter[data-sf-form-id="6507"] li.sf-field-taxonomy-product_cat option.sf-level-1 {
      display: none;
    }
    #266054

    Trevor
    Moderator

    To remove the red lined items, you need this custom CSS:

    .searchandfilter[data-sf-form-id="4548"] .sf-field-taxonomy-product_category .sf-level-0 > .sf-input-checkbox,
    .searchandfilter[data-sf-form-id="4548"] .sf-field-taxonomy-product_category .sf-level-0 > .sf-label-checkbox {
        display: none;
    }
    .searchandfilter[data-sf-form-id="4548"] ul li.sf-field-taxonomy-product_category > ul > li {
        padding: 0;
    }

    As to the remove empty fields, I have no solution for that sorry. It may be something we will add in V3 (not due for some months yet), I am not sure.

    It might be possible to do this with custom JavaScript, that checks if the field is empty, but I do not know how that would be done and have no snippets to share.

    #265238

    In reply to: Form Styling


    Trevor
    Moderator

    Your custom CSS:

    .searchandfilter[data-sf-form-id="2167"] .sf-field-submit input {
        border-radius: 3px;
        color: #fff;
        font-family: Assistant;
        font-weight: 400;
    }

    You need to have the icons in the size you need as transparent png images of the correct size on your site. The CSS would be something like this I think:

    .searchandfilter[data-sf-form-id="2167"] .sf-field-search input {
        padding-right: 30px;
        background: url(your path to the image);
    }

    and

    .searchandfilter[data-sf-form-id="2167"] .sf-field-taxonomy-job_locations select {
        padding-right: 30px;
        background: url();
    }

    I think.


    Trevor
    Moderator
    This reply has been marked as private.
    #264915

    Trevor
    Moderator
    This reply has been marked as private.
    #264201

    Trevor
    Moderator

    Something like this:

    .searchandfilter[data-sf-form-id="8746"] li.sf-field-post-meta-german_players label:after {
        content: "";
        display: inline-block;
        width: 15px;
        height: 10px;
        background: url(https://kasinoforum.com/images/de.png);
        margin-left: 6px;
        background-size: contain;
    }

    Is that what you mean?

    #263572

    Trevor
    Moderator

    The link you gave me comes back as IP address not found?

    Did you use a copy of the form, or a different form, for the mobile view (as that is not allowed and will not work)?

    You can wrap your CSS for the desktop display (horizontal) so it does not affect the mobile view, but you need to discover the responsive breakpoint of your theme. For example, like this:

    @media (min-width: 992px) {
      .searchandfilter[data-sf-form-id="1234"] {
        display: inline-block;
        vertical-align: top;
        padding: 0 20px;
      }
    }

    Where 1234 needs to be changed to match your form ID.

    #262745

    Trevor
    Moderator

    Having a cloned form will potentially be an issue, as doing this (having more than one instance of the same form, or multiple different forms) will mean that they don’t work together and often will conflict with each other. Just be aware that this is possible (likely), so if you have problems with the results not working, that might be why. Normally, we suggest only one form instance on the results page.

    You CAN have more than one form on any page other than the results page.

    We are making some changes around this for V3, due in a few months.

    This:

    @media (min-width: 992px) {
      .searchandfilter[data-sf-form-id="224"] {
        display: inline-block;
        vertical-align: top;
        padding: 0 20px;
      }
    }

    Is code aimed at a desktop, it would look like this for mobile:

    @media (max-width: 991px) {
      .searchandfilter[data-sf-form-id="224"] {
        display: inline-block;
        vertical-align: top;
        padding: 0 20px;
      }
    }
    #262737

    Trevor
    Moderator

    Something like this:

    .searchandfilter[data-sf-form-id="485"] .sf-field-submit input {
        color: #fff;
        border: 0;
        border-radius: 4px;
        font-size: 18px;
        font-family: 'Nunito',Helvetica,Arial,Lucida,sans-serif;
        font-weight: 700;
        background-color: #ff2e73;
        padding: 10px 30px;
    }
Viewing 10 results - 21 through 30 (of 189 total)