Skip to content

Changing cart and user offcanvas to modal #595

Answered by crftwrk
SnowYerry asked this question in Q&A
Discussion options

You must be logged in to vote

Ok, now I understand. User offcanvas content is stored in https://github.com/bootscore/bootscore/blob/main/woocommerce/myaccount/my-account-offcanvas.php.

This isn't a WooCommerce template file and cannot be overridden in the normal way. You have to copy and link it in your child.

  1. Copy my-account-offcanvas.php to your child using the same folder structure as in main-theme.
  2. Copy https://github.com/bootscore/bootscore/blob/main/template-parts/header/offcanvas-woocommerce.php to your child using the same folder structure as in main-theme.
  3. Open offcanvas-woocommerce.php and in line 22 you will find this:

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@SnowYerry
Comment options

@crftwrk
Comment options

Answer selected by SnowYerry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants