• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.5 How to remove forumLink from sidebar New Posts

loplo

Active member
#1
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
#2
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
#8
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: