Tag: JavaScript

  • Advent Calendar – WordPress Editor: Preserve the scroll position

    Advent Calendar – WordPress Editor: Preserve the scroll position

    WordPress has a nice editor, with which are several hundreds of articles written daily. But in my opinion the editor has an usability issue. Every time you save a post the scroll position of the editor will be on top again. If you want to continue writing the post you have first to find he…

  • Localization with JavaScript in WordPress

    Creating Plugins and Theme functions with multilanguage capability has been established knowadays.Especially for us as German developers it is a must have. But there are some difficulties if you are using JavaScript, the question is how to provide it multilingual or provide option values in different languages. WordPress offers some possibilities and I like to…

  • Fix Empty Searches

    Fix Empty Searches

    One minor problem for any web site is duplicate content: the same resource is available under different URIs. Yes, we have <link rel=canonical>, but anything that prevents such cases is better. Today, let’s look at something, that most professionals never see: empty searches. You offer a search input field, and someone hits the submit button…

  • Category And Archive Dropdown With Unobtrusive JavaScript

    Category And Archive Dropdown With Unobtrusive JavaScript

    A good website works when a user comes along with JavaScript disabled, just as well as with scripting enabled. You separate the JS layer of the site from anything else (and waived for example, onclick in HTML) and places the scripts in a way that only improves the already existing functionality of the site. So…

  • WordPress Implements Jcrop

    With the upcoming version 2.8 of WordPress, the extension to the JavaScript library jQuery Jcrop is implemented. Jcrop allows directly into a web application to crop images. A first peak shows the site about Jcrop and I’m curious how it will be included in WordPress, currently is no live demo available.

  • Use JavaScript Libraries In And Of WordPress

    If you develop in and for WordPress, it’s advisable to use a library of the core and a Plugin for the the library with the desired effect. Same for theme and Plugin authors. If you use a function of WordPress to implement JavaScript, you will have less complications and the compatibility between Plugins is much…