<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>THE MOLITOR FORUMS &#187; Topic: FAQ - Make Custom Links Open in New Window</title>
		<link>http://www.themolitor.com/forums/topic/make-custom-links-open-in-new-window</link>
		<description>THE MOLITOR FORUMS &#187; Topic: FAQ - Make Custom Links Open in New Window</description>
		<language>en-US</language>
		<pubDate>Tue, 28 Apr 2026 05:10:02 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.themolitor.com/forums/search.php</link>
		</textInput>
		<atom:link href="http://www.themolitor.com/forums/rss/topic/make-custom-links-open-in-new-window" rel="self" type="application/rss+xml" />

		<item>
			<title>absvos on "FAQ - Make Custom Links Open in New Window"</title>
			<link>http://www.themolitor.com/forums/topic/make-custom-links-open-in-new-window#post-12513</link>
			<pubDate>Wed, 11 Jul 2012 19:51:41 +0000</pubDate>
			<dc:creator>absvos</dc:creator>
			<guid isPermaLink="false">12513@http://www.themolitor.com/forums/</guid>
			<description><p>Link is <a href="http://www.setitafua.com.au" rel="nofollow">http://www.setitafua.com.au</a></p>
<p>Thanks
</p></description>
		</item>
		<item>
			<title>ckelley on "FAQ - Make Custom Links Open in New Window"</title>
			<link>http://www.themolitor.com/forums/topic/make-custom-links-open-in-new-window#post-12334</link>
			<pubDate>Mon, 09 Jul 2012 05:56:43 +0000</pubDate>
			<dc:creator>ckelley</dc:creator>
			<guid isPermaLink="false">12334@http://www.themolitor.com/forums/</guid>
			<description><p>@Abvos can you post a link to your site</p>
<p>-Chris K
</p></description>
		</item>
		<item>
			<title>absvos on "FAQ - Make Custom Links Open in New Window"</title>
			<link>http://www.themolitor.com/forums/topic/make-custom-links-open-in-new-window#post-12324</link>
			<pubDate>Mon, 09 Jul 2012 00:06:28 +0000</pubDate>
			<dc:creator>absvos</dc:creator>
			<guid isPermaLink="false">12324@http://www.themolitor.com/forums/</guid>
			<description><p>Hey Chris</p>
<p>I have entered the code as suggested in an earlier post! but I still cannot work out how to make the sponsors images link to each sponsors page and open up in a new window??? Any help would be greatly appreciated!!!</p>
<p>Keep up the great work!</p>
<p>ABSVOS
</p></description>
		</item>
		<item>
			<title>absvos on "FAQ - Make Custom Links Open in New Window"</title>
			<link>http://www.themolitor.com/forums/topic/make-custom-links-open-in-new-window#post-12273</link>
			<pubDate>Fri, 06 Jul 2012 19:48:54 +0000</pubDate>
			<dc:creator>absvos</dc:creator>
			<guid isPermaLink="false">12273@http://www.themolitor.com/forums/</guid>
			<description><p>I have replaced code as suggested and entered the link in the post area to point to a new webpage but still opens in own site.</p>
<p>Do I need other script in custom link area so that when I click on the sponsors image it opens their page up outside of my site???</p>
<p>Help please?
</p></description>
		</item>
		<item>
			<title>Atticus2 on "FAQ - Make Custom Links Open in New Window"</title>
			<link>http://www.themolitor.com/forums/topic/make-custom-links-open-in-new-window#post-10347</link>
			<pubDate>Thu, 24 May 2012 09:43:15 +0000</pubDate>
			<dc:creator>Atticus2</dc:creator>
			<guid isPermaLink="false">10347@http://www.themolitor.com/forums/</guid>
			<description><p>Individual controls for this would be nice...
</p></description>
		</item>
		<item>
			<title>georgiafamilycouncil on "FAQ - Make Custom Links Open in New Window"</title>
			<link>http://www.themolitor.com/forums/topic/make-custom-links-open-in-new-window#post-5513</link>
			<pubDate>Thu, 05 Jan 2012 12:13:44 +0000</pubDate>
			<dc:creator>georgiafamilycouncil</dc:creator>
			<guid isPermaLink="false">5513@http://www.themolitor.com/forums/</guid>
			<description><p>By the way, I had a unique situation where one or two of the sponsors I had listed didn't have websites. But since I didn't want a "#" link opening up in a new page I added an extra if statement so the entire added code looks like this:</p>
<pre>
<code>
<pre><code>&#60;?php if ($data[ &#039;custom_link&#039; ]) { ?&#62;
&#60;?php if ($data[ &#039;custom_link&#039; ] === &#34;#&#34; ) { ?&#62;
&#60;a onclick=&#34;return false&#34; href=&#34;&#60;?php echo $data[ &#039;custom_link&#039; ];?&#62;&#34;&#62;
&#60;?php } else { ?&#62;
&#60;a target=&#34;_blank&#34; href=&#34;&#60;?php echo $data[ &#039;custom_link&#039; ];?&#62;&#34;&#62;
&#60;?php } ?&#62;
&#60;?php } else { ?&#62;
&#60;a href=&#34;&#60;?php the_permalink();?&#62;&#34;&#62;
&#60;?php } ?&#62;</code></pre>
<p></code><br />
</pre>
<p>Now, whenever I don't have a web address for a sponsor I just put a "#" in the custom link area and it won't open up a new window.
</p></description>
		</item>
		<item>
			<title>THE MOLITOR on "FAQ - Make Custom Links Open in New Window"</title>
			<link>http://www.themolitor.com/forums/topic/make-custom-links-open-in-new-window#post-4827</link>
			<pubDate>Fri, 25 Nov 2011 13:45:48 +0000</pubDate>
			<dc:creator>THE MOLITOR</dc:creator>
			<guid isPermaLink="false">4827@http://www.themolitor.com/forums/</guid>
			<description><p>Please review #1 and #2 of each option above. Those are files inside the theme folder.
