This question has been flagged
3 Replies
97 Views

Hello, I would like to remove the "login" button from the menu bar on my website. I believe this can only be done by modifying the HTML code. Can someone please help me with this?


Avatar
Discard
Best Answer

1. Login as Administrator

2. Open the website

3. Click on the Site menu

4. Click on HTML / CSS Editor submenu

5. There will be a popup

​5.1) Click on Edit HTML anyway

6. On top of the editor tab. In center there will be a selection box near to Save button. Click on it.

7. Search User Sign In template in that search box and click that template.

8. Comment the lines inside the xpath and save it.

Now the Signup button will be hidden.

Avatar
Discard
Best Answer

Hello,

 You can Hide/Show Sign in button in menu without using code as below:

select menu and from customize tab press on "Show/hide sign in button"


Avatar
Discard
Best Answer

Hello Brizay Mathis


Hope you are doing well.


We can add this code in views xml file inherit the template of 'placeholder_user_sign_in'.


// Code in comment


Other Way Without Code:

step1 - Open website

Step 2 - Open 'site' menu click on 'HTML / CSS Editor

Step 3 - Open the pop up same like below image

Step 4 - Search the 'User Sign In' 

Step 5 - Comment this anchor tag

You can check below attached image



Please reach out to us if any queries.

Thanks & Regards,

Email:   odoo@aktivsoftware.com           

Skype: kalpeshmaheshwari 

Avatar
Discard

Code:

EX:
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="user_sign_in" name="User Sign In" inherit_id="portal.placeholder_user_sign_in">
<xpath expr="//a" position="replace">
</xpath>
</template>
</odoo>