<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Question2Answer Q&amp;A - Recent questions tagged qa-theme</title>
<link>https://www.question2answer.org/qa/tag/qa-theme</link>
<description>Powered by Question2Answer</description>
<item>
<title>Best practice to define custom theme options?</title>
<link>https://www.question2answer.org/qa/62274/best-practice-to-define-custom-theme-options</link>
<description>

&lt;p&gt;I am running a brother site of my main site. To reduce administration I am using for both the same plugins and themes.&lt;/p&gt;

&lt;p&gt;For the theme options, I needed different colors (was able to do specific options by SCSS includes) and logos. Easy.&lt;/p&gt;

&lt;p&gt;But when it comes to the &lt;strong&gt;qa-theme.php&lt;/strong&gt; I am a bit stuck.&lt;/p&gt;

&lt;p&gt;It seems that I cannot &lt;strong&gt;include('custom-file.php');&lt;/strong&gt; in the&amp;nbsp;&lt;strong&gt;class qa_html_theme extends qa_html_theme_base&amp;nbsp;{...}&amp;nbsp;&lt;/strong&gt;to access those variables (options) globally.&lt;/p&gt;

&lt;p&gt;It seems that I can do so only in the functions(), which requires several includes of several files.&lt;/p&gt;

&lt;p&gt;Is there any other option?&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;PS: Unfortunately, there is no way to define &quot;custom fields&quot; for the theme. And I do not want to create a separate plugin for each theme. It just doesnt feel right.&lt;/p&gt;</description>
<category>Themes</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/62274/best-practice-to-define-custom-theme-options</guid>
<pubDate>Wed, 07 Feb 2018 03:40:52 +0000</pubDate>
</item>
<item>
<title>Help for counting favorite questions per user.</title>
<link>https://www.question2answer.org/qa/51992/help-for-counting-favorite-questions-per-user</link>
<description>I am trying the last 4 hours !!!! to display the number of favorite questions of each user in my advanced theme. i am using the code below:&lt;br /&gt;
&lt;br /&gt;
$userfaved = qa_db_select_with_pending(qa_db_user_points_selectspec($handle));&lt;br /&gt;
&lt;br /&gt;
$this-&amp;gt;output(''.$userfaved['favorites'].' '.qa_lang_html('main/my_favorites').'');&lt;br /&gt;
&lt;br /&gt;
but it doesnt work as it returns Undefined &amp;quot;favorites&amp;quot;... What i am doing wrong here ???? I am using similar code to get the number of questions a user asked and it works pretty fine !</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/51992/help-for-counting-favorite-questions-per-user</guid>
<pubDate>Fri, 03 Jun 2016 16:05:10 +0000</pubDate>
</item>
<item>
<title>if is home function for qa-theme.php q2a</title>
<link>https://www.question2answer.org/qa/45385/if-is-home-function-for-qa-theme-php-q2a</link>
<description>

&lt;p&gt;i want a fuction like :&lt;/p&gt;

&lt;p&gt;&lt;span style=&quot;color:#000000&quot;&gt;&lt;span style=&quot;color:#0000BB&quot;&gt;&amp;lt;?php&lt;/span&gt;
&lt;br&gt;&lt;span style=&quot;color:#007700&quot;&gt;if&amp;nbsp;(&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color:#0000BB&quot;&gt;is_home&lt;/span&gt;&lt;span style=&quot;color:#007700&quot;&gt;()&amp;nbsp;)&amp;nbsp;{
&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color:#FF8000&quot;&gt;//&amp;nbsp;This&amp;nbsp;is&amp;nbsp;the&amp;nbsp;blog&amp;nbsp;posts&amp;nbsp;index
&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color:#0000BB&quot;&gt;get_sidebar&lt;/span&gt;&lt;span style=&quot;color:#007700&quot;&gt;(&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color:#DD0000&quot;&gt;'blog'&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color:#007700&quot;&gt;);
&lt;br&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style=&quot;color:#000000&quot;&gt;&lt;span style=&quot;color:#007700&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style=&quot;color:#000000&quot;&gt;&lt;span style=&quot;color:#007700&quot;&gt;for q2a (qa-theme.php) to use in out puts &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style=&quot;color:#000000&quot;&gt;&lt;span style=&quot;color:#007700&quot;&gt;tnx&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/45385/if-is-home-function-for-qa-theme-php-q2a</guid>
<pubDate>Mon, 18 May 2015 11:13:11 +0000</pubDate>
</item>
<item>
<title>Technologx Q2A Theme</title>
<link>https://www.question2answer.org/qa/43422/technologx-q2a-theme</link>
<description>

