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!
 
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.
 
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;
}

without-with6osjo.jpg
 
Last edited:
Top Bottom