<?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"

			>

	<channel>

		<title>text link to open image in lightbox &#8211; Themeco Community</title>
		<atom:link href="https://theme.co/archive/forums/topic/text-link-to-open-image-in-lightbox/feed/" rel="self" type="application/rss+xml" />
		<link>https://theme.co/archive/forums/topic/text-link-to-open-image-in-lightbox/feed/</link>
		<description></description>
		<lastBuildDate>Sat, 18 Oct 2025 07:25:57 +0000</lastBuildDate>
		<generator>https://bbpress.org/?v=2.6.14</generator>
		<language>en-US</language>

		
														
					
				<item>
					<guid>https://theme.co/archive/forums/topic/text-link-to-open-image-in-lightbox/#post-273798</guid>
					<title><![CDATA[text link to open image in lightbox]]></title>
					<link>https://theme.co/archive/forums/topic/text-link-to-open-image-in-lightbox/#post-273798</link>
					<pubDate>Thu, 14 May 2015 19:37:49 +0000</pubDate>
					<dc:creator>macmike78</dc:creator>

					<description>
						<![CDATA[
						<p>I&#8217;m trying to get this to open the following image in a lightbox but am not having much luck. Hope you can help&#8230;</p>
<p><code>&lt;p&gt;Level: &lt;?php the_field(&#039;level&#039;); ?&gt; &lt;a href=&quot;http://mywebsite/wp-content/uploads/2015/05/&lt;?php the_field(&#039;location&#039;); ?&gt;.jpg&quot;&gt;&lt;?php the_field(&#039;location&#039;); ?&gt;&lt;/a&gt;&lt;/p&gt;</code></p>
<p>How can I get this image to open in your lightbox from within the template files?</p>
<p>Thanks in advance!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/text-link-to-open-image-in-lightbox/#post-273931</guid>
					<title><![CDATA[Reply To: text link to open image in lightbox]]></title>
					<link>https://theme.co/archive/forums/topic/text-link-to-open-image-in-lightbox/#post-273931</link>
					<pubDate>Thu, 14 May 2015 22:25:11 +0000</pubDate>
					<dc:creator>Prasant Rai</dc:creator>

					<description>
						<![CDATA[
						<p>Hello There,</p>
<p>Thanks for writing in! There is a great lightbox shortcode walkthrough available – <a href="http://theme.co/x/member/kb/shortcode-walkthrough-lightbox/" rel="nofollow">http://theme.co/x/member/kb/shortcode-walkthrough-lightbox/</a></p>
<p>I would recommend watching this and coming back if you have additional questions.</p>
<p>Hope that helps.</p>
<p>Thanks.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/text-link-to-open-image-in-lightbox/#post-388187</guid>
					<title><![CDATA[Reply To: text link to open image in lightbox]]></title>
					<link>https://theme.co/archive/forums/topic/text-link-to-open-image-in-lightbox/#post-388187</link>
					<pubDate>Mon, 14 Sep 2015 13:55:58 +0000</pubDate>
					<dc:creator>bak</dc:creator>

					<description>
						<![CDATA[
						<p>Hi, i read through a few threads and you normally refer to the shortcode walkthrough mentioned above. but i do not understand much more after reading it. would you mind telling me what to do to have a text link that opens up a lightbox to an image which I can upload like I usually do with images?</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/text-link-to-open-image-in-lightbox/#post-388230</guid>
					<title><![CDATA[Reply To: text link to open image in lightbox]]></title>
					<link>https://theme.co/archive/forums/topic/text-link-to-open-image-in-lightbox/#post-388230</link>
					<pubDate>Mon, 14 Sep 2015 14:34:36 +0000</pubDate>
					<dc:creator>Zeshan</dc:creator>

					<description>
						<![CDATA[
						<p>You need to add a class to your link tag and then use it as a selector to your <a href="http://theme.co/x/demo/integrity/1/shortcodes/responsive-lightbox/" rel="nofollow">[lightbox]</a> shortcode. So your final code would be:</p>
<pre><code>&lt;p&gt;Level: &lt;?php the_field(&#039;level&#039;); ?&gt; &lt;a class=&quot;open-in-lightbox&quot; href=&quot;http://mywebsite/wp-content/uploads/2015/05/&lt;?php the_field(&#039;location&#039;); ?&gt;.jpg&quot;&gt;&lt;?php the_field(&#039;location&#039;); ?&gt;&lt;/a&gt;&lt;/p&gt;
</code></pre>
<p>Then the shortcode you need to add after this would be:</p>
<pre><code>[lightbox selector=&quot;.open-in-lightbox&quot;]
</code></pre>
<p>If you are making a template change, you can wrap the shortcode in WordPress <strong><code>do_shortcode()</code></strong> function.</p>
<p>Thanks!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/text-link-to-open-image-in-lightbox/#post-388288</guid>
					<title><![CDATA[Reply To: text link to open image in lightbox]]></title>
					<link>https://theme.co/archive/forums/topic/text-link-to-open-image-in-lightbox/#post-388288</link>
					<pubDate>Mon, 14 Sep 2015 15:21:01 +0000</pubDate>
					<dc:creator>bak</dc:creator>

					<description>
						<![CDATA[
						<p>thanks for your reply but I don&#8217;t see a class field when the link box opens</p>
<p><a href="http://prntscr.com/8g92gc" rel="nofollow">http://prntscr.com/8g92gc</a></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/text-link-to-open-image-in-lightbox/#post-388436</guid>
					<title><![CDATA[Reply To: text link to open image in lightbox]]></title>
					<link>https://theme.co/archive/forums/topic/text-link-to-open-image-in-lightbox/#post-388436</link>
					<pubDate>Mon, 14 Sep 2015 17:39:34 +0000</pubDate>
					<dc:creator>Jade</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there,</p>
<p>You can do it by selecting <strong>Text </strong>view and adding in the class name just like here: <a href="http://prntscr.com/8gatri" rel="nofollow">http://prntscr.com/8gatri</a></p>
<p>Hope this helps.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/text-link-to-open-image-in-lightbox/#post-388622</guid>
					<title><![CDATA[Reply To: text link to open image in lightbox]]></title>
					<link>https://theme.co/archive/forums/topic/text-link-to-open-image-in-lightbox/#post-388622</link>
					<pubDate>Mon, 14 Sep 2015 20:59:46 +0000</pubDate>
					<dc:creator>bak</dc:creator>

					<description>
						<![CDATA[
						This reply has been marked as private.						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/text-link-to-open-image-in-lightbox/#post-388879</guid>
					<title><![CDATA[Reply To: text link to open image in lightbox]]></title>
					<link>https://theme.co/archive/forums/topic/text-link-to-open-image-in-lightbox/#post-388879</link>
					<pubDate>Tue, 15 Sep 2015 04:58:06 +0000</pubDate>
					<dc:creator>Friech</dc:creator>

					<description>
						<![CDATA[
						<p>Hi There,</p>
<p>Sorry, we&#8217;re a bit confuse too, may I know what element is this? <a href="http://prntscr.com/8g92gc" rel="nofollow">http://prntscr.com/8g92gc</a><br />
If you hardcode the anchor tag that should look like this</p>
<p><code>&lt;p&gt;Level: &lt;?php the_field(&#039;level&#039;); ?&gt; &lt;a class=&quot;lbx&quot; href=&quot;http://mywebsite/wp-content/uploads/2015/05/&lt;?php the_field(&#039;location&#039;); ?&gt;.jpg&quot;&gt;&lt;?php the_field(&#039;location&#039;); ?&gt;&lt;/a&gt;&lt;/p&gt;</code></p>
<p>If you notice the <code>class=&quot;lbx&quot;</code> added to the anchor, that should be the selector you set on the lightbox shortcode.</p>
<p><code>[lightbox selector=&quot;.lbx&quot;]</code></p>
<p>Thanks!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/text-link-to-open-image-in-lightbox/#post-389220</guid>
					<title><![CDATA[Reply To: text link to open image in lightbox]]></title>
					<link>https://theme.co/archive/forums/topic/text-link-to-open-image-in-lightbox/#post-389220</link>
					<pubDate>Tue, 15 Sep 2015 12:11:30 +0000</pubDate>
					<dc:creator>bak</dc:creator>

					<description>
						<![CDATA[
						This reply has been marked as private.						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/text-link-to-open-image-in-lightbox/#post-389269</guid>
					<title><![CDATA[Reply To: text link to open image in lightbox]]></title>
					<link>https://theme.co/archive/forums/topic/text-link-to-open-image-in-lightbox/#post-389269</link>
					<pubDate>Tue, 15 Sep 2015 13:03:50 +0000</pubDate>
					<dc:creator>Paul R</dc:creator>

					<description>
						<![CDATA[
						<p>Hi Bak,</p>
<p>You can add all code in a text element.</p>
<pre><code>
&lt;a class=&quot;open-in-lightbox&quot; href=&quot;http://194.126.200.62/~bakronat/wp-content/uploads/2015/08/TSP-Pro-Logger.jpg&quot;&gt;Your text here&lt;/a&gt;
[lightbox selector=&quot;.open-in-lightbox&quot;]
</code></pre>
<p>Please see screenshot</p>
<p><a href="http://screencast.com/t/nsIc5riZvP" rel="nofollow">http://screencast.com/t/nsIc5riZvP</a></p>
<p>Change <a href="http://194.126.200.62/~bakronat/wp-content/uploads/2015/08/TSP-Pro-Logger.jpg" rel="nofollow">http://194.126.200.62/~bakronat/wp-content/uploads/2015/08/TSP-Pro-Logger.jpg</a> with the url of your image<br />
and change <strong>Your text here</strong> with the word/text that you want</p>
<p>Hope that helps</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

