WooCommerce Issue with Cart and Checkout Page

I’m in the process of making a website for a friend using the Astra Theme and Woocommerce. I created Cart and Checkout pages, and added the woocommerce code for each, but it is still not linking when I click view cart. Instead, it just takes me to the home page.

The Cart page has \[woocommerce\_cart\] and the Checkout page has \[woocommerce\_checkout\]

Any ideas on what I am missing? Did I put the code in the wrong spot? I currently have it as a code block. I already went to WooCommerce > Settings > Advanced > Page Setup to point the cart and checkout pages to the respective pages.



[WooCommerce Settings](https://preview.redd.it/5jo5d06o6pna1.jpg?width=734&format=pjpg&auto=webp&v=enabled&s=7a0ee51d460ac8563279892842c7063b79ab1058)

[What I did on the page editor end \(I’m assuming the issue is here somewhere\)](https://preview.redd.it/ph53z4ia6pna1.jpg?width=1683&format=pjpg&auto=webp&v=enabled&s=0522300d35f172fa7890d5d36afb5f542497fcff)

[Wordpress recognizes the cart and checkout pages as such. ](https://preview.redd.it/j39fvfqw5pna1.jpg?width=282&format=pjpg&auto=webp&v=enabled&s=ef1e82d1a647f69c788548b90cd4fbc89b93b9fe)

[What I see when I manually navigate to the cart page](https://preview.redd.it/6su7gjqw5pna1.jpg?width=1679&format=pjpg&auto=webp&v=enabled&s=3e3d1ad58ddc40aa170e26390a93ec58b4d4461d)


This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer