RewriteCond %{ENV:REDIRECT_STATUS} ^$ RewriteRule (.+)/$ /$1 [R=301,L]
Add dynmic custom menu in footer or any other page in wordpress
<?php> wp_nav_menu( array( 'menu' => 'menu-name') ); <?>
Hide Long or Overflow Text in HTML
.text-container { width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 10px; border: 1px solid #ccc; }
http To Https & redirect it to WWW simple Code
Options -MultiViews RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^xyz.com$ [NC] RewriteRule (.*) https://www.xyz.com/$1 [R=301,L] RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.xyz.com/$1 [R,L]
Make Bootstrap Menu 100% Width
Just copy and paste
.nav > li.dropdown.open { position: static; } .nav > li.dropdown.open .dropdown-menu { display:table; width: 100%; text-align: center; left:0; right:0; } .dropdown-menu>li { display: table-cell; }
Rotate a block in CSS
Just copy and paste
.rotate { animation: rotation 1s infinite linear; } @keyframes rotation { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }