Twitter has updated the API to version 1.1, so as the twitter plugin. Be sure to update here!
Swipebox – A touchable jQuery lightbox
Fluid Videos with CSS
I used to use fitvid.js to make my videos responsive, but I recently discovered an awesome tip by Grafikart that I want to share.
You can basically make your video responsive with CSS only using padding-bottom.
First, wrap your iframe code with the class of your choice
<div class="fluid-video">
<iframe src="http://player.vimeo.com/video/29193046" width="500" height="281" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
</div>
Then, simply add this CSS snippet in your sylesheet
.fluid-video{
width: 100%;
height: 0;
padding-bottom: 56.25%; /* 16/9 format */
overflow: hidden;
position: relative;
}
.fluid-video iframe, .fluid-video embed, .fluid-video object{
width: 100%!important; height: 100%!important;
position: absolute;
top: 0; left: 0;
}
Enable WP_DEBUG
In some case, you will have to be able to view WordPress error messages to debug your theme or plugin.
Debugging PHP code is part of any project, but WordPress comes with specific debug systems designed to simplify the process as well as standardize code across the core, plugins and themes.
Open your wp-config.php file and set the WP_DEBUG constant to “true” (around row 81)
define('WP_DEBUG', true);
How to Translate your WordPress Theme
Usually, WordPress themes that are translatable contain a “languages” or “lang” folder where you will find a default.po file.
To edit this .po file and translate a theme, you will need poedit.
How to Increase your Upload Size Limit
Upload an audio file can a be problem if your server has a low upload maximum size limit. (e.g 4M)
I’m talking here about my music themes, Live! and Music Pro that integrate the jPlayer feature or the Wolf jPlayer plugin.
I had the problem on my own and here is a way to work around this.
Common wordpress theme issues
‘Broken Theme’ and ‘Stylesheet Missing’ Issues
A common issue that can occur with users new to installing WordPress themes is a “Broken theme and/or stylesheets missing” error message being displayed when trying to upload or activate the theme.
First, you can check the installation instructions in the documentation contained in your theme package.
Be sure to do NOT install the whole package.
Usually, the package downloaded on themeforest is named themeforest-XXXXX-theme-name-description.zip. (e.g : themeforest-4521198-ergo-simple-ergonomic-and-clean-wordpress-theme.zip ).
First, extract this archive pack anywhere on your computer using an archiver (winrar, winzip etc…).
Inside this package you will find the theme folder to install: themename (e.g : ergo), and the “Documentation” folder.
You can upload the theme folder directly through FTP or you can compress it with winrar or another archiver as zip file and install it in the WordPress admin.
You can also check this link.
Why using FTP is better?
The reason why I encourage to install themes via FTP is for the eventual future updates.
If you have to update the theme, you will see that it will be much more convenient to use FTP to replace all the theme files.
This way you won’t have to re-install the theme through WordPress from scratch and re-activate it for each update.
I got a 404 Error
90% of the time, if you have someting wrong related to your permalink structure, for exemple, if your custom types show a 404 error, there is simple thing to do to fix this:
Go to your wordpress settings -> permalinks and re-save your permalink structure.
If you still encounter errors with your permalink stucture, it may be related to your server. Be sure that you hosting service provide the mod_rewrite PHP extension.