Posts under Open Source

How to add native menu support in your WordPress theme?

advertisement

wordpress If you are wordpress theme author, you might see this in your menu settings page very often. “The current theme does not natively support menus, but you can use the “Custom Menu” widget to add any menus you create here to the theme’s sidebar.”

The message above clearly stated that your theme doesn’t natively support menus. If your theme can support menu natively, it allow user to easily choose or modify the menu without any programming knowledge. This is important if you would like to make your theme user friendly and easily customize.

wordpress add native menu support, wordpress support native menu

To add native menu support in your WordPress theme, follow the steps below:-

Continue reading How to add native menu support in your WordPress theme? »

jQuery: disable autoscrolling to top when click on anchor

advertisement

jqueryIf u r building website with jQuery, it’s common if the browser auto scroll to top when user click on anchor element. This happen to me many times and i always forget how to disable the auto scrolling. Thus this post is being created for my own reference and for other developer 🙂

To disable autoscrolling to top when user click on anchor element, follow the steps below:

Continue reading jQuery: disable autoscrolling to top when click on anchor »

Contact Form 7: Clear all field except specific after submission

advertisement

wordpressJust had a job in WordPress and Contact Form 7. My client required some fields to have default value for all the time. However, whenever user submit the form, CF7 will clear all the field once the submission is successful. After some research, i manage to find a solution to retain the field value for CF7 after submission.

Contact Form 7 to clear all field except specific one after submission, follow the steps below:-

Continue reading Contact Form 7: Clear all field except specific after submission »