We would like to disable Publish button under the home menu in experience editor for admin users as well in Sitecore SXA.
Tried approach :
I went to core database /sitecore/content/Application/webedit/ribbons/webedit/Experience Editor /publish/publish
path and tried to remove click textbox text (item:publish(id=$Target)
After that I am still able to see the functionality.
I have a requirement to remove the functionality of the click event, not the button. When I am clicking on publish button then it shows the publish item popup. I don't want to open this functionality.