Skip to content

Instantly share code, notes, and snippets.

View hasanmisbah's full-sized avatar
😃
lunatic

Hasan Misbah hasanmisbah

😃
lunatic
View GitHub Profile
@hasanmisbah
hasanmisbah / Wordpress Theme Resource.md
Last active April 28, 2016 18:31
My Personal Resource For WordPress Theme Development i also sharing it publicly For Everyone, you can add remove anything. if you wanna add something please Comment First

/**

  • Register our sidebars and widgetized areas.
  • it Contain 2 Side bar named "Left Sidebar" and "Right Sidebar" */

// Add Value Line in functions.php File

function wpb_widgets_init() {
@hasanmisbah
hasanmisbah / Link.md
Last active April 28, 2016 19:01
personal reading or important link
nav{
margin: 0;
padding: 0;
display: block;
width: 100%;
}
ul.topnav{
margin:0;
padding:0;
}
@hasanmisbah
hasanmisbah / hasClass.js
Created August 18, 2021 19:03
Returns true if the element has the specified class, otherwise false .
// Check element have class
const hasClass = (el, className) => el.classList.contains(className);
// usage
hasClass(document.querySelector('p.special'), 'special');
@hasanmisbah
hasanmisbah / FormBuilderSchemaSample.js
Created September 15, 2022 18:05
Form Builder Schema (Draft). Build Form Based on schema
export const schema = {
name: {
type: 'text',
label: 'Name',
id: 'Name',
placeholder: '',
value: ''
},