Okay
  Public Ticket #1605526
change column order events list
Open

Comments

  • baianai2 started the conversation

    Hi, there.

    after creating all these events, the web client has asked us to change the order of the 2nd and 3rd columns, it could be done manually changing the title for the city in each event, but it would take me hours.

    Is it possible to change the order of the columns automatically, changing the order of the columns in php for example?

    Thank you for your time.

    Regards.

  •  50
    Alexandre replied

    Hi there,

    You can probably do it with php in a child-theme but this required to much customization for our support. 
    Here the best I can do: 
    Please go to wp-admin>croma>custom css/js
    And add this code in the custom JS field (not the custom css field)

    $( '.event-line-wrap' ).each(function() {
      var content_1 = ( $( this ).find( '.event-line-node:nth-of-type(2)').html());
      var content_2 = ( $( this ).find( '.event-line-node:nth-of-type(3)').html());
     $( this ).find( '.event-line-node:nth-of-type(2)').html(content_2);
      $( this ).find( '.event-line-node:nth-of-type(3)').html(content_1);
    });

    Thank you,

    --

    Alexander

  • baianai2 replied

    Hi there.

    It works perfectly.

    Thank you very much for the support.

    Regards.

  •  50
    Alexandre replied

    You are welcome

    Thank you,

    --

    Alexander