XF 2.2 Widget Views

Gene Steinberg

Well-known member
I am using a widget to display the latest posts. But I'd like to remove the Views column.

Please advise, step by step, how best to do this.
 
If it's the latest posts widget on the new posts page and you want to remove the column with replies and views, add this to the extra.less template:

HTML:
[data-widget-key="whats_new_new_posts"]
{
    .structItem-cell--meta
    {
        display: none ;
    }
}

If it's a different widget, you can check the widget key in the ACP or via the browser inspector and replace it in the code.
 
The code I provided does what you asked in the opening post.

If you meant something else then you will need to provide more precise information, with links and screenshots.
 
No, because the instructions didn't mention that.

I just tried it, but it's not quite what I want. I just wanted to remove the Views column, not the Replies column. That possible using a different set of commands.

I've specified just Views several times.
 
Top Bottom