Use the “OnPreRender” function to render this java script code: (“document.getElementById(‘siteactiontd’).style.display = ‘none’;”), to hide the Site Actions drop down list.
The variable “HideSiteActions” is used to control Site Actions drop down list’s hide/show based on permissions.

After deploying this feature to SharePoint, refresh your page and the Site Action drop down list will be hidden.