<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	>

<channel>
	<title>wordpress &#8211; luke arms</title>
	<atom:link href="https://tech.lkrms.org/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>https://tech.lkrms.org</link>
	<description>just a nerd with &#34;mild OCD tendencies&#34;</description>
	<lastBuildDate>Tue, 25 Sep 2018 11:57:51 +0000</lastBuildDate>
	<language>en-AU</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.6.12</generator>

<image>
	<url>https://tech.lkrms.org/wp-content/uploads/2016/06/cropped-Logo-Letters-WB-Circle-2-32x32.png</url>
	<title>wordpress &#8211; luke arms</title>
	<link>https://tech.lkrms.org</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">152348619</site>	<item>
		<title>WordPress, Lightbox Plus ColorBox, native galleries and captions</title>
		<link>https://tech.lkrms.org/wordpress-lightbox-plus-colorbox-native-galleries-and-captions/</link>
					<comments>https://tech.lkrms.org/wordpress-lightbox-plus-colorbox-native-galleries-and-captions/#comments</comments>
		
		<dc:creator><![CDATA[Luke]]></dc:creator>
		<pubDate>Tue, 05 Feb 2013 05:38:58 +0000</pubDate>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[wordpress]]></category>
		<guid isPermaLink="false">http://lkrms.org/?p=385</guid>

					<description><![CDATA[<p>Last night, I posted my first ever native WordPress gallery (old dog, new tricks, etc). The thumbnails were pretty enough, but clicking through to a clunky WordPress &#8220;attachment page&#8221; &#8211; or worse, a raw JPEG file &#8211; was too much hard work, so I went looking for a Lightbox plugin for WordPress. Enter Lightbox Plus &#8230; <a href="https://tech.lkrms.org/wordpress-lightbox-plus-colorbox-native-galleries-and-captions/" class="more-link">Continue reading <span class="screen-reader-text">WordPress, Lightbox Plus ColorBox, native galleries and captions</span> <span class="meta-nav">&#8594;</span></a></p>
<p>The post <a rel="nofollow" href="https://tech.lkrms.org/wordpress-lightbox-plus-colorbox-native-galleries-and-captions/">WordPress, Lightbox Plus ColorBox, native galleries and captions</a> appeared first on <a rel="nofollow" href="https://tech.lkrms.org">luke arms</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Last night, I posted my <a href="https://lkrms.org/x100-365-outtakes-january/">first ever</a> native WordPress gallery (old dog, new tricks, etc). The thumbnails were pretty enough, but clicking through to a clunky WordPress &#8220;attachment page&#8221; &#8211; or worse, a raw JPEG file &#8211; was too much hard work, so I went looking for a Lightbox plugin for WordPress.</p>
<p>Enter <a href="http://www.23systems.net/wordpress-plugins/lightbox-plus-for-wordpress/">Lightbox Plus ColorBox</a>. Install, check the &#8220;Use for WordPress Galleries&#8221; option, enable Fancypants styling, done!</p>
<p>Well, almost. It turns out ColorBox doesn&#8217;t play nice with captions as rendered by WordPress. I needed to insert this above the <code>wp_footer()</code> call in the theme:</p>
<pre>&lt;script type="text/javascript"&gt;
jQuery(document).ready(function($){
    $(".gallery img").each(function(){
        var alt = $(this).attr("alt");
        $(this).parent().attr("title",function(i,val){
            return val == alt ? "" : alt;
        });
    });
});
&lt;/script&gt;
</pre>
<p>It replaces image titles with their respective captions, unless the caption and title are the same, which would suggest no caption has been specified.</p>
<p>You&#8217;re welcome.</p>
<p>The post <a rel="nofollow" href="https://tech.lkrms.org/wordpress-lightbox-plus-colorbox-native-galleries-and-captions/">WordPress, Lightbox Plus ColorBox, native galleries and captions</a> appeared first on <a rel="nofollow" href="https://tech.lkrms.org">luke arms</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://tech.lkrms.org/wordpress-lightbox-plus-colorbox-native-galleries-and-captions/feed/</wfw:commentRss>
			<slash:comments>5</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">385</post-id>	</item>
	</channel>
</rss>