&lt;p&gt;Technologx is a nice clean looking theme for your Q2A site. I really don't have to much to say about it sorry guys.&lt;/p&gt;

&lt;p&gt;.&lt;img alt=&quot;&quot; src=&quot;http://q2athemestore.tk/image/cache/catalog/Screen%20Shot%202015-01-29%20at%207.58.07%20PM-500x500.png&quot; style=&quot;height:500px; width:500px&quot;&gt;&lt;/p&gt;

&lt;p&gt;Download URL: &lt;a href=&quot;http://q2athemestore.tk/index.php?route=product/product&amp;amp;path=59&amp;amp;product_id=50&quot; rel=&quot;nofollow&quot;&gt;http://q2athemestore.tk/index.php?route=product/product&amp;amp;path=59&amp;amp;product_id=50&lt;/a&gt;&lt;/p&gt;</description>
<category>Themes</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/43422/technologx-q2a-theme</guid>
<pubDate>Fri, 30 Jan 2015 20:09:08 +0000</pubDate>
</item>
<item>
<title>Q2A functions for qa-theme.php</title>
<link>https://www.question2answer.org/qa/42597/q2a-functions-for-qa-theme-php</link>
<description>hi&lt;br /&gt;
&lt;br /&gt;
i want to find some function to replace from core in qa-theme.php&lt;br /&gt;
&lt;br /&gt;
like :&lt;br /&gt;
&lt;br /&gt;
function attribution()&lt;br /&gt;
&lt;br /&gt;
for footer copyright&lt;br /&gt;
&lt;br /&gt;
is there any source of this q2a functions ?&lt;br /&gt;
&lt;br /&gt;
like login and register link ?</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/42597/q2a-functions-for-qa-theme-php</guid>
<pubDate>Wed, 31 Dec 2014 04:44:09 +0000</pubDate>
</item>
<item>
<title>Edit status in qa-theme.php</title>
<link>https://www.question2answer.org/qa/16042/edit-status-in-qa-theme-php</link>
<description>How can I determine whether user is in edit mode in theme PHP file? Not much luck with an answer found in this forum as I guess it relates to older version</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/16042/edit-status-in-qa-theme-php</guid>
<pubDate>Wed, 20 Jun 2012 03:08:45 +0000</pubDate>
</item>
<item>
<title>@DisgruntledGoat: I just want to ask one question...</title>
<link>https://www.question2answer.org/qa/13571/%40disgruntledgoat-i-just-want-to-ask-one-question</link>
<description>

&lt;p&gt;
	How can you do this in your website:&amp;nbsp;&lt;a rel=&quot;nofollow&quot; href=&quot;http://pokemondb.net/pokebase&quot;&gt;http://pokemondb.net/pokebase&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;
	&lt;img alt=&quot;&quot; src=&quot;http://www.question2answer.org/qa/?qa=blob&amp;amp;qa_blobid=15988406754033821888&quot; style=&quot;border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; width: 147px; height: 169px;&quot;&gt;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/13571/%40disgruntledgoat-i-just-want-to-ask-one-question</guid>
<pubDate>Thu, 15 Mar 2012 21:44:59 +0000</pubDate>
</item>
</channel>
</rss>