<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Question2Answer Q&amp;A - Recent questions tagged headline</title>
<link>https://www.question2answer.org/qa/tag/headline</link>
<description>Powered by Question2Answer</description>
<item>
<title>How to remove the border in CKEditor when click on image, iframe or headline</title>
<link>https://www.question2answer.org/qa/51430/how-remove-border-ckeditor-when-click-image-iframe-headline</link>
<description>

&lt;p&gt;I have a funny trouble with CKEditor, it's described as below:&lt;/p&gt;

&lt;p&gt;In CKEditor, I create a headline, an iframe or insert an image. It creates a &quot;BORDER&quot; around the content of the headline, iframe or image.&lt;/p&gt;

&lt;p&gt;&lt;img style=&quot;height:223px; width:600px&quot; alt=&quot;&quot; src=&quot;http://www.question2answer.org/qa/?qa=blob&amp;amp;qa_blobid=16400765386671548671&quot;&gt;&lt;/p&gt;

&lt;p&gt;I want to remove or hidden this BORDER when user clicks on image, iframe, headline..., etc.&lt;/p&gt;

&lt;p&gt;Please help me.&lt;/p&gt;

&lt;p&gt;Thanks in advance, Vu!&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/51430/how-remove-border-ckeditor-when-click-image-iframe-headline</guid>
<pubDate>Tue, 19 Apr 2016 11:00:28 +0000</pubDate>
</item>
<item>
<title>Tip: How to give h1 and question-body another background. How to wrap them in q2a.</title>
<link>https://www.question2answer.org/qa/38603/tip-how-give-and-question-body-another-background-wrap-them</link>
<description>

&lt;p&gt;
	This is what I wanted to achieve, wrapping headline and question body into a gray DIV:&lt;/p&gt;


&lt;p&gt;
	&lt;img alt=&quot;&quot; src=&quot;http://www.question2answer.org/qa/?qa=blob&amp;amp;qa_blobid=15213686675914434413&quot;&gt;&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	But it was not as easy as I thought. Problem is that there is one function called in the theme base with: &lt;strong&gt;$this-&amp;gt;main_parts($content);&lt;/strong&gt; that outputs question, all answers and comments.&lt;/p&gt;


&lt;p&gt;
	In other words, you can only wrap all but not parts of it together (especially &lt;strong&gt;not h1 &lt;/strong&gt;and &lt;strong&gt;q-view&lt;/strong&gt;). Have a look yourself in file: qa-theme-base.php&lt;/p&gt;


&lt;p&gt;
	&lt;strong&gt;Solution: &lt;/strong&gt;&lt;/p&gt;


&lt;p&gt;
	In function main() add the wrapping DIV before $this-&amp;gt;page_title_error():&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // added to give h1 and q-body a gray background
&lt;br&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if($this-&amp;gt;template == 'question') {
&lt;br&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $this-&amp;gt;output('&amp;lt;div class=&quot;qa-q-body&quot; style=&quot;background:#F5F5F5;padding:20px;&quot;&amp;gt;');&lt;/span&gt;
&lt;br&gt;
	&lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;
&lt;br&gt;
	
&lt;br&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $this-&amp;gt;page_title_error();
&lt;br&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // ....&lt;/p&gt;


&lt;p&gt;
	Then you need to close the wrapping DIV in function main_parts($content) like that:&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function main_parts($content)
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;{
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;foreach ($content as $key =&amp;gt; $part) {
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$this-&amp;gt;set_context('part', $key);
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$this-&amp;gt;main_part($key, $part);
&lt;br&gt;
	&lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;// added to end gray bg
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;if($key=='q_view') {
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$this-&amp;gt;output('&amp;lt;/div&amp;gt;'); // end class=&quot;qa-q-body&quot;
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/span&gt;
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;
	
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$this-&amp;gt;clear_context('part');
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;
	
&lt;br&gt;
	
&lt;br&gt;
	Hope this helps.
&lt;br&gt;
	Kai
&lt;br&gt;
	
&lt;br&gt;
	&amp;nbsp;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/38603/tip-how-give-and-question-body-another-background-wrap-them</guid>
<pubDate>Mon, 22 Sep 2014 05:58:29 +0000</pubDate>
</item>
<item>
<title>Create a new field? &quot;Headline&quot;</title>
<link>https://www.question2answer.org/qa/14577/create-a-new-field-headline</link>
<description>

&lt;p&gt;
	Hello Everyone,&lt;/p&gt;


&lt;p&gt;
	&lt;span id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;span class=&quot;hps&quot;&gt;How do I add&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;a new field to&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;the specified&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;region&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;in the picture&lt;/span&gt;&lt;span&gt;?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	&lt;a rel=&quot;nofollow&quot; href=&quot;http://www.siemensnx.com&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://www.question2answer.org/qa/?qa=blob&amp;amp;qa_blobid=9463289324553630665&quot; style=&quot;width: 898px; height: 712px;&quot;&gt;&lt;/a&gt;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/14577/create-a-new-field-headline</guid>
<pubDate>Sat, 28 Apr 2012 03:25:01 +0000</pubDate>
</item>
</channel>
</rss>