</p></description>
		</item>
		<item>
			<title>aficionadotr on "FAQ - Make Custom Links Open in New Window"</title>
			<link>http://www.themolitor.com/forums/topic/make-custom-links-open-in-new-window#post-4824</link>
			<pubDate>Fri, 25 Nov 2011 06:43:53 +0000</pubDate>
			<dc:creator>aficionadotr</dc:creator>
			<guid isPermaLink="false">4824@http://www.themolitor.com/forums/</guid>
			<description><p>Hello guys,<br />
I am new to this... Where do I paste above lines?</p>
<p>Thx
</p></description>
		</item>
		<item>
			<title>davemreed on "FAQ - Make Custom Links Open in New Window"</title>
			<link>http://www.themolitor.com/forums/topic/make-custom-links-open-in-new-window#post-3063</link>
			<pubDate>Wed, 22 Jun 2011 15:18:22 +0000</pubDate>
			<dc:creator>davemreed</dc:creator>
			<guid isPermaLink="false">3063@http://www.themolitor.com/forums/</guid>
			<description><p>I suppose controlling this individually would be best. That way, if the custom link pointed to something on the site, it would open in the same window and if it pointed off site, that would open in a new window.
</p></description>
		</item>
		<item>
			<title>THE MOLITOR on "FAQ - Make Custom Links Open in New Window"</title>
			<link>http://www.themolitor.com/forums/topic/make-custom-links-open-in-new-window#post-3025</link>
			<pubDate>Sun, 19 Jun 2011 11:34:52 +0000</pubDate>
			<dc:creator>THE MOLITOR</dc:creator>
			<guid isPermaLink="false">3025@http://www.themolitor.com/forums/</guid>
			<description><p>Would you want to control this individually for each post, or would a site-wide option be better? In other words, on the theme settings page, check a box and ALL the custom links will open in a new window.
</p></description>
		</item>
		<item>
			<title>davemreed on "FAQ - Make Custom Links Open in New Window"</title>
			<link>http://www.themolitor.com/forums/topic/make-custom-links-open-in-new-window#post-2997</link>
			<pubDate>Wed, 15 Jun 2011 16:16:12 +0000</pubDate>
			<dc:creator>davemreed</dc:creator>
			<guid isPermaLink="false">2997@http://www.themolitor.com/forums/</guid>
			<description><p>Would it be possible to add a checkbox to the custom link tab to enable the "_blank" html?
</p></description>
		</item>
		<item>
			<title>THE MOLITOR on "FAQ - Make Custom Links Open in New Window"</title>
			<link>http://www.themolitor.com/forums/topic/make-custom-links-open-in-new-window#post-2919</link>
			<pubDate>Mon, 30 May 2011 10:06:20 +0000</pubDate>
			<dc:creator>THE MOLITOR</dc:creator>
			<guid isPermaLink="false">2919@http://www.themolitor.com/forums/</guid>
			<description><ul>
<li><strong>For main slider custom links:</strong></li>
<ol>
<li>Open "slider.php"</li>
<li>Locate the following on line 22:<br />
<code>&#60;a href=&#34;&#60;?php  if ($data[ &#039;custom_link&#039; ]) { echo $data[ &#039;custom_link&#039; ];} else { the_permalink(); } ?&#62;&#34;&#62;</code>
</li>
<li>Replace it with the following:<br />
<pre><code>&#60;?php if ($data[ &#039;custom_link&#039; ]) { ?&#62;
&#60;a target=&#34;_blank&#34; href=&#34;&#60;?php echo $data[ &#039;custom_link&#039; ];?&#62;&#34;&#62;
&#60;?php } else { ?&#62;
&#60;a href=&#34;&#60;?php the_permalink();?&#62;&#34;&#62;
&#60;?php } ?&#62;</code></pre>
</li>
</ol>
<li><strong>For sponsors custom links:</strong></li>
<ol>
<li>Open "footer.php"</li>
<li>Locate the following on line 24:<br />
<code>&#60;a href=&#34;&#60;?php  if ($data[ &#039;custom_link&#039; ]) { echo $data[ &#039;custom_link&#039; ];} else { the_permalink(); } ?&#62;&#34;&#62;</code>
</li>
<li>Replace it with the following:<br />
<pre><code>&#60;?php if ($data[ &#039;custom_link&#039; ]) { ?&#62;
&#60;a target=&#34;_blank&#34; href=&#34;&#60;?php echo $data[ &#039;custom_link&#039; ];?&#62;&#34;&#62;
&#60;?php } else { ?&#62;
&#60;a href=&#34;&#60;?php the_permalink();?&#62;&#34;&#62;
&#60;?php } ?&#62;</code></pre>
</li>
</ol>
</ul></description>
		</item>

	</channel>
</rss>
