Remove the registration link from the main page

Discussion in 'Subrion CMS Templates' started by douglas_specht, Jan 15, 2017.

  1. douglas_specht

    douglas_specht New Member

    Hello..
    I disabled the front user registry, and would like to know how to remove the link from the home page?
    I use the Kickstart template.
    thank you..
  2. olairmarcos

    olairmarcos Member

    If you will not use the registration and login system on the frontpage, delete or comment the marked "Bold" line in the file:
    /templates/kickstart/layout.tpl

    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse" id="navbar-collapse">
    {include 'language-selector.tpl'}
    {ia_blocks block='account'} **** Remove or comment***
    {ia_blocks block='mainmenu'}
    </div>

    Thanks for listing
  3. douglas_specht

    douglas_specht New Member

    Hello.
    I would like to just remove the account register, the login should remain, how do I do in that case?

    Thanks for your response.
  4. olairmarcos

    olairmarcos Member

    In the file:
    /templates/common/render-menu.tpl

    Find and comment on the following line (22).

    <ul class="nav navbar-nav navbar-right">
    <li{if 'login' == $core.page.name} class="active"{/if}><a href="{$smarty.const.IA_URL}login/">{lang key='login'}</a></li>
    <!-- <li{if 'registration' == $core.page.name} class="active"{/if}><a href="{$smarty.const.IA_URL}registration/">{lang key='register'}</a></li> -->
    </ul>

    You can leave Active "Members functionality" in the control panel.

    Thanks.
  5. douglas_specht

    douglas_specht New Member

    Hello..
    Thank you very much, it worked.
  6. olairmarcos

    olairmarcos Member

  7. haljavshchik

    haljavshchik New Member

    Hello!
    Tried this "feature" and commented as olairmarcos suggested, but registration link still remains on main menu!
    What could be the issue?
  8. Vasily_B.

    Vasily_B. Project Manager

    Hi,

    Are you using the same template? You don't need to make changes in common/ folder. Instead you need to copy necessary file to your template folder and make changes there. Probably you changed the file in common, but your current template already has another file with the same name in its folder - so the changes are not applied so far, as the template overrides changes in common folder.

    Cheers

Share This Page