XF 1.5 How to remove forumLink from sidebar New Posts

loplo

Active member
Hey,
I'm trying to remove forumLink from the New Posts sidebar module.

I've found that this is the code in the css that controls it, but I'd like to disable it via extra.css, instead of deleting it.
Code:
.threadListItem .additionalRow
{
    overflow: hidden;
    white-space: nowrap;
    word-wrap: normal;
    text-overflow: ellipsis;
}
Thanks!
 

wang

Well-known member
To remove the forum link from the New Posts sidebar widget, you must remove this code from the sidebar_new_posts template.

HTML:
<div class="additionalRow muted">
                <a href="{xen:link forums, $thread.forum}" class="forumLink">{$thread.forum.title}</a>
            </div>
Or better yet, wrap it inside the <xen:comment></xen:comment> tags.
 

loplo

Active member
I wouldn't like to change the template, this is why I'm looking for an extra.css solution.
 

Dadparvar

Well-known member
for example I tested this now:
Code:
div:nth-child(3) > a.forumLink
and the result:
forumlink.gif
 

loplo

Active member
On the left is the clean version, on the right the following code in extra.css

Code:
.threadListItem .additionalRow
{
    display: none;
    overflow: hidden;
    white-space: nowrap;
    word-wrap: normal;
    text-overflow: ellipsis;
}
 
Last edited:
Top