XF 2.2 Customizing "latest posts" widget

Betfather

Member
Hello,

is there some "healthy" way to customize "Latest_posts" widget on my homepage?

I would like to unlink the title of widget (links to whats-new/posts) and I would like to delete "view more" (same link) button for the homepage widget.

As this type of widget is connected to "What's new" section in navbar, I don't want to risk customization on my own as I don't want to affect this section itself in any way.

Thank you for your help!😊
Lucas
 

Attachments

  • 1637795699899.webp
    1637795699899.webp
    71.1 KB · Views: 69
Solution
and I would like to delete "view more" (same link) button for the homepage widget.
Try this in your extra.less template :
Less:
[data-widget-key="your_widget_key"] {
    .block-footer {
        display: none;
    }
}
Change you_widget_key by... your reel widget key

I would like to unlink the title of widget (links to whats-new/posts)
Go to widget_new_posts template and replace
HTML:
<a href="{$link}" rel="nofollow">{$title}</a>
by
HTML:
{$title}
at line 6
and I would like to delete "view more" (same link) button for the homepage widget.
Try this in your extra.less template :
Less:
[data-widget-key="your_widget_key"] {
    .block-footer {
        display: none;
    }
}
Change you_widget_key by... your reel widget key

I would like to unlink the title of widget (links to whats-new/posts)
Go to widget_new_posts template and replace
HTML:
<a href="{$link}" rel="nofollow">{$title}</a>
by
HTML:
{$title}
at line 6
 
Solution
Top Bottom