New Clean Responsive Design. Easy to Setup Lightweight Theme with quick support.Theme is good to create for Corporate looking website owners.
Features:
Here Are some Steps to convert Hex color code to RGB color Code
Step-1 : First write your php function for convert Hex color
function hex2rgb($hex) { $hex = str_replace("#", "", $hex); if(strlen($hex) == 3) { $r = hexdec(substr($hex,0,1).substr($hex,0,1)); $g = hexdec(substr($hex,1,1).substr($hex,1,1)); $b = hexdec(substr($hex,2,1).substr($hex,2,1)); } else { $r = hexdec(substr($hex,0,2)); $g = hexdec(substr($hex,2,2)); $b = hexdec(substr($hex,4,2)); } $rgb = array($r, $g, $b); return $rgb; // returns an array with the rgb values }
Step-2 : Call this function everywhere where you want to get converted hex color code here an example that how to call this fucntion
$Hex_color = "#31A#DD"; $RGB_color = hex2rgb($Hex_color);
Step-3 : Echo this variable at where there you want to show rgb color but first implode this variable using comma here an example
$Final_Rgb_color = implode(", ", $RGB_color);
Step-4 : Use this code in style , Here is an example
<style> .container { background : rgba(<?php echo $Final_Rgb_color; ?>,1); } </style>
Thanks
Howdy..
Today , Everybody want their Themes should be customized according their requirements . Customization can be done either doing HARD-CODING with in the themes.
But I’d suggest you all to Go with Child Theme.
What is Child Theme : Child Theme is a Modified Version of The Parent Theme without modifying the Parent Theme’s Code.
Why We need this : As I stated above , In child we don’t edit or modify the line of code in parent theme and this help us , when we update our parent theme we do not lose the modification we have done in the child theme.
Okay Then It is time to start the making our own new Child Theme.
Step 1.) Here I’ve named my new Child Theme with Weblizar-Child , Because It is the Child of Theme Weblizar. Here we go, Create a New Folder called “weblizar-child” [ you can chose your own name ] .
Step 2.) Now make a new Stylesheet for the Child Theme, this Stylesheet will import the Whole CSS of the Parent Theme Weblizar
Step 3.) Open up above created Stylesheet -> style.css, In the header of the stylesheet. Add THEME NAME: , Template: And also Import Parent Stylesheet into Child Themes style.css
Step 4.) Add Screenshot with Resolution of 880 x 660 px for your Child Theme. That’s It, Now Go to your WordPress Admin Dashboard. You can See your new Child Theme.
This was a basic Tutorial for how to a Make Child Theme, You can modify your child theme both in code & in styles.
Thanks
For more amazing blog posts, follow our blog page.