<?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>&gt; conversion from visual editor to text &#8211; Themeco Community</title>
		<atom:link href="https://theme.co/archive/forums/topic/conversion-from-visual-editor-to-text/feed/" rel="self" type="application/rss+xml" />
		<link>https://theme.co/archive/forums/topic/conversion-from-visual-editor-to-text/feed/</link>
		<description></description>
		<lastBuildDate>Thu, 25 Dec 2025 17:23:42 +0000</lastBuildDate>
		<generator>https://bbpress.org/?v=2.6.14</generator>
		<language>en-US</language>

		
														
					
				<item>
					<guid>https://theme.co/archive/forums/topic/conversion-from-visual-editor-to-text/#post-86106</guid>
					<title><![CDATA[&gt; conversion from visual editor to text]]></title>
					<link>https://theme.co/archive/forums/topic/conversion-from-visual-editor-to-text/#post-86106</link>
					<pubDate>Sat, 16 Aug 2014 20:09:11 +0000</pubDate>
					<dc:creator>Amaravati</dc:creator>

					<description>
						<![CDATA[
						<p>Hello Theme X people,</p>
<p>I got an odd thing, not sure where the issue is. I am trying to get gallery + lightbox work.</p>
<p>The code I use is for instance:</p>
<pre><code>[gallery link=&quot;file&quot; ids=&quot;94,70,96,69,100&quot;]
[lightbox selector=&quot;.gallery-icon &gt; a&quot;]</code></pre>
<p>This works fine if I use the following:</p>
<p>1) add new post/page<br />
2) use classic mode visual editor<br />
3) copy and paste the above code (or follow<a href="http://theme.co/x/member/kb/shortcode-walkthrough-lightbox/" rel="nofollow"> your instruction</a> adding gallery)</p>
<p>BUT.. if I do the following</p>
<p>1) add new post/page<br />
2) use back end mode visual editor<br />
3) add element: text<br />
4) copy and paste the following code (or follow<a href="http://theme.co/x/member/kb/shortcode-walkthrough-lightbox/" rel="nofollow"> your instruction</a> adding gallery) both in <strong>visual and text</strong> mode.</p>
<p>Then NO lightbox, it just opens the picture.</p>
<p>Live testing at <a href="http://amaravati.org.gridhosted.co.uk/photo/" rel="nofollow">http://amaravati.org.gridhosted.co.uk/photo/</a></p>
<p>Is this a limitation in using Visual editor with lightbox+gallery? Because not using visual editor it works. (I have all my pages done using visual editor, would be great to add some pictures with lightbox)</p>
<p>Please help,</p>
<p>Thank you</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/conversion-from-visual-editor-to-text/#post-86149</guid>
					<title><![CDATA[Reply To: &gt; conversion from visual editor to text]]></title>
					<link>https://theme.co/archive/forums/topic/conversion-from-visual-editor-to-text/#post-86149</link>
					<pubDate>Sun, 17 Aug 2014 00:35:10 +0000</pubDate>
					<dc:creator>Christian</dc:creator>

					<description>
						<![CDATA[
						<p>Hey there,</p>
<p>When you use Visual Editor, the lightbox script doesn&#8217;t work because &gt; is converted to &gt; (see <a href="http://prntscr.com/4djmq4" rel="nofollow">http://prntscr.com/4djmq4</a>). What you can do is take out the lightbox shortcode in the Visual Editor and add Lightbox Element separately. Or, you can try adding the code below in your functions.php.</p>
<pre><code>function stop_gt_conversion( $content ) {
    $new_content = &#039;&#039;;
    foreach( preg_split( &#039;/((\r?\n)|(\r\n?))/&#039;, $content ) as $line ) {
        $new_content .= preg_replace( &#039;/^&gt;/&#039;, &#039;&gt;&#039;, $line ) . &#039;\r\n&#039;;
    }
    return $new_content;
}
add_filter( &#039;the_content&#039;, &#039;stop_gt_conversion&#039;, 1 );</code></pre>
<p>This doesn&#8217;t happen on our end. So this might be due to your setup.</p>
<p>Thanks.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/conversion-from-visual-editor-to-text/#post-86396</guid>
					<title><![CDATA[Reply To: &gt; conversion from visual editor to text]]></title>
					<link>https://theme.co/archive/forums/topic/conversion-from-visual-editor-to-text/#post-86396</link>
					<pubDate>Sun, 17 Aug 2014 18:19:20 +0000</pubDate>
					<dc:creator>Amaravati</dc:creator>

					<description>
						<![CDATA[
						<p>Hello,</p>
<p>first of all thanks! I did figured out it is the conversion, but didn&#8217;t know whether it &#8216;should&#8217; be working.</p>
<p>I find a way how it could work using the Visual Editor. It seems that as soon as I put anything with a &gt; in the text or lightbox element, convert this into &gt; (<a href="https://www.google.co.uk/search?q=why+wordpress+is+converting+%3E+into+%26gt%3B&amp;oq=why+wordpress+is+converting+%3E+into+%26gt%3B&amp;aqs=chrome..69i57.3448j0j7&amp;sourceid=chrome&amp;es_sm=119&amp;ie=UTF-8#q=wordpress+visual+editor+converting+%3E+into+%26gt%3B+&amp;safe=active" rel="nofollow">see many issues reported</a>).</p>
<p>Before saving/updating the post/page (using the procedure described above in my first post)<br />
1) click on Classic Mode Visual Editor<br />
2) click on text (not visual mode)<br />
3) manually change <code>&amp; g t ;</code> into &gt;<br />
4) save/update</p>
<p>Now it will hold the &gt; correctly without converting</p>
<p>Optionally:</p>
<p>5) click on backend mode on Visual Editor<br />
6) save/update (now it will somehow not convert the &gt; sign, and saves it correctly)</p>
<p>That keeps the setting in WordPress in &gt;, rather than <code>&amp; g t ;</code>.</p>
<p>* is have written &amp; g t ; &#8211;&gt; this is without spaces in real life, because this forum also converts these into &gt;</p>
<p>Your last line is: </p>
<blockquote><p>This doesn’t happen on our end. So this might be due to your setup.</p></blockquote>
<p>Does this means that visual editor should not be converting the &gt; sign? (so where should I look to check the fault in &#8216;wordpress or database?&#8217;)</p>
<p>Thanks!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/conversion-from-visual-editor-to-text/#post-86468</guid>
					<title><![CDATA[Reply To: &gt; conversion from visual editor to text]]></title>
					<link>https://theme.co/archive/forums/topic/conversion-from-visual-editor-to-text/#post-86468</link>
					<pubDate>Sun, 17 Aug 2014 21:58:30 +0000</pubDate>
					<dc:creator>Rad</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there,</p>
<p>If you will add raw html content with <code>&lt;</code> and <code>&gt;</code> in Visual Mode, then it will be converted to their html entities like <code>&lt;</code> and <code>&gt;</code>. While raw html will be preserved when using Text Mode.</p>
<p>But you&#8217;re adding a shortcode with a string of <code>&gt;</code> and not as html, and shouldn&#8217;t be converted to html. Which we have no issue adding string <code>&gt;</code> on our end.</p>
<p>Any content added within element attribute are considered string, so not sure why would editor convert that. Or could it be your browser? It happens once before while I&#8217;m using chrome.</p>
<p>Thanks!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/conversion-from-visual-editor-to-text/#post-86737</guid>
					<title><![CDATA[Reply To: &gt; conversion from visual editor to text]]></title>
					<link>https://theme.co/archive/forums/topic/conversion-from-visual-editor-to-text/#post-86737</link>
					<pubDate>Mon, 18 Aug 2014 09:17:24 +0000</pubDate>
					<dc:creator>Amaravati</dc:creator>

					<description>
						<![CDATA[
						<p>Hello,</p>
<p>Strange isn&#8217;t it? I tried using Safari, rather than Chrome, the issue still persist. I am surprised you don&#8217;t have this issue when using visual composer and adding this gallery lightbox code. </p>
<p>Whenever saving when the Visual Composer is still enabled on the post/page, it converts this &gt; tag. When I first edit the page in Visual Composer and then disable this afterwards before saving, then it is ok.</p>
<p>It seems to be an issue with Visual editor or WordPress itself (or combination).</p>
<p>I guess one of the way out is to copy and paste the code you provided, I am reluctant to change these stuff in functions.php becuase it might break things or make other things not workable in the future.</p>
<p>I really appreciate your response and help so far.</p>
<p>Thanks!!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/conversion-from-visual-editor-to-text/#post-86764</guid>
					<title><![CDATA[Reply To: &gt; conversion from visual editor to text]]></title>
					<link>https://theme.co/archive/forums/topic/conversion-from-visual-editor-to-text/#post-86764</link>
					<pubDate>Mon, 18 Aug 2014 11:15:44 +0000</pubDate>
					<dc:creator>Mrinal</dc:creator>

					<description>
						<![CDATA[
						<p>Hi There, </p>
<p>Its&#8217; an issue with VC, however you need to follow the second trick you described above. We&#8217;re not the original author of VC plugin. From our side we&#8217;ll inform the issue to them soon. </p>
<p>Thanks for your co-operation, Have a nice day!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/conversion-from-visual-editor-to-text/#post-86990</guid>
					<title><![CDATA[Reply To: &gt; conversion from visual editor to text]]></title>
					<link>https://theme.co/archive/forums/topic/conversion-from-visual-editor-to-text/#post-86990</link>
					<pubDate>Mon, 18 Aug 2014 17:39:07 +0000</pubDate>
					<dc:creator>Amaravati</dc:creator>

					<description>
						<![CDATA[
						<p>Hello X,</p>
<p>thanks for confirming the issue is currently with VC. Thanks as well to inform them.</p>
<p>At least I don&#8217;t have to dive into my wordpress installation!</p>
<p>Thanks for spending time to help me out.</p>
<p>Bye!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/conversion-from-visual-editor-to-text/#post-87016</guid>
					<title><![CDATA[Reply To: &gt; conversion from visual editor to text]]></title>
					<link>https://theme.co/archive/forums/topic/conversion-from-visual-editor-to-text/#post-87016</link>
					<pubDate>Mon, 18 Aug 2014 18:20:23 +0000</pubDate>
					<dc:creator>Cousett</dc:creator>

					<description>
						<![CDATA[
						<p>Glad we were able to help. 🙂 Have a nice day. </p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

