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 use shortcode in wordpress?

use shortcode in wordpress in function.php or main plugin file function login_register(){ ?> <div  id=”loginform”><form method=”post” action=””> <h4>Login</h4> <div class=”border”></div> <div><span id=”or”>or<span><span id=”full1″> create an account</span></div> <div class=”wrap-input100 validate-input” data-validate=”Enter

Read More »

How to create logout page with session in wordpress?

Create logout page with session in wordpress <?php session_start(); session_destroy(); session_unset(); //echo ‘<script LANGUAGE=”JavaScript”>window.location.href=”‘.site_url().’”;</script>’; if(!isset($_SESSION[‘ID’])){  echo ‘<script LANGUAGE=”JavaScript”>window.location.href=”‘.site_url().’/login-form”;</script>’; } ?> <script>     location.reload(); </script>

Read More »

How to size 100% width and height in html?

How to size 100% width and height in html?     <html> <head> <style> .outer{ width: 100%; height: 100vh; background:red; } </style> </head> <body> <div class=”outer”> </div> </body> </html> Get

Read More »

How to accept image extension from url in php?

How to accept image extension from url in php? <?php  $file_name = ‘http://localhost/brrrr/wp-content/uploads/2019/11/New-Business-card-4.jpg’; echo $file_name.”<br>”; $allowed = array(‘gif’, ‘png’, ‘jpg’); $ext = pathinfo($file_name, PATHINFO_EXTENSION); if (!in_array($ext, $allowed)) {    

Read More »

How to shrink navbar on scroll ?

Shrink navbar on scroll  <style>.nav_logo_scroll{ width: 120px !important;     transition: all 0.5s linear; margin-left: 45px}.jassi{ width: 100% !important;   transition: all 0.5s linear;}</style> <script>jQuery(document).ready(function($){ $(window).scroll(function() { if($(document).scrollTop() >=1) {

Read More »