If you want to target all of the second items on all menu dropdowns you can add this to extra.cssHmmm... very helpful. Excuse me, but I thought so that it goes with css - but what class is to change?
.Menu.tabMenu .secondaryContent li:nth-child(2) {
background-color: #000000;
}
.nodetab8TabLinks.Menu.tabMenu .secondaryContent li:nth-child(2) {
background-color: #000000;
}
hey guys, I want to add two separate pages to my navbar but under one tab, basically linking one page through another using internal link but hiding the second page from members view until they click the link to the page and I want to do that using nodes as tabs, anyone know which function does this?
kk ty noble!basically make 2 nodes...
-parent node (display in the nodelist, display as tab, depth of chilid links = 1 )
--child node (do not display in node list)
public function actionForum()
{
// call parent function
$parent = parent::actionForum(); // Extend the default function.
$nodeModel = $this->getModelFromCache('XenForo_Model_Node');
$nodes = $nodeModel->getViewableNodeList(null, true);
$parent->params['nodeTypes'] = $nodeModel->getAllNodeTypes();
$parent->params['selected'] = preg_replace('/[^a-z0-9_-]/i', '', $this->_input->filterSingle('selected', XenForo_Input::STRING));
//$parent->params['nodes'] = $nodeModel->getViewableNodeList(null, true);
$parent->params['nodes'] = $nodeModel->filterOrphanNodes($nodes);
return $parent; //
}
How can I have it so whatever "nodes as tab" link shows only on desktop but not on mobile?
Real estate space is precious on mobile devices and would like to cut down on some links to reduce clutter.
html.Responsive .navTab.nodetab1
{
display: none;
}
Admin CP -> Appearance -> Templates -> EXTRA.css
Code:html.Responsive .navTab.nodetab1 { display: none; }
That should do it. Just specify the node_id (nodetab#).
We use essential cookies to make this site work, and optional cookies to enhance your experience.