Scroll to top

Blog

I would like to discuss on whatever your requirement will be. Also I feel pleasure to be a part on that. So let’s just the conversation and finish this in efficient way.

How to create custom wordpress logout button(wp_logout_url) in wordpress?

custom wordpress logout button(wp_logout_url) in wordpress <li class=”menu-logout”><a href=”<?php echo wp_logout_url(); ?>”><span><i class=”fa fa-sign-out”></i></span>Logout</a></li> Or <li class=”signOut”><?php wp_logout(); ?></li> add_action( ‘wp_logout’, ‘auto_redirect_external_after_logout’); function auto_redirect_external_after_logout(){ wp_redirect( ‘http://redirect-url’ ); exit(); } Get

Read More »

How to use if condition and change on scroll in jqurey?

 use if condition  and change on scroll in jqurey? <script src=”https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js”></script><script> $(document).ready(function(){var $w = $(window).scroll(function(){    if ( $w.scrollTop() > 1000 ) {          alert(“hello”);    

Read More »

How to get Selected Option Text of HTML SELECT using jQuery?

Get Selected Option Text of HTML SELECT using jQuery <select id=”mySelect”>     <option value=”1″>hello</option>     <option value=”2″>bro</option> </select> <input type=”button” id=”test“ value = “test“ /> <script type=”text/javascript”>     $(“#test”).live(“click”, function () {                  var selectedText = $(“#mySelect option:selected”).html();         alert(selectedText);     }); </script>

Read More »