The CSS -webkit-appearance property allows web developers to make HTML components look more like native User Interface (UI) controls. It also supports the CSS -webkit-appearance property, which is a proprietary CSS extension. The -webkit- prefix on WebKit extensions denotes that they are part of the WebKit open- source framework. example: <!DOCTYPE html> <html lang=”en”> <head> <meta charset=”utf-8″> <meta name=”viewport” content=”width=device-width, initial-scale=1″>… Continue reading What is Webkit CSS & How to Use It.
Category: Wordpress
How to use lottie animations on the web
Get JSON format of animation Add Bodymovin library to the HTML page Load the animation Set the animation trigger It is using in script tag. <script src=”https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js”></script>
What is scroll snap type?
The scroll-snap-type specifies how the elements will snap into focus when you stop scrolling, and in what direction. To achieve scroll-snap behavior, the scroll-snap-type property must be set on the parent element, and the scroll-snap-align property must be set on the child elements. Default value: none.
How to make a menu display in the WordPress sidebar
To make the menu visible in the appearance section we need to write the following code in the functions.php Screenshot
Common Breakpoints
There are some commonly used breakpoints in daily programming. If you’re using a CSS framework (like Bootstrap, Bulma, etc.) you can also use their breakpoints. Now let’s see some common breakpoints for widths of devices: 320px — 480px: Mobile devices 481px — 768px: iPads, Tablets 769px — 1024px: Small screens, laptops 1025px — 1200px: Desktops, large screens 1201px and more — Extra large screens,… Continue reading Common Breakpoints
Project the image gallery to front(150%) without using extra images(while making responsive)
While we are making a site responsive, we can make too many alterations especially while making image gallery responsive. My requirement was to make each of the image project 150% to the front in small devices. One image should occupy the entire row and next image after the other. The cod used here to change… Continue reading Project the image gallery to front(150%) without using extra images(while making responsive)
How do I get the WordPress sidebar widget menu to show up?
To make the widget visible in the sidebar we need to add code in the functions.php Screenshot:
How to dynamically fetch the title, content, and featured image in the template.
Should write the following code in the template file
WordPress register_post_type
Using Custom Post Types, you can register your own post type. Once a custom post type is registered, it gets a new top-level administrative screen that can be used to manage and create posts of that type. To register a new post type, you use the register_post_type () function. Reference:https://developer.wordpress.org/reference/functions/register_post_type/
WordPress add_menu_page ()
Introduction # This function is to add an item in the admin panel’s nav bar. Syntax add_menu_page ( $page_title, $menu_title, $capability, $menu_slug, $function, $icon_url, $position) Parameters Remarks Here is a list of the default positions (for $position) 2 – Dashboard 4 – Separator … Adding the “Theme page title” item to the nav bar Code… Continue reading WordPress add_menu_page ()