I just want to add a link to my homepage to the navbar, and remove the 'calendar' link.
adding/removing navbar links
Collapse
X
-
Admin CP > Styles & Templates > Style Manager > Edit Templates > navbar > Search for
<td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
<td class="vbmenu_control"><a href="your_home_page_url_here">Home Page</a></td> -
It worked, but there seems to be quite a lot more space around this new link - 'Chains of Reason' - than around the other navbar links:
Is there anything I can do about this?
Also, how do I edit the 'User CP' link? I've found the code in the 'navbar' template, but I can only see 'user_cp', so I'm assuming 'User CP' is somewhere else.Comment
-
You can add different kinds of link here with your need. Also can put back the Calendar link. All you need is
<td class="vbmenu_control"><a href="your_custom_navbar_links_url_here">Navbar Links Name</a></td>
<if condition="$show['member']">
<td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
</if>Comment
-
Thanks, but when I change 'user_cp' in the code you quote to, for example, 'xuser_cp', the link just disappears.
Also, is there a reason why there is a lot of space either side of the 'Chains of Reason' link?:
Comment
-
That's because that text is using phrases.
You can replace $vbphrase[user_cp] with your text directly, changing it to UserCP for example, or adjust the user_cp phrase in your AdminCP.
You have a lot of empty space in the templates between the 'Chains of Reason' and the 'Register' link, try removing that.Best Regards
Colin Frei
Please don't contact me per PM.Comment
-
Question - I'm not quite sure how templates relate with the styles. Do we have to edit a navbar template under every style? And if I add a new style later, will I have to then remember to go do this? Or do they reference a common navbar template somehow?Comment
-
Templates are a per style code. They are however inherited from parent styles to child styles providing that the template has no further edits in the child style.
In most cases you will need to make any changes to the templates for all styles that you have installed.Comment
-
I tried this and got it to show up on the navbar but when you clicked on the link it didn't work. it put the web address in for the forum with the homepage address right behind it. Am I doing something wrong? I am pretty new to all this.Comment
-
I used the one you posted above.
<td class="vbmenu_control"><a href="your_home_page_url_here">Home Page</a></td>Comment
-
I'm sorry. I did put my URL in there but I'll try again and double check my code..Comment
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Comment