Skip to content

WP Developing

Learning WP Development My Way

Tag: media

Is it possible to change the image dimensions for thumbnails?

 

The plugin currently uses 240×180:

add_image_size('drts_thumbnail', 240, 180, true);

This can be overridden by adding code to the functions.php file of your theme:

add_action('init', function() {
    add_image_size('drts_thumbnail', 240, 160);
});

 

Can one show videos in addition to images?

Yes.

Recent Posts

  • Things You Almost Certainly Will Never Need to Know: WDS-Shortcodes
  • DevKinsta: Initial Thoughts and Feedback
  • Migrating a WordPress Site to SpinupWP the Easy Way
  • When You Get an Invalid Default Value Error While Changing Your MySQL Engine on a Table from MyISAM to InnoDB
  • Headless WordPress

Recent Comments

  • phg3a on Things I’ve Learned Using Flywheel Local
  • Ben on Things I’ve Learned Using Flywheel Local

Archives

  • May 2021
  • April 2021
  • November 2020
  • September 2020
  • May 2020
  • April 2020
  • September 2018

Categories

  • Database
  • Developer Knowledge
  • Developer Tooling
  • Directories Pro
  • Gatsby
  • Hosting
  • MySQL
  • Plugins
  • SQL
WP Developing Proudly powered by WordPress