rob_st's workspace

Making websites better since 1999.

rob_st's workspace
  •  Developing WordPress
  • Using git

version 4.5.2

Make your WordPress gallery link to a custom image size

Posted on June 2, 2016, updated on November 26, 2016 by robst

Using the WordPress gallery shortcode and linking the gallery items to its media source, WordPress will always create a link to the full size image. For a project I needed to change this behaviour since the full size images uploaded by editors will usually be too large to be dealt with the way we want to.

We will be using galleries linking to large size images and displaying them in a fancybox.

« Read more about: Make your WordPress gallery link to a custom image size  »

Posted in WordPress Tagged functions.php, gallery, shortcode, version 4.5.2 – 5 Comments

Recent Posts

  • Use latest jQuery from CDN in WordPress
  • Sort Magento category by multiple values – keep newest products on top
  • How To: Setup DropBox on your NAS or shared network drive
  • Shared functions.php across WordPress multi-sites
  • Make your WordPress gallery link to a custom image size

Categories

  • Hosting and server
  • Magento
  • Other CMS
  • Something else
  • WordPress

Archives

  • December 2016
  • November 2016
  • August 2016
  • June 2016
  • April 2016
  • February 2016
  • January 2016
  • December 2015
  • November 2015
  • July 2015
  • May 2015
  • November 2014
  • May 2014
  • March 2014
  • September 2013
  • July 2013
  • March 2013
  • February 2013
  • November 2011
  • February 2011
  • June 2010
  • April 2009
Advertisement:
Proudly powered by WordPress | Themes and Plugins developed by Themekraft.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok