Category: WordPress

Post

Preparing WordPress theme (or a plugin) for translation (or internationalization)

In a global world, making sure that WordPress themes or plugins are prepared for easy translation is of the highest¬†importance. By doing that, you’re making sure that your plugin or theme can be translated and used by people who don’t necessarily speak English. And that could sometimes¬†mean millions and millions of users.

by 12. September 2015.2. March 2017.
Post

Listing WooCommerce products by tags

This may not be a frequent request, but few months ago I had a client who wanted to list WooCommerce products by tags assigned to each product. There was no official plugin available (there still isn’t, from what I can tell), but a quick googling brought me to solution created by Remi Corson, WooThemes developer.

Post

How to style and change comment form in WordPress

The WordPress function comment_form() is used for generating¬†commenting form within WordPress theme. The great thing about this function is that it has wide range of parameters you can use to perform fine tuning. You could do something as simple as changing the wording (“Leave a reply”), or you could also create advanced layouts. For example,...

Post

Editing wp_list_comments() output

WordPress Codex says that¬†wp_list_comments()¬†“displays all comments for a post or page based on a variety of parameters including ones set in the administration area”. But headaches begin if you want to change the comment HTML inside theme files – if you ever tried this, but wasn’t able to find any element that appears inside comments’...

Post

How to change Gravatar size in WordPress

For¬†listing comments in your comments template in WordPress theme, you will use¬†wp_list_comments() function. It accepts several parameters, and one of them is avatar_size. Default avatar size is 32 which may appear too small, depending on how your theme is designed. Thankfully, you can easily change this by changing avatar_size within functions’ array: [crayon-5a345b71b25ef178748649/] How big...

Post

Transitions between video slides in Revolution Slider

If you want to use transitions between slides where each slide has video background, there is a simple trick that will make it work. Have a look at this example¬†– there is a nice horizontal sliding effect between slides. The trick¬†is that these aren’t videos sliding, but background images taken from these videos (normally it...

Post

How to avoid black bars in Revolution Slider

So you have that cool video from YouTube or Vimeo and would like to use it on Revolution Slider? Every once in a while, clients ask me how to remove black bars appearing around their videos. This is also a frequent topic on support forums. Given that Revolution Slider will not resize or crop either YouTube...