AlexYorks Posted April 10, 2020 Share Posted April 10, 2020 Hi, A page that loads a Slider on my Word Press Page loads the slider to OFF. I want It to load to ON as default Its in a php file that resides in a Plugin inside a Shortcodes directory Ive tried to change it but it seems to do nothing when i reload the page. I even deleted the file with the code in and it didnt effect the page at all? Any help would be very mutch appriciated. if($enableGoogle == 'yes'){ $output .= '<div class="fill-o-bot-wrap"> <div class="row"> <div class="col-md-2"> <img src="'. get_template_directory_uri() .'/assets/images/bot-icon.png" alt=""> </div> <div class="col-md-7"> <strong>'.esc_html__( 'Feeling lazy? Say HELLO! to Fill-O-Bot! ', 'listingpro-plugin' ).'</strong> <p>'. esc_html__( 'Don’t worry Fill-o-BOT will help you OUT! Just enter any business on google places and Fill-O-Bot automatically fills in the data that it can grab.', 'listingpro-plugin' ) .'</p> </div> <div class="col-md-3"> <div class="bot-on-tag-wrap"> <span class="bot-on-tag">'. esc_html__( 'Turn Me On', 'listingpro-plugin' ) .'</span> <label class="switch"> <input id="fill-o-bot-check" class="form-control switch-checkbox" type="checkbox" name="fil-o-bot-check"> <div class="slider round"></div> </label> </div> </div> </div> </div>'; Quote Link to comment https://forums.phpfreaks.com/topic/310523-wordpress-slider/ Share on other sites More sharing options...
AlexYorks Posted April 10, 2020 Author Share Posted April 10, 2020 I said slider, I meant a form button, you click left to right Quote Link to comment https://forums.phpfreaks.com/topic/310523-wordpress-slider/#findComment-1576658 Share on other sites More sharing options...
ginerjm Posted April 10, 2020 Share Posted April 10, 2020 From looking at a manual it would appear that you need to set the checked value of the checkbox element you define for this "toggle" button. Quote Link to comment https://forums.phpfreaks.com/topic/310523-wordpress-slider/#findComment-1576659 Share on other sites More sharing options...
AlexYorks Posted April 10, 2020 Author Share Posted April 10, 2020 Thanks for your comment Any idea how to do that Quote Link to comment https://forums.phpfreaks.com/topic/310523-wordpress-slider/#findComment-1576660 Share on other sites More sharing options...
ginerjm Posted April 10, 2020 Share Posted April 10, 2020 The checkbox is right there in your posted code. Add the attribute to it. Simple. Quote Link to comment https://forums.phpfreaks.com/topic/310523-wordpress-slider/#findComment-1576663 Share on other sites More sharing options...
AlexYorks Posted April 11, 2020 Author Share Posted April 11, 2020 (edited) Anybody care to show me the attribute. Thanks. Edited April 11, 2020 by AlexYorks Quote Link to comment https://forums.phpfreaks.com/topic/310523-wordpress-slider/#findComment-1576682 Share on other sites More sharing options...
Barand Posted April 11, 2020 Share Posted April 11, 2020 4 minutes ago, AlexYorks said: And the attribute is... ... the one @ginerjm told you to set Quote Link to comment https://forums.phpfreaks.com/topic/310523-wordpress-slider/#findComment-1576683 Share on other sites More sharing options...
AlexYorks Posted April 11, 2020 Author Share Posted April 11, 2020 2 minutes ago, Barand said: ... the one @ginerjm told you to set And the code for that is? Quote Link to comment https://forums.phpfreaks.com/topic/310523-wordpress-slider/#findComment-1576684 Share on other sites More sharing options...
Barand Posted April 11, 2020 Share Posted April 11, 2020 https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Input/checkbox Quote Link to comment https://forums.phpfreaks.com/topic/310523-wordpress-slider/#findComment-1576685 Share on other sites More sharing options...
AlexYorks Posted April 11, 2020 Author Share Posted April 11, 2020 Just now, Barand said: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Input/checkbox Amazing thankyou Quote Link to comment https://forums.phpfreaks.com/topic/310523-wordpress-slider/#findComment-1576686 Share on other sites More sharing options...
AlexYorks Posted April 11, 2020 Author Share Posted April 11, 2020 If anyone feels like placing the code here to be even more helpful please feel free Quote Link to comment https://forums.phpfreaks.com/topic/310523-wordpress-slider/#findComment-1576687 Share on other sites More sharing options...
Barand Posted April 11, 2020 Share Posted April 11, 2020 Jeez!. The additional code you need to add is checked You might find a basic adult literacy course here https://manadulted.org.uk/our-courses/esol/ Quote Link to comment https://forums.phpfreaks.com/topic/310523-wordpress-slider/#findComment-1576689 Share on other sites More sharing options...
AlexYorks Posted April 11, 2020 Author Share Posted April 11, 2020 I was just pulling your chain, your too easy 😂 Quote Link to comment https://forums.phpfreaks.com/topic/310523-wordpress-slider/#findComment-1576691 Share on other sites More sharing options...
Barand Posted April 11, 2020 Share Posted April 11, 2020 57 minutes ago, AlexYorks said: your you're 58 minutes ago, AlexYorks said: I was just pulling your chain, your too easy I'll take that as an admission of deliberate time-wasting 1 Quote Link to comment https://forums.phpfreaks.com/topic/310523-wordpress-slider/#findComment-1576697 Share on other sites More sharing options...
ginerjm Posted April 11, 2020 Share Posted April 11, 2020 I think you are in the wrong business. You don't even WANT to do any coding and this is a one word fix. Jeez! And pulling the chain of someone you expect help from is not the way to get more help. And you definitely need it. Quote Link to comment https://forums.phpfreaks.com/topic/310523-wordpress-slider/#findComment-1576711 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.