Forum Replies Created

Viewing 3 replies - 21 through 23 (of 23 total)
  • Author
    Replies
  • in reply to: Conditional Logic Custom Taxonomy #10186

    meta_gecko
    Participant

    I came here to ask the same question. The conditional show/hide doesn’t seem to work on the taxonomy select fields, and checkboxes.

    in reply to: Custom button to switch tabs #10165

    meta_gecko
    Participant

    My earlier reply has been put in quarantine because I tried to make it look a bit tidier..

    It said this below (please delete the duplicate):

    meh, close enough since this is a single implementation on a site, although I would still like to know how to write a variable function for this:

    jQuery( function( $ ) {
      $( '.wtv_switch' ).on( 'click', function(e) {
    
        if ($('.rwmb-tab-tax_filters').hasClass('rwmb-tab-active')) {
          $('.rwmb-tab-tax_filters').removeClass('rwmb-tab-active');
          $('.rwmb-tab-fact_compose').addClass('rwmb-tab-active');
        }
    
      $( '.rwmb-tab-active a' ).trigger( 'click' );
    
      });
    });
    
    in reply to: Flash of Unstyled Content #8295

    meta_gecko
    Participant

    Ok.. I can sort this out for the conditional logic with a bit of custom CSS by targeting the data attributes, which isn’t really ideal.

    I guess I could try the same to make the Select2 fields behave properly too..

    This should work out the box in my opinion, it’s a lot of additional coding for no really good reason, so if there is a better way of doing it I’d love to know how to fix it properly.

    Thanks

Viewing 3 replies - 21 through 23 (of 23 total)