Help

欢迎!

该社区面向专业人士和我们产品和服务的爱好者。
分享和讨论最好的内容和新的营销理念,建立您的专业形象,一起成为更好的营销人员。


0

Remove the "login" button from the menu bar

Avatar
odoo
Avatar
Discard
3 Answers
0
Avatar
odoo
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"


7 Comments
Avatar
Discard
Avatar
odoo
-

Unfortunately this doesn't seem to work via the "customize" method . . . 🤔

Avatar
odoo
-

Is this perhaps a bug?

Avatar
odoo
-

it works in v17 and v18, which version do you use ?

Avatar
odoo
-

"18.0+e" . . . I think?

Avatar
odoo
-

Test with latest update from 18.0, work for me
if you need help contact me via facebook https://www.facebook.com/duong.messi.3/ or whatsapp +84336724296

Avatar
odoo
-

Thank you, unfortunately I'm not on either facebook or whatsapp 🙁. When I created my first webpage, I deleted a lot of stuff, and I thought that might have caused the problem, but then I created a new database/webpage from scratch, and I'm still not able to hide the sign in button via the customize method.

Avatar
odoo
-
0
Avatar
odoo
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
0
Avatar
odoo
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 

1 Comment
Avatar
Discard
Avatar
odoo
-

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>