• Resolved kleb123

    (@kleb123)


    Is there an (easy) way to place the prediction box next to the team flag?
    I tried with some css changing the .matchinfo.new-layout .flag { to width 25% but I’m not sure that will be the first step to a solution ??

    I use the mobile friendly layout.

    • This topic was modified 3 years, 1 month ago by kleb123.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter kleb123

    (@kleb123)

    Done ??

    Changed the sequence in a plugin into home team/home flag/score/score/away flag/away team.

    Plugin Author AntoineH

    (@antoineh)

    Well done!

    I think it can also be done via CSS (to answer your initial question). The flex layout has an order property that allows you to rearrange elements. That in combination with some adjustments in size should do the trick. But to be honest, I haven’t tried it ??

    Thread Starter kleb123

    (@kleb123)

    Another question; Is it possible to change the date format without changing wp-config (can’t seem to access that)? Maybe with adding something as plugin or css?

    (saw this topic https://www.ads-software.com/support/topic/date-format-213)

    Plugin Author AntoineH

    (@antoineh)

    You can also change the parameters that are used in the template for the matches.

    Since you’re already overwriting the match template, I would suggest to add another filter in that same extension plugin. You need to hook into the following filter: footballpool_predictionform_match_template_params. And then return a newly formatted date in the callback function. Something like this *:

    function change_params( $params, $match_id, $user_id, $is_user_page ) {
      $params['match_datetime_formatted'] = date_i18n( 'your format', $params['match_timestamp'] );
      return $params;
    }

    * untested

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Prediction box next to flag’ is closed to new replies.