XF 1.2 Removing the hyperlink on Inbox and Alerts on navigation

#1
Hi,

This is regarding the navigation bar tabs "Inbox" and "Alerts". Whenever we mouse over these tabs, there will be a menu sliding down. However I find it easy to accidentally click on the tab and get linked to the Inbox page or Alert list page. As there is already a proper link to these pages when clicking "show all", I would wish to remove the hyperlink on the tab itself.

i.e. this link where the mouse is currently on:

Untitled 3.png


Sorry if this has been asked before, cant seem to find it when searching.

Thanks!!
 
#2
Go to the template navigation_visitor_tab:

Look for:
Code:
<a href="{xen:link conversations}"  rel="Menu" class="navLink NoPopupGadget">{xen:phrase inbox}
            <strong class="itemCount {xen:if {$visitor.conversations_unread}, '', 'Zero'}"
                id="ConversationsMenu_Counter" data-text="{xen:phrase you_have_x_new_unread_conversations}">
                <span class="Total">{xen:number $visitor.conversations_unread}</span>
                <span class="arrow"></span>
      </strong>
</a>
and change it by:
Code:
<div rel="Menu" class="navLink NoPopupGadget">{xen:phrase inbox}
            <strong class="itemCount {xen:if {$visitor.conversations_unread}, '', 'Zero'}"
                id="ConversationsMenu_Counter" data-text="{xen:phrase you_have_x_new_unread_conversations}">
                <span class="Total">{xen:number $visitor.conversations_unread}</span>
                <span class="arrow"></span>
      </strong>
</div>
This is the same way for the alerts:

Look for:
Code:
<a href="{xen:link account/alerts}" rel="Menu" class="navLink NoPopupGadget">{xen:phrase alerts}
            <strong class="itemCount {xen:if {$visitor.alerts_unread}, '', 'Zero'}"
                id="AlertsMenu_Counter" data-text="{xen:phrase you_have_x_new_alerts}">
                <span class="Total">{xen:number $visitor.alerts_unread}</span>
                <span class="arrow"></span>
            </strong>
        </a>
Replace it with:
Code:
<div rel="Menu" class="navLink NoPopupGadget">{xen:phrase alerts}
            <strong class="itemCount {xen:if {$visitor.alerts_unread}, '', 'Zero'}"
                id="AlertsMenu_Counter" data-text="{xen:phrase you_have_x_new_alerts}">
                <span class="Total">{xen:number $visitor.alerts_unread}</span>
                <span class="arrow"></span>
            </strong>
        </div>
That's all. :)
 
Last edited:
Top