Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

How to alter the menu bar

Hello

Thank you for this theme, it has certainly cleaned up the look of forums. I use the Wordpress bridge and I would like to alter the menu a little bit from 'Home,Discussions,Categories,Activity,More' to 'Home,Forum,Discussions,Categories,Activity,More'.

With 'Home' being the website home link and the 'Forum' be the forum home link.

Where would I go in the files to adjust this and can I use any font awesome font name and change the icons that are displayed?

Thanks

Ray

Comments

  • RiverRiver MVP
    edited December 2016

    @sscadmin said:
    Hello

    Thank you for this theme, it has certainly cleaned up the look of forums. I use the Wordpress bridge and I would like to alter the menu a little bit from 'Home,Discussions,Categories,Activity,More' to 'Home,Forum,Discussions,Categories,Activity,More'.

    With 'Home' being the website home link and the 'Forum' be the forum home link.

    Where would I go in the files to adjust this and can I use any font awesome font name and change the icons that are displayed?

    Thanks

    Ray

    I am not sure why this would be different than any other theme with regards to modifying things.

    usually you can move things around in the /views/default.master.tpl of a theme and adjust things via css with custom.css files and cssedit plugin.

    there are also tutorials for cloning and changing, adjusting themes and creating your own customized theme in the tutorials category and the documentation link.

    the official documentation is here: http://docs.vanillaforums.com/developer/theming/quickstart/

    unofficial documentation and beginner questions are here:

    https://vanillaforums.org/discussion/comment/219925/#Comment_219925

    Also, sometimes frequently asked questions that might be related to your question can have answers just by searching the forum.

    https://vanillaforums.org/discussion/comment/138952/#Comment_138952

    regarding fonts and icons, just like any theme you can change as desired.

    Pragmatism is all I have to offer. Avoiding the sidelines and providing centerline pro-tips.

  • ThemeSteamThemeSteam I love VanillaForums
    edited December 2016

    Hi Ray,

    To add home and forum links please open:

    views/default.master.tpl

    find:

    {home_link}

    Replace with:

    <li class="vnhome"><a href="YOUR HOME LINK HERE">{t c="Home"}</a>
    <li class="vnforum"><a href="YOUR FORUM LINK HERE">{t c="Forum"}</a>


    To change the icons please open:

    design/custom.css

    add:
    

    cssmenu > ul > li a:before {font-family: 'FontAwesome';}

    cssmenu > ul > li.vnhome a:before {content: "\f015";}

    cssmenu > ul > li.vnforum a:before {content: "\f2c3";}

    You can change the other icons in the same manner ;)
    Sincerely

  • how do I link outside of the forum site? Everything I put in the .tpl file has the path set to my homedirectory / whatever the link is

  • R_JR_J Ex-Fanboy Munich Admin

    @TheStrangeAttractor said:
    how do I link outside of the forum site? Everything I put in the .tpl file has the path set to my homedirectory / whatever the link is

    You mean when you add <a href="https://open.vanillaforums.com/discussion/32907/how-to-alter-the-menu-bar#latest">Some Link</a> it doesn't work?

  • edited August 2017

    @R_J
    No because the path is set to my forum, so the code prepends everything with "mysitename.com/" so the link shows up, but it links to mysitename.com/"linkhere" when the link I'm planning to use is an outside link.

Sign In or Register to comment.