# \[Archive\] How to remove the connect with wallet section

**URL:** <https://builder.metamask.com/t/archive-how-to-remove-the-connect-with-wallet-section/1812>\
**Category:** Embedded Wallets (Web3Auth)\
**Created:** [August 31, 2023, 3:13pm UTC](https://builder.metamask.com/t/archive-how-to-remove-the-connect-with-wallet-section/1812 "2023-08-31T15:13:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![community2](https://avatars.discourse-cdn.com/v4/letter/c/8baadc/32.png) [@community2](https://builder.metamask.com/u/community2)\
**Post date:** [August 31, 2023, 3:13pm UTC](https://builder.metamask.com/t/archive-how-to-remove-the-connect-with-wallet-section/1812/1 "2023-08-31T15:13:29Z")

</div>

> **🏛 Archived Content from Web3Auth Community**
> 
> This topic was originally posted by **community2** on 8/31/2023.  
> This content has been migrated from our previous community forum to preserve valuable discussions.

* * *

I want to hide the connect wallet section altogether, but the below given code is not working

[![image](https://canada1.discourse-cdn.com/flex011/uploads/metamaskbuilderhub/original/2X/0/04a328c57ab9bc03f12210077c47c7cf94645c58.png)
image407×625 24.2 KB
](https://web3auth.io/community/uploads/default/original/2X/1/1170b5f2ebd9c7ae18b3710faed9f21a500df881.png "image")

````auto
const web3auth = new Web3Auth({
      clientId:"BCNEb4vQCl8rrcqFpZDr3WcS5Hz2EMtRIMw8pEax3GzC1OAYqWSzqpq8-UaTGbZczgBQJ2z4WNWSMuwR5pBz4uY",
      chainConfig: {
        chainNamespace: "eip155",
        chainId: "0x5",
      },
      web3AuthNetwork: "mainnet",
    });
const torusPlugin = new TorusWalletConnectorPlugin({
  torusWalletOpts: {},
   walletInitOptions: { buttonPosition: "bottom-left",
    whiteLabel: {
      theme: { isDark: true, colors: { primary: "#00a8ff" } },
      logoDark: "https://web3auth.io/images/w3a-L-Favicon-1.svg",
      logoLight: "https://web3auth.io/images/w3a-D-Favicon-1.svg",
    },
    useWalletConnect: false,
    enableLogging: false,
    showTorusButton:false
  },
});
await web3auth.addPlugin(torusPlugin);

await web3auth.initModal(
  {
  modalConfig: {
    openlogin: {
      label: "openlogin",
      loginMethods: {
        facebook: {
          name: "facebook",
          showOnModal: false,
        },
        reddit: {
          name: "reddit",
          showOnModal: false,
        },
        discord: {
          name: "discord",
          showOnModal: false,
        },
        email_passwordless: {
          name: "email_passwordless",
          showOnModal: false,
        },
        wechat: {
          name: "wechat",
          showOnModal: false,
        },
        weibo: {
          name: "weibo",
          showOnModal: false,
        },
        twitter: {
          name: "twitter",
          showOnModal: false,
        },
        kakao: {
          name: "kakao",
          showOnModal: false,
        },
        line: {
          name: "line",
          showOnModal: false,
        },
        twitch: {
          name: "twitch",
          showOnModal: false,
        },
        apple: {
          name: "apple",
          showOnModal: false,
        },
        github: {
          name: "github",
          showOnModal: false,
        },
        linkedin: {
          name: "linkedin",
          showOnModal: false,
        },
        external_wallets: {
          name: "external_wallets",
          showOnModal: false,
        },
        sms_passwordless: {
          name: "sms_passwordless",
          showOnModal: true,
        },
        wallet_logins:{
           name: "wallet_logins",
          showOnModal: false,
        }
        

      },
    },
  },
});

console.log(web3auth, " auto lets see 2 connected");
if (!web3auth.connected) await web3auth.connect();```</code></pre>

````

---

<div class="post-metadata">

**Author:** ![vjgee](https://avatars.discourse-cdn.com/v4/letter/v/b5e925/32.png) [@vjgee](https://builder.metamask.com/u/vjgee)\
**Post date:** [September 2, 2023, 4:53am UTC](https://builder.metamask.com/t/archive-how-to-remove-the-connect-with-wallet-section/1812/2 "2023-09-02T04:53:09Z")

</div>

@community2 Thanks for your patience.

You can refer to the below code snippet:

```auto
import { Web3Auth } from "@web3auth/modal";
import { CHAIN_NAMESPACES, WALLET_ADAPTERS } from "@web3auth/base";
const web3auth = new Web3Auth({
chainConfig: { chainNamespace: CHAIN_NAMESPACES.EIP155 },
clientId: “YOUR_WEB3AUTH_CLIENT_ID”,
web3AuthNetwork: “mainnet”,
});

```

---

<div class="post-metadata">

**Author:** ![community2](https://avatars.discourse-cdn.com/v4/letter/c/8baadc/32.png) [@community2](https://builder.metamask.com/u/community2)\
**Post date:** [September 3, 2023, 7:28am UTC](https://builder.metamask.com/t/archive-how-to-remove-the-connect-with-wallet-section/1812/3 "2023-09-03T07:28:26Z")

</div>

Thanks a lot, it worked.
