XF 2.1 p-nav-opposite (alert, conversation,...) as a widget

Betclever

Well-known member
Hello,

I would like to make a widget with following icons and links:

1607598302869.webp
/conversations
/account/alerts

The goal is removing the opposite-bar and staffbar...

Thx
 
I figured out but only for conversations, alerts, search but not for users, admin menu (moderators tools),.

HTML:
<div class="p-navgroup-link p-navgroup-link--iconic">
<div class="p-navgroup-link p-navgroup-link">
    <a class="p-navgroup-link p-navgroup-link--iconic p-navgroup-link--conversations js-badge--conversations badgeContainer" href="/conversations/">
        <i aria-hidden="true"></i>
    </a>

<div class=p-navgroup-link p-navgroup-link--iconic">
<div class="p-navgroup-link p-navgroup-link">
    <a class="p-navgroup-link p-navgroup-link--iconic p-navgroup-link--alerts js-badge--alerts badgeContainer" href="/account/alerts/">
        <i aria-hidden="true"></i>
    </a>  
   
<div class="p-navgroup-link p-navgroup-link--iconic">
<div class="p-navgroup-link p-navgroup-link">
    <a class="p-navgroup-link p-navgroup-link--iconic p-navgroup-link--search" href="/search/">
        <i aria-hidden="true"></i>
    </a>                                
                           
</div>
</div>
</div>
</div>
</div>
</div>

This part of code doesn't work... What's wrong please?

HTML:
<div class="p-navgroup-link p-navgroup-link--iconic">
<div class="p-navgroup-link p-navgroup-link">
    <a class="p-navgroup-link p-navgroup-link--iconic p-navgroup-link--search" href="/search/">
        <i aria-hidden="true"></i>
    </a>
   
    <div class="p-navgroup-link p-navgroup-link--iconic">
<div class="p-navgroup-link p-navgroup-link">
    <a class="p-navStaffBar p-navgroup-link p-navgroup-link-staffbar p-navgroup-link--iconic p-navgroup-link--moderatortools">
        <i aria-hidden="true"></i>
    </a>
</div>
</div>
</div>
</div>

Also, I would like to open them as overlay/popup...

Thx
 
HTML:
    <a class="p-navgroup-link p-navgroup-link--iconic p-navgroup-link--conversations js-badge--conversations badgeContainer" href="/conversations/" data-xf-click="overlay">
        <i aria-hidden="true"></i>
    </a>
 
HTML:
    <a class="p-navgroup-link p-navgroup-link--iconic p-navgroup-link--conversations js-badge--conversations badgeContainer" href="/conversations/" data-xf-click="overlay">
        <i aria-hidden="true"></i>
    </a>

It works thanks.

Do you have an idea for the second part of the problem?
 
Back
Top Bottom