Per Søderlind

I code for fun

Adding WP-PageNavi to the Yoko theme

I'm using the Yoko theme and WP-PageNavi here at soderlind.no Yoko is a modern three-column blog theme. A responsive layout optimizes the theme for mobile devices like tablet pcs and modern smartphones (the layout switches to a two- or one-column layout depending on the screen size the theme is viewed...

WordPress plugin: Remove "Comments are closed"

On posts where comments are closed, the plugin will remove the text 'Comments are closed.' The plugin supports any languages/text domains, and will remove the text from themes and plugins. Prerequisite: Since the plugin is filtering gettext, your theme/plugin must be localized. The plugin is available in the WordPress plugin...

Adding custom headers to the WordPress plugin directory

As an experiment, Matt has turned on custom headers for the plugin directory. How to add a custom header: Make a 772×250 pixel jpeg or png In the plugin root directory, create a new directory "assets": [shell light="true"]mkdir assets[/shell] After you've created the assets directory, you should have the following...

WordPress and WebPutty

I've written a simple plugin that allows you to modify your WordPress sites using WebPutty. So what's WebPutty? WebPutty is a simple CSS editing and hosting service. WebPutty gives you a syntax-highlighting CSS editor you can use from anywhere, the power of SCSS and Compass, a side-by-side preview pane, and...

Modernizr 101

.. or, why I like it. When developing for the web, I've always been a fan of checking for functionality using object detection, I NEVER try to detect which browser you are using. Modernizr does this much better that the other methods I've seen (and used). Modernizr is a small JavaScript...

Front-end editor in WordPress 3.3 is easy

Update: Things will have to change, TinyMCE 4.0 is in core: New UI and UI API. New theme. Revamped events system/API. Better code quality, readability and build process. Lots of (inline) documentation. And generally many improvements everywhere. TinyMCE 4.0 Highlights Demos Thanks to sushkov, WordPress 3.4 adds support for DFW...

Upgraded to WordPress 3.2 and nothing worked (internal error ...)

Luckily I log all PHP errors and the error log told me where the error was (an old plugin I've forgotten to remove) .. phew To log errors, I have the following statement at the top of my wp-config.php: @ini_set('log_errors','On');<br /> @ini_set('display_errors','Off');<br /> @ini_set('error_log','/PATH/log/php_errors.'.date('Y-m-d').'.log');

Fade away and hide the WordPress 3.1 Admin Bar

Instead of disabling the WordPress 3.1 Admin Bar, use this plugin, based on Codrops Fixed Fade Out Menu, to fade away the WordPress Admin Bar when you scroll down the page. The plugin is availeable in the WordPress Plugin Directory Changelog: 1.0.1 - Thanks to @TheFrosty, added is_admin_bar_showing() 1.0.0 -...

SimpleModal Janrain Engage

Images: Login Register Welcome back SI Captcha SimpleModal Janrain Engage adds Janrain Engage (aka rpx) to your SimpleModal Login Download the plugin from the WordPress Plugin Directory If you like and use the plugin, please rate it (if you feel it deserves less than 5 stars, please tell me why in the comment...