Hello Friends, If you want to close the ColorBox Popup window using your custom button then use given code on your site. Example : <input type=”button” value=”Continue to map” id=”et-reset” class=”custom-close”> <script> colorbox = jQuery.colorbox; jQuery(".custom-close").click(function() { colorbox.close(); }); </script> Hope you all will be enjoy this script. http://www.jacklmoore.com/colorbox/ Happy New Year
Hello Friends! Hope you all are doing well! :) I am here now going to share some useful information with you to get the specific tag value from XML format. $dom = new DOMDocument; $dom->loadXML($result); /* define XML path */ $customValues = $dom->getElementsByTagName('executionStatus'); foreach ($customValues as $val) { echo $val->nodeValue, PHP_EOL; } Hope you
Hello Friends! Hope you all are doing well! :) If you want to check that your website is browsing in mobile phone and desktop OR want to add the any condition for mobile/desktop then use code given below : <?php function is_mobile_browser() { $is_mobile = (bool) preg_match( '#\b(ip(hone|od)|android\b.+\bmobile|opera m(ob|in)i|windows (phone|ce)|blackberry' . '|s(ymbian|eries60|amsung)|p(alm|rofile/midp|laystation portable)|nokia|fennec|htc[\-_]' . '|up\.browser|[1-4][0-9]{2}x[1-4][0-9]{2})\b#i',
Hello Friends! Hope you are doing well :) I am here going to tell you some useful script for manage .htaccess file of your website. First of all you have need to check the RewriteEngine is “on” or not in your htaccess file. if not then add the given code in top of the file
Hello Friends! Facebook has done some changes in his API so that’s why we are unable to define the “Share Image” in facebook share window in a way that was given on my last post https://www.wp-experts.in/blog/2013/08/21/how-add-thumb-image-in-custom-facebook-share-link-window/ but don’t worry i am here only for you :) Using “OG Meta Tags” we can define facebook share
Hello friends!. If you want to add the donate form on your website then just used code given below: <form name="_donations" action="https://www.paypal.com/cgi-bin/webscr" method="post"> <div><div>First Name: <font color="red">*</font></div><input type="text" name="first_name" value=""><div></div></div> <div><div>Last Name:<font color="red">*</font></div><input type="text" name="last_name" value=""><div></div></div> <div><div>Phone Number:</div><input type="text" name="night_phone_a" value=""><div></div></div> <div><div>Address1:<font color="red">*</font></div><input type="text" name="address1" value=""><div></div></div> <div><div>Address2:</div><input type="text" name="address2" value=""><div></div></div>
Hello friends! Hope you doing well :) If you want to sort the array on base of array key then just follow my code given below: <?php $myarray = array( array("name"=>"Bob","price"=>8,"colour"=>"red"), array("name"=>"Greg","price"=>12,"colour"=>"blue"), array("name"=>"Andy","price"=>5,"colour"=>"purple")); $sortArray = array(); foreach($myarray as $person){ foreach($person as $key=>$value){ if(!isset($sortArray[$key])){ $sortArray[$key] = array(); } $sortArray[$key][] = $value;
Hello Everyone! If you would like to find out all images given in any php pages, then don’t worry i am here tell you all a very simple way for do this. Example : 1. First you have need to store the page content in a single PHP variable like given below : <?php
Hello Everyone! Hope you all are doing well. If you want to display the content from any blog on your site through the RSS FEED then please use my code. I hope this will be very help full for you :) <?php $rss = new DOMDocument(); $rss->load('https://www.wp-experts.in/blog/feed/'); //RSS FEED URL $feed
Hello Friends! Hope you all are doing well and enjoy my blog. If we want to submit a form without page load then we used ajax for do that. i am here telling you a way for submit a form using ajax. Just copy and paste the “Ajax Code” between the head tag AJAX CODE <script