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, why would you have author...

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’ HTML (try theme string search...

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-5a345a1c1e893289131753/] How big can Gravatar be? The simple...

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 will be a screenshot of...

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 or Vimeo videos (as it...

Allowing HTML within WordPress excerpt

Allowing HTML within WordPress excerpt is a very common request. Therefore, I am providing likely the most complete solution available on the Internet. The code is posted on stack exchange WordPress channel and is created by Pieter Goosen. The complete explanation with further examples can be found on the link provided.

Adding CSS transition on Bootstrap drop-down menu

If you implemented bootstrap into your WordPress template and want to add CSS transitions to drop-down menu, you can use the following code: [crayon-5a345a1c1f549920465021/] Why media queries? Because you don’t want display:block on hover on the mobile menu (as the hover used for this would double the submenu). As for CSS transitions, you can generate them using any of the online generators,...