How to add auto redirect to https in wordpress

TO add add auto redirect to https in WordPress.

Open .htaccess files from home directory

add below code and upload

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

It look like like full htaccess

# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# END WordPress

It will do auto redirect to https in wordpress

animated effect in search box button from right to left

CSS is most popular nowadays, day by days css is coming up with new features. To add an animated search box button that start effect from right to left open

First add search your form

 <form><input name="search" type="text" placeholder="Search ?" /></form>

include Style

 <style> 
input[type=text] {
 width: 130px;
 box-sizing: border-box;
 border: 2px solid #ccc;
 border-radius: 4px;
 font-size: 16px;
 background-color: white;
 background-image: url('searchicon.png');
 background-position: 10px 10px; 
 background-repeat: no-repeat;
 padding: 12px 20px 12px 40px;
 -webkit-transition: width 0.4s ease-in-out;
 transition: width 0.4s ease-in-out;
 margin: 0 0 0 auto;
float:right;
}
#input:focus {
 width: 100%;
}
input[type=text]:focus {
 width: 100%;
}
</style>

See Demo

Right to left

Left to Right

where to add site logo and site description for displaying in whatsapp share and social media share?

To display website Title in social media share
you have to add below meta insidetag

 <meta property="og:description" content="Display Site Title for sharing in social media" />

To display website description in social media share
you have to add below meta insidetag

<meta property="og:description" content="Display Site Title for sharing in social media" />

To display website logo in social media share
you have to add below meta inside <head> tag

 use png image only

 <meta property="og:image" content="https://www.tutorialshore.com/wp-content/uploads/2018/08/tutorialshore-1.png" />

See Full code

 <head>
<meta property="og:image" content="https://www.tutorialshore.com/wp-content/uploads/2018/08/tutorialshore-1.png" />
<meta property="og:title" content="social media Share" />
<meta property="og:description" content="where to add Site logo and site description for displaying whats app and social media" />

CSS Media Queries with min-width and max-width Syntax

Let us look at how we write Media Queries with min-width and max-width . we know that Media queries are a popular  Technic for styling based on the screen size .here we are going to discuss the syntax of Media Queries with min-width and max-width

We have standard for max-width and min-width

@media only screen and (max-width : 1600px) {

.title-cl h4{ font-size:28px; }

}

@media only screen and (min-width : 578px) {

.title-cl h4{ font-size:16px; }

}

 

So how we are adding both  with min-width and max-width Media Queries

 

@media screen and (max-width: 1024px) and (min-width: 578px) {

.title-cl h4{ font-size:22px; }

}