itsrahul7986
Forum Replies Created
-
Sorry I was outstation so didn’t check the thread I posted because it was fixed on the same day when I posted it here. Anyway, Savvas provided the same solution and I am sure it is working so we are good to close this thread as solved. Thanks, Savvas for your assistance as always.
Well, I do use the default WP registration form but as you can see in my screenshot that I have added some SportsPress fields to it by using some custom code. I am just curious about that option because adding a team involves logos, short names, and abbreviations. How that option can help just by adding the team field on the registration form? or does it also provide an option to select a logo, or short name, or just give the option to add the team name only?
Custom code done the trick. Thanks
Thanks, I will look into that custom code.
Yes. thank you. In my case I have to set both Pts and NRR in Descending order to get it correct Pos.
https://prnt.sc/u7HPFQiXNgUi while trying numbers look like setting sort order to 3 makes things correct in the league table https://prnt.sc/WbcfOk82cXUp …Can you please tell me what is this feature of sort order and what number 3 is doing?
I set the order number 49 https://prnt.sc/3wILZtYE9Bp3 as I want that NRR column to appear in the last of the league table, I think something to do with that sort order thing which looks disabled in my above screenshot so I enable it and select 1 there but then league table shows like this https://prnt.sc/ZV4t7CPj8BHG and this is also wrong so I think something wrong in my setting…Please advice. Thanks
Thanks, really appreciated.
Okay. thanks
So I have to translate the entire string esc_attr__( ‘— None —’, ‘sportspress’ ) with whatever name I like…right?
But, I also have the WP Frontend Admin plugin which also helps to rename it, and when I rename — None — to 1st Innings in the first box of team selection and the same way 2nd Innings to the 2nd team box and save it then both boxes shows 1st Innings so it seems both team boxes can’t have different names in place of that — None —. Can I also put different names if I translate the string as you advised?
Nevermind, I fix it by making some changes in themes function.php and enter custom admin CSS and JS to get that search and select the option while selecting a team on phones
This I put in themes Function.php
add_action(‘admin_enqueue_scripts’, function(){
wp_enqueue_style( ‘select2_css’, ‘https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/css/select2.min.css’ );
wp_register_script( ‘select2_js’, ‘https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/js/select2.min.js’, array(‘jquery’), ‘4.0.3’, true );
wp_enqueue_script(‘select2_js’);
});`2nd I put in the custom Admin CSS section at one of my plugin which offers it
.chosen-container{
display:none;
}And last I put in the custom Admin JS of that same plugin
jQuery(window).ready(function(){
jQuery(‘select’).chosen(“destroy”);
jQuery(‘select’).select2();
});