<?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>
									How to add an attribute to an anchor tag - How-to and Troubleshooting - wpForo 2.0				            </title>
            <link>https://wpforo.com/community/how-to-and-troubleshooting-2/how-to-add-an-attribute-to-an-anchor-tag/</link>
            <description>Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Fri, 11 Sep 2026 23:14:38 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: How to add an attribute to an anchor tag</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/how-to-add-an-attribute-to-an-anchor-tag/#post-43621</link>
                        <pubDate>Wed, 15 Jul 2020 05:47:46 +0000</pubDate>
                        <description><![CDATA[@robert
It worked. Thanks!]]></description>
                        <content:encoded><![CDATA[<p>@robert</p>
<p>It worked. Thanks!</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>pyue6299</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/how-to-add-an-attribute-to-an-anchor-tag/#post-43621</guid>
                    </item>
				                    <item>
                        <title>RE: How to add an attribute to an anchor tag</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/how-to-add-an-attribute-to-an-anchor-tag/#post-43611</link>
                        <pubDate>Wed, 15 Jul 2020 05:17:32 +0000</pubDate>
                        <description><![CDATA[@pyue6299,
Use this CSS Code:
#wpforo #wpforo-wrap #wpforo-menu .wpf-alerts ::after,#wpforo #wpforo-wrap #wpforo-menu .wpf-alerts ::before {&nbsp;&nbsp;&nbsp; dis...]]></description>
                        <content:encoded><![CDATA[<p>@pyue6299,</p>
<p>Use this CSS Code:</p>
<pre>#wpforo #wpforo-wrap #wpforo-menu .wpf-alerts ::after,<br />#wpforo #wpforo-wrap #wpforo-menu .wpf-alerts ::before {<br />&nbsp;&nbsp;&nbsp; display: none;<br />}</pre>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>Robert</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/how-to-add-an-attribute-to-an-anchor-tag/#post-43611</guid>
                    </item>
				                    <item>
                        <title>RE: How to add an attribute to an anchor tag</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/how-to-add-an-attribute-to-an-anchor-tag/#post-43585</link>
                        <pubDate>Tue, 14 Jul 2020 06:34:59 +0000</pubDate>
                        <description><![CDATA[@robert
You see the screenshot attached. There is a box on top of the notification bell saying &quot;you have no new notification&quot;
I would like to disable it entirely.
&nbsp;Screen-Shot-2020-0...]]></description>
                        <content:encoded><![CDATA[<p>@robert</p>
<p>You see the screenshot attached. There is a box on top of the notification bell saying "you have no new notification"</p>
<p>I would like to disable it entirely.</p>
<div id="wpfa-" class="wpforo-attached-file"><a class="wpforo-default-attachment" href="//wpforo.com/wp-content/uploads/wpforo/default_attachments/1594708499-Screen-Shot-2020-07-14-at-23404-PM.png" target="_blank"><i class="fas fa-paperclip"></i>&nbsp;Screen-Shot-2020-07-14-at-2.34.04-PM.png</a></div>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>pyue6299</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/how-to-add-an-attribute-to-an-anchor-tag/#post-43585</guid>
                    </item>
				                    <item>
                        <title>RE: How to add an attribute to an anchor tag</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/how-to-add-an-attribute-to-an-anchor-tag/#post-43573</link>
                        <pubDate>Tue, 14 Jul 2020 04:24:15 +0000</pubDate>
                        <description><![CDATA[@pyue6299,
I&#039;m sorry but I don&#039;t see what you mean. Please leave some screenshot.]]></description>
                        <content:encoded><![CDATA[<p>@pyue6299,</p>
<p>I'm sorry but I don't see what you mean. Please leave some screenshot.</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>Robert</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/how-to-add-an-attribute-to-an-anchor-tag/#post-43573</guid>
                    </item>
				                    <item>
                        <title>RE: How to add an attribute to an anchor tag</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/how-to-add-an-attribute-to-an-anchor-tag/#post-43532</link>
                        <pubDate>Sat, 11 Jul 2020 07:34:09 +0000</pubDate>
                        <description><![CDATA[@robert
That worked.&nbsp;
May I know how can i display:none the &quot;You have new notifications&quot; box as well as the arrow on the bottom of the box?
I can&#039;t find the correct CSS class to do s...]]></description>
                        <content:encoded><![CDATA[<p>@robert</p>
<p>That worked.&nbsp;</p>
<p>May I know how can i display:none the "You have new notifications" box as well as the arrow on the bottom of the box?</p>
<p>I can't find the correct CSS class to do so.</p>
<p>Thanks.</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>pyue6299</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/how-to-add-an-attribute-to-an-anchor-tag/#post-43532</guid>
                    </item>
				                    <item>
                        <title>RE: How to add an attribute to an anchor tag</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/how-to-add-an-attribute-to-an-anchor-tag/#post-43511</link>
                        <pubDate>Fri, 10 Jul 2020 16:09:28 +0000</pubDate>
                        <description><![CDATA[@pyue6299,
Ok, then you don&#039;t need any customization. Just use hooks. Put this code in your current active WordPress theme functions.php file and delete all caches:
function add_class_to_n...]]></description>
                        <content:encoded><![CDATA[<p>@pyue6299,</p>
<p>Ok, then you don't need any customization. Just use hooks. Put this code in your current active WordPress theme functions.php file and delete all caches:</p>
<pre style="color: #000000;font-size: 12.0pt"><span style="color: #008d00;font-weight: bold">function </span><span style="color: #0000e5;font-weight: bold">add_class_to_notifications_links</span>( <span style="color: #e22d00;font-weight: bold">$notifications </span>)<span style="color: #5163ac">{<br /></span><span style="color: #5163ac">   </span><span style="color: #008d00;font-weight: bold">if</span>( <span style="color: #000080">!</span><span style="color: #008d00;font-weight: bold">empty</span>( <span style="color: #4985c9;font-weight: bold">$notifications </span>) )<span style="color: #5163ac">{<br /></span><span style="color: #5163ac">      </span><span style="color: #008d00;font-weight: bold">foreach</span>( <span style="color: #4985c9;font-weight: bold">$notifications </span><span style="color: #008d00;font-weight: bold">as </span><span style="color: #4985c9;font-weight: bold">$key </span><span style="color: #000080">=&gt; </span><span style="color: #4985c9;font-weight: bold">$notification </span>)<span style="color: #5163ac">{<br /></span><span style="color: #5163ac">         </span><span style="color: #4985c9;font-weight: bold">$notifications</span><span style="color: #000080"> = </span><span style="color: #0000e5;font-style: italic">str_replace</span>(<span style="color: #c64741">'&lt;div class="wpf-nright"&gt;&lt;a'</span><span style="color: #000080">, </span><span style="color: #c64741">'&lt;div class="wpf-nright"&gt;&lt;a class="push-page" '</span><span style="color: #000080">, </span><span style="color: #4985c9;font-weight: bold">$notification</span>)<span style="color: #313131">;<br /></span><span style="color: #313131">      </span><span style="color: #5163ac">}<br /></span><span style="color: #5163ac">   }<br /></span><span style="color: #5163ac">   </span><span style="color: #008d00;font-weight: bold">return </span><span style="color: #4985c9;font-weight: bold">$notifications</span><span style="color: #313131">;<br /></span><span style="color: #5163ac">}<br /></span><span style="color: #0000e5;font-style: italic">add_filter</span>(<span style="color: #c64741">'wpforo_notifications_list'</span><span style="color: #000080">, </span><span style="color: #c64741">'add_class_to_notifications_links'</span><span style="color: #000080">, 10, 1</span>)<span style="color: #313131">;<br /></span></pre>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>Robert</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/how-to-add-an-attribute-to-an-anchor-tag/#post-43511</guid>
                    </item>
				                    <item>
                        <title>RE: How to add an attribute to an anchor tag</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/how-to-add-an-attribute-to-an-anchor-tag/#post-43484</link>
                        <pubDate>Thu, 09 Jul 2020 11:38:02 +0000</pubDate>
                        <description><![CDATA[@robertI would like to add a class=&quot;push-page&quot; to this anchor tag:
.wpf-notification-content a
But this only appears in the class-activity.php, not in classic/profile-activity.php as you s...]]></description>
                        <content:encoded><![CDATA[@robert<br /><br />I would like to add a class="push-page" to this anchor tag:<br />
<pre>.<span>wpf-notification-content</span> a</pre>
But this only appears in the class-activity.php, not in <span>classic/</span><span>profile-activity.php as you suggested. <br /><br />How should i correctly add class="push-page" to .wpf-notification-content a ?</span>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>pyue6299</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/how-to-add-an-attribute-to-an-anchor-tag/#post-43484</guid>
                    </item>
				                    <item>
                        <title>RE: How to add an attribute to an anchor tag</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/how-to-add-an-attribute-to-an-anchor-tag/#post-43478</link>
                        <pubDate>Thu, 09 Jul 2020 10:48:36 +0000</pubDate>
                        <description><![CDATA[@pyue6299,
Please never do that. You should only customize the template file. For example, you should customize activity template file not the activity class file. The user activity templat...]]></description>
                        <content:encoded><![CDATA[<p>@pyue6299,</p>
<p>Please never do that. You should only customize the template file. For example, you should customize activity template file not the activity class file. The user activity template files is this:</p>
<pre><span style="color: #0000ff">/wpforo/wpf-themes/classic/</span><span style="color: #ff0000">profile-activity.php</span></pre>
<p>This file can be copied in your current WordPress active theme <span style="color: #ff0000">/wpforo/</span> folder as it's explained here: <a class="wpforo-auto-embeded-link" href="../../../docs/root/forum-themes/theme-customization/" target="_blank" rel="noopener">https://wpforo.com/docs/root/forum-themes/theme-customization/</a></p>
<p> </p>
<p>And here are all template files you can edit in update safe way:</p>
<p>https://wpforo.com/docs/root/forum-themes/theme-files/</p>
<p> </p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>Robert</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/how-to-add-an-attribute-to-an-anchor-tag/#post-43478</guid>
                    </item>
				                    <item>
                        <title>RE: How to add an attribute to an anchor tag</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/how-to-add-an-attribute-to-an-anchor-tag/#post-43451</link>
                        <pubDate>Tue, 07 Jul 2020 09:20:14 +0000</pubDate>
                        <description><![CDATA[so do i put class-activity.php to:/home/jdclab/public_html/wp-content/plugins/wpforo/Your website seems to only apply to wpforo themes only?]]></description>
                        <content:encoded><![CDATA[<p>so do i put class-activity.php to:<br /><br />/home/jdclab/public_html/wp-content/plugins/wpforo/<br /><br />Your website seems to only apply to wpforo themes only?</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>pyue6299</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/how-to-add-an-attribute-to-an-anchor-tag/#post-43451</guid>
                    </item>
				                    <item>
                        <title>RE: How to add an attribute to an anchor tag</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/how-to-add-an-attribute-to-an-anchor-tag/#post-43444</link>
                        <pubDate>Tue, 07 Jul 2020 07:55:24 +0000</pubDate>
                        <description><![CDATA[Hi @pyue6299,
The correct and update-safe way to customize wpForo template file is this:]]></description>
                        <content:encoded><![CDATA[<p>Hi @pyue6299,</p>
<p>The correct and update-safe way to customize wpForo template file is this:</p>
<p>https://wpforo.com/docs/root/forum-themes/theme-customization/</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>Robert</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/how-to-add-an-attribute-to-an-anchor-tag/#post-43444</guid>
                    </item>
							        </channel>
        </rss>
		