<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									Change Frontend Appearance - How-to and Troubleshooting				            </title>
            <link>https://wpdiscuz.com/community/troubleshooting/change-frontend-appearance/</link>
            <description>wpDiscuz WordPress Comment Plugin Community. Support and Resources.</description>
            <language>en-US</language>
            <lastBuildDate>Wed, 16 Sep 2026 07:16:37 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: Change Frontend Appearance</title>
                        <link>https://wpdiscuz.com/community/troubleshooting/change-frontend-appearance/#post-13331</link>
                        <pubDate>Fri, 11 Feb 2022 17:22:36 +0000</pubDate>
                        <description><![CDATA[I found an error which I can&#039;t correct in my previous Post so here is the correct folder structure within your child theme:


Add the following folder structure to it:


wpdiscuz/├── c...]]></description>
                        <content:encoded><![CDATA[<p>I found an error which I can't correct in my previous Post so here is the correct folder structure within your child theme:</p>
<blockquote data-userid="44902" data-postid="13306" data-mention="nstoeckigt">
<div class="wpforo-post-content">
<p>Add the following folder structure to it:</p>
</div>
<blockquote>
<p>wpdiscuz/<br />├── class.WpdiscuzWalker.php<br />└── layouts/<br />│   ├── 1/<br />│   │      ├── author.html<br />│   │      ├── city.html<br />│   │      ├── header.html<br />│   │      └── style.css  </p>
</blockquote>
</blockquote>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/troubleshooting/">How-to and Troubleshooting</category>                        <dc:creator>nstoeckigt</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/troubleshooting/change-frontend-appearance/#post-13331</guid>
                    </item>
				                    <item>
                        <title>RE: Change Frontend Appearance</title>
                        <link>https://wpdiscuz.com/community/troubleshooting/change-frontend-appearance/#post-13306</link>
                        <pubDate>Thu, 10 Feb 2022 21:15:07 +0000</pubDate>
                        <description><![CDATA[Hi @ll,
finally I will summarize what I have done to archive this. It might inspire in similar situation.
Start by adding your additional Field in your Form

You might want to change the...]]></description>
                        <content:encoded><![CDATA[<p>Hi @ll,</p>
<p>finally I will summarize what I have done to archive this. It might inspire in similar situation.</p>
<p>Start by adding your additional Field in your Form</p>
2280
<p>You might want to change the <em>META-KEY</em> under <strong>Advanced Options</strong> to something more readable to use in your code.</p>
2281
<p>Have a look into the Database in Table `commentmeta` to see the <span style="text-decoration: underline">real</span> <em>META-KEY</em> because it is case-sensitive!</p>
<div class="wpforo-post-content">
<table class="table_results ajax pma_table" data-uniqueid="181955046">
<thead>
<tr>
<th>meta_id</th>
<th>comment_id</th>
<th>meta_key</th>
<th>meta_value</th>
</tr>
</thead>
<tbody>
<tr>
<td class="right data grid_edit click2 not_null     nowrap" data-decimals="0" data-type="int"><span>50</span></td>
<td class="right data grid_edit click2 not_null     nowrap" data-decimals="0" data-type="int"><span>9</span></td>
<td class="data grid_edit click2    text " data-decimals="0" data-type="string" data-originallength="4"><span>city</span></td>
<td class="data grid_edit click2     " data-decimals="0" data-type="blob" data-originallength="6"><span>Dublin</span></td>
</tr>
</tbody>
</table>
<p>In my case, even I wrote the <em>META-KEY</em> in uppercase on the Form Editor, it is saved in lowercase to the database.</p>
<p>Now you can start coding.</p>
<p>Create a <a href="https://developer.wordpress.org/themes/advanced-topics/child-themes/" target="_blank" rel="noopener">Child-Theme</a> to make all your changes update proof!</p>
</div>
<p>Add the following folder structure to it:</p>
<blockquote>
<p>wpdiscuz/<br />├── class.WpdiscuzWalker.php<br />└── layouts<br />├── 1<br />│   ├── author.html<br />│   ├── city.html<br />│   ├── header.html<br />│   └── style.css</p>
</blockquote>
<p>Create the file  city.html  is simple as:</p>
<div class="wpforo-post-meta">
<div class="{CITY_WRAPPER_CLASSES}">
<pre contenteditable="false">&lt;div class="{CITY_WRAPPER_CLASSES}"&gt;
    &lt;span class="pre"&gt;{PRE_CITY}&lt;/span&gt;&amp;nbsp;{CITY}&amp;nbsp;
&lt;/div&gt;</pre>
</div>
</div>
<div> </div>
<div>Create the file  header.html  is simple as (original:  httpdocs/wp-content/plugins/wpdiscuz/themes/default/1/header.html):</div>
<div> </div>
<div>
<pre contenteditable="false">&lt;div class="{HEADER_WRAPPER_CLASSES}"&gt;
    {AUTHOR}
    {CITY}
    {DATE}
    {STATUS}
    {SHARE}
    &lt;div class="wpd-space"&gt;&lt;/div&gt;
    {LINK}
&lt;/div&gt;</pre>
</div>
<div> </div>
<div>I copied the file  httpdocs/wp-content/plugins/wpdiscuz/themes/default/style.css  → httpdocs/wp-content/themes/CHILD-THEME/wpdiscuz/layouts/1/style.css  and added the following lines:</div>
<div>
<pre contenteditable="false">#wpdcom .wpd-comment-header .wpd-comment-city{ }
#wpdcom .wpd-comment-header .wpd-comment-city .pre{font-style: italic;}</pre>
</div>
<div> </div>
<div>I also just copied the  author.html  but didn't modified it.</div>
<div> </div>
<div>The last part isn't that difficult but a little more complex. You have do add the functionallity via  class.WpdiscuzWalker.php  which you just copy from  httpdocs/wp-content/plugins/wpdiscuz/themes/default/class.WpdiscuzWalker.php.</div>
<div> </div>
<div>I added my changes just logically under the author section - here is the diff to the original one:</div>
<div>
<pre contenteditable="false">@@ -93,6 +93,33 @@
             $commentWrapperClass[] = "wpd-reply";
         }
 
+	$showCity = false;
+	$city = isset($commentMetas) ? strval($commentMetas) : "";
+	if ($city) {
+	    $search[] = "{CITY_WRAPPER_CLASSES}";
+	    $search[] = "{PRE_CITY}";
+	    $search[] = "{CITY}";
+	    $replace[] = "wpd-comment-city";
+	    switch( get_locale() ) {
+	      case 'de_DE':
+	          $replace[] = "aus";
+	          break;
+	      case 'fr_FR':
+	      case 'es_ES':
+	          $replace[] = "de";
+	          break;
+	      case 'it_IT':
+	          $replace[] = "da";
+	          break;
+	      case 'pl_PL':
+	          $replace[] = "z";
+	          break;
+	      default:
+	          $replace[] = "from";
+	    }
+	    $replace[] = $city;
+	    $showCity = true;
+	}
+
         $showDate = false;
         if ($this-&gt;options-&gt;thread_layouts) {
 
@@ -429,7 +451,8 @@
             $replace[] = $content . $comment-&gt;comment_content;
             $replace[] = "wpd-comment-left " . esc_attr($commentLeftClass);
             $leftComponent = $showAvatar || $showLabel || $showFollow ? str_replace(, [$showAvatar ? $args : "", ($showLabel ? $args : "") . apply_filters("wpdiscuz_after_label", "", $comment), $showFollow ? $args : ""], $args) : "";
-            $headerComponent = str_replace(, [$args, $showDate ? $args : "", $showStatus ? $args : "", $showShare ? $args : "", $showLink ? $args : ""], $args);
+//            $headerComponent = str_replace(, [$args, $showDate ? $args : "", $showStatus ? $args : "", $showShare ? $args : "", $showLink ? $args : ""], $args);
+            $headerComponent = str_replace(, [$args, $showCity ? $args : "", $showDate ? $args : "", $showStatus ? $args : "", $showShare ? $args : "", $showLink ? $args : ""], $args);
             $footerComponent = $showVote || $showReply || $afterReplyButton || $showTools || $showToggle ? str_replace(, [$showVote ? $args : "", ($showReply ? $args : "") . $afterReplyButton, $showTools ? $args : "", $showToggle ? $args : ""], $args) : "";
             $rightComponent = str_replace(, [$headerComponent, $showReplyTo ? $args : "", $args . $lastEdited, $footerComponent], $args);
             $wrapperComponent = str_replace(, , $args);</pre>
</div>
<div> </div>
<div>The code is just an adoption of similar code blocks like for the author.</div>
<div> </div>
<div>That's it! Have Fun and Good success!</div>
<div> </div>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/troubleshooting/">How-to and Troubleshooting</category>                        <dc:creator>nstoeckigt</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/troubleshooting/change-frontend-appearance/#post-13306</guid>
                    </item>
				                    <item>
                        <title>RE: Change Frontend Appearance</title>
                        <link>https://wpdiscuz.com/community/troubleshooting/change-frontend-appearance/#post-8782</link>
                        <pubDate>Thu, 27 May 2021 23:56:33 +0000</pubDate>
                        <description><![CDATA[@astiI upgraded to the last recent version and pushed back my changes. When my customer checked with the results a few days later we realized that the changes in fact work as intended.
I wi...]]></description>
                        <content:encoded><![CDATA[<p>@asti<br />I upgraded to the last recent version and pushed back my changes. When my customer checked with the results a few days later we realized that the changes in fact work as intended.</p>
<p>I will post a final message recompiling all my changes so others my implement the same or similar solutions.</p>
<p>Thanks for your help! 😍 </p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/troubleshooting/">How-to and Troubleshooting</category>                        <dc:creator>nstoeckigt</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/troubleshooting/change-frontend-appearance/#post-8782</guid>
                    </item>
				                    <item>
                        <title>RE: Change Frontend Appearance</title>
                        <link>https://wpdiscuz.com/community/troubleshooting/change-frontend-appearance/#post-8650</link>
                        <pubDate>Wed, 19 May 2021 09:31:58 +0000</pubDate>
                        <description><![CDATA[@nstoeckigt,
In our case the solution works fine. 
Could you please send the admin login details to infogvectors.com email address? I&#039;ll ask the developers to check the issue.]]></description>
                        <content:encoded><![CDATA[<p>@nstoeckigt,</p>
<p>In our case the solution works fine. </p>
<p>Could you please send the admin login details to infogvectors.com email address? I'll ask the developers to check the issue. </p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/troubleshooting/">How-to and Troubleshooting</category>                        <dc:creator>Asti</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/troubleshooting/change-frontend-appearance/#post-8650</guid>
                    </item>
				                    <item>
                        <title>RE: Change Frontend Appearance</title>
                        <link>https://wpdiscuz.com/community/troubleshooting/change-frontend-appearance/#post-8643</link>
                        <pubDate>Tue, 18 May 2021 16:41:12 +0000</pubDate>
                        <description><![CDATA[Thanks again @asti,
unfortunately this doesn&#039;t work as expected. I changed the META_KEY to &#039;CITY&#039; and also applied it to older entries.

$city = isset($commentMetas) ? $comment...]]></description>
                        <content:encoded><![CDATA[<p>Thanks again @asti,</p>
<p>unfortunately this doesn't work as expected. I changed the META_KEY to 'CITY' and also applied it to older entries.</p>
1563
<pre contenteditable="false">$city = isset($commentMetas) ? $commentMetas : "";</pre>
<p>but it seems the Key is not in the List. I failed to `print_r` or `var_dump` the variable so I can't say for sure.</p>
<p>In the Database in Table `commentmeta` I see entries like</p>
<table class="table_results ajax pma_table" data-uniqueid="181955046">
<thead>
<tr>
<th>meta_id</th>
<th>comment_id</th>
<th>meta_key</th>
<th>meta_value</th>
</tr>
</thead>
<tbody>
<tr>
<td class="right data grid_edit click2 not_null     nowrap" style="text-align: center" data-decimals="0" data-type="int"><span>50</span></td>
<td class="right data grid_edit click2 not_null     nowrap" style="text-align: center" data-decimals="0" data-type="int"><span>9</span></td>
<td class="data grid_edit click2    text " style="text-align: center" data-decimals="0" data-type="string" data-originallength="4"><span>city</span></td>
<td class="data grid_edit click2     " style="text-align: center" data-decimals="0" data-type="blob" data-originallength="6"><span>Dublin</span></td>
</tr>
</tbody>
</table>
<p> It doesn't matter if I write the `meta_key` in upper or lower case.</p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/troubleshooting/">How-to and Troubleshooting</category>                        <dc:creator>nstoeckigt</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/troubleshooting/change-frontend-appearance/#post-8643</guid>
                    </item>
				                    <item>
                        <title>RE: Change Frontend Appearance</title>
                        <link>https://wpdiscuz.com/community/troubleshooting/change-frontend-appearance/#post-8638</link>
                        <pubDate>Tue, 18 May 2021 09:29:24 +0000</pubDate>
                        <description><![CDATA[@nstoeckigt,
The update safe way for this kind of customization is described here:
I may suggest you to get the value of the city field using the $commentMetas variable in the class.Wpdiscu...]]></description>
                        <content:encoded><![CDATA[<p>@nstoeckigt,</p>
<p>The update safe way for this kind of customization is described here: https://wpdiscuz.com/docs/wpdiscuz-7/customization/custom-template-and-style/</p>
<p>I may suggest you to get the value of the city field using the <span style="color: #008000"><em><strong>$commentMetas</strong></em></span> variable in the <span style="color: #800080"><em>class.WpdiscuzWalker.php</em></span> file.</p>
<p>The <em>meta_key</em> you can find by editing the current field, click on the "Advanced Options" button.  </p>
1558
<p>Here is an example: </p>
<pre contenteditable="false">isset($commentMetas) ? $commentMetas : ""</pre>
<p>You'll need to change the red marked part with corresponding meta_key. </p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/troubleshooting/">How-to and Troubleshooting</category>                        <dc:creator>Asti</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/troubleshooting/change-frontend-appearance/#post-8638</guid>
                    </item>
				                    <item>
                        <title>RE: Change Frontend Appearance</title>
                        <link>https://wpdiscuz.com/community/troubleshooting/change-frontend-appearance/#post-8633</link>
                        <pubDate>Tue, 18 May 2021 08:21:54 +0000</pubDate>
                        <description><![CDATA[I managed to insert the desired field into the code:
-            $headerComponent = str_replace(, [$args...]]></description>
                        <content:encoded><![CDATA[<p>I managed to insert the desired field into the code:</p>
<pre contenteditable="false">-            $headerComponent = str_replace(, [$args, $showDate ? $args : "", $showStatus ? $args : "", $showShare ? $args : "", $showLink ? $args : ""], $args);
+            $headerComponent = str_replace(, [$args, $showCity ? $args : "", $showDate ? $args : "", $showStatus ? $args : "", $showShare ? $args : "", $showLink ? $args : ""], $args);
</pre>
<p>the related variable (is) should be evaluated like</p>
<p></p>
<pre contenteditable="false">+
+        $showCity = false;
+        //$city .= apply_filters("wpdiscuz_comment_city", "", $comment, $user, $args);
+        //$city = isset($commentMetas) ? strval($commentMetas);
+        $city .= 'London';
+        if ($city) {
+            $search[] = "{CITY_WRAPPER_CLASSES}";
+            $search[] = "{PRE_CITY}";
+            $search[] = "{CITY}";
+            $replace[] = "wpd-comment-city";
+            $replace[] = "from";  //TODO: language depended 'from'
+            $replace[] = $city;
+            $showCity = true;
+        }
+
</pre>
<p></p>
<p>The city.html is simple as:</p>
<pre contenteditable="false">&lt;div class="{CITY_WRAPPER_CLASSES}"&gt;
&lt;span class="pre"&gt;{PRE_CITY}&lt;/span&gt;&amp;nbsp;{CITY}&amp;nbsp;
&lt;/div&gt;
</pre>
<p>My Problem now is that I did not manage to load the META-VAR {CITY} - which is saved with the comment - from the database. Both variants (see above) won't work.<br />How do I get the value?</p>
<p> </p>
<p>...and how can I make my changes persistent without loosing them on Update/Upgrade of the Plugin? Simply copy the changes to the 'plugins' folder of my Child-Theme?</p>
<p>Thanks for any constructive help!</p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/troubleshooting/">How-to and Troubleshooting</category>                        <dc:creator>nstoeckigt</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/troubleshooting/change-frontend-appearance/#post-8633</guid>
                    </item>
				                    <item>
                        <title>RE: Change Frontend Appearance</title>
                        <link>https://wpdiscuz.com/community/troubleshooting/change-frontend-appearance/#post-7564</link>
                        <pubDate>Mon, 15 Mar 2021 19:51:59 +0000</pubDate>
                        <description><![CDATA[@asti Thank you, at least this is a &quot;point towards the direction where to change what to archive what I&#039;m looking for&quot;!I update this Post when I find a solution to let you all know what to d...]]></description>
                        <content:encoded><![CDATA[<p>@asti Thank you, at least this is a "<span>point towards the direction where to change what to archive what I'm looking for"!<br /><br /></span>I update this Post when I find a solution to let you all know what to do in similar cases.</p>
<p> </p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/troubleshooting/">How-to and Troubleshooting</category>                        <dc:creator>nstoeckigt</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/troubleshooting/change-frontend-appearance/#post-7564</guid>
                    </item>
				                    <item>
                        <title>RE: Change Frontend Appearance</title>
                        <link>https://wpdiscuz.com/community/troubleshooting/change-frontend-appearance/#post-7425</link>
                        <pubDate>Wed, 10 Mar 2021 13:08:55 +0000</pubDate>
                        <description><![CDATA[@nstoeckigt,
Sorry for the late response. 
We&#039;re really sorry, but there is not any simple solution we can post here. We may suggest you use the wpdiscuz_comment_author hook for this custo...]]></description>
                        <content:encoded><![CDATA[<p>@nstoeckigt,</p>
<p>Sorry for the late response. </p>
<p>We're really sorry, but there is not any simple solution we can post here. We may suggest you use the <a href="https://wpdiscuz.com/docs/codex/filters/wpdiscuz_comment_author/" target="true">wpdiscuz_comment_author</a> hook for this customization.</p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/troubleshooting/">How-to and Troubleshooting</category>                        <dc:creator>Asti</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/troubleshooting/change-frontend-appearance/#post-7425</guid>
                    </item>
				                    <item>
                        <title>RE: Change Frontend Appearance</title>
                        <link>https://wpdiscuz.com/community/troubleshooting/change-frontend-appearance/#post-7421</link>
                        <pubDate>Wed, 10 Mar 2021 12:41:12 +0000</pubDate>
                        <description><![CDATA[Any Idea from the wpdiscuz-Team itself?
Mayby you, @asti, might help me with this?]]></description>
                        <content:encoded><![CDATA[<p>Any Idea from the wpdiscuz-Team itself?</p>
<p>Mayby you, <span>@asti, might help me with this?</span></p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/troubleshooting/">How-to and Troubleshooting</category>                        <dc:creator>nstoeckigt</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/troubleshooting/change-frontend-appearance/#post-7421</guid>
                    </item>
							        </channel>
        </rss>
		