March 2016
JS beginner to expert, study notes-5 (sec-10 DOM)
Document Object Model is a very powerful tool and also very important topic for javascript programmers.
wordpress shortcodes
Create a new php file and include it in the main functions.php file. We will write shortcode detail in that file. function headingStyle(){ return ‘<h1>hello</h1>’; } add_shortcode(“heading”, “headingStyle”);
JS beginner to expert, study notes-4 (sec-9 loops)
For-in loop is like foreach loop of php. It iterates through any object or array….
JS beginner to expert, study notes-3 (sec-8 arrays)
Arrays are essential structure and field of study for any programming languages…
JS beginner to expert, study notes-2 (sec-7: objects)
In javascript everything is object. A very clear idea of object structure is needed to understand the subject well…
JS beginner to expert, study notes-1 (sec-1~5: basics & function)
This part is a summary of what i see some trivial basics of JS and its functions
How to add section-wise settings in Redux
To format the setting section: We have to start an array with type=>section and indent=>true. To end a section we have to declare an
How to build a custom widget in wordpress
For our specific purpose, we need to create a php class file which will extend the wordpress’s core WP_Widget class.
register and place menu, sidebar, custom post etc
Menu First register the navigation menu in functions.php file. To do this we have to write the following code inside functions.php file:
Font awesome
For adding font awesome in wordpress, we need to download and extract font awesome from github and then copy the ‘css’ and ‘fonts’ folder inside our theme directory.