Category Archives: WordPress

Ajax support in SWE Accordion Widgets

In Standard Widget Extensions 1.7, Ajax support gets improved. Accordion Widgets continue to work after Ajax update of sidebars. But you may need following customization for better widget behavior. 1. Set the class for heading elements After Ajax update, heading elements lose classes added by the plugin. So you may need to set the class in your theme. Following is modification for Twenty Fourteen as an example, setting hm-swe-expanded class for headings. in functions.php register_sidebar( array( ‘name’ => __( ‘Content Sidebar’, ‘twentyfourteen’ ), ‘id’ => ‘sidebar-2’, ‘description’ => __( ‘Additional sidebar that appears on the right.’, ‘twentyfourteen’ ), ‘before_widget’ => ”, ‘after_widget’ => ”, ‘before_title’ => ”, ‘after_title’ => ”, … Continue reading Ajax support in SWE Accordion Widgets

Perfect git-svn for WordPress plugin development

WordPress plugin developers need to use subversion to commit their plugins to the WordPress.org repository. And because many developers are using GitHub in their development, it is needed to interwork between Git and Subversion. Though there is a way to make a script program including both git and svn commands, git-svn is a option I like to use because of its simplicity. After using git-svn and making some commits in plugin development, I learned key points for a happy workflow. I’ll introduce them in this entry and hope it will help you. Even if you are not a WordPress plugin developer, it might help you when you use git-svn. This … Continue reading Perfect git-svn for WordPress plugin development

Assets directory with git-svn in WP plugin development

There are many articles which introduce workflows for git users in WordPress plugin development which requires subversion to publish into the official directory. Some articles demonstrate workflows using script programs to call svn commands for interworking between git and svn. But I like to use git commands alone for version control. And I can do plugin development with git-svn like this article or this. One remaining thing is the ‘assets’ directory, which we use for files not required in plugin packages. For example, the assets directory can contain images and banners displayed on the plugin directory pages in WordPress.org. And because it is not under the standard directory structure of … Continue reading Assets directory with git-svn in WP plugin development