Comments (4)
Hi Lo,
yes, this is an own file and not part of WooCommerce. That's why you can't override this in the same way like the other WC files.
-
Copy file like you did it to bootcommerce-child/woocommerce/myaccount/my-account-offcanvas.php
-
Open header.php and search for this:
<?php include get_template_directory() . '/woocommerce/myaccount/my-account-offcanvas.php'; ?>
- Replace
get_template_directory()
withget_stylesheet_directory()
<?php include get_stylesheet_directory() . '/woocommerce/myaccount/my-account-offcanvas.php'; ?>
- Edit file as you want.
from bootscore.
Thanks Basti!
I will do this.
I'm trying to understand how Wordpress works :
is get_template_directory()
for the main theme and get_stylesheet_directory()
for the child theme?
from bootscore.
is
get_template_directory()
for the main theme andget_stylesheet_directory()
for the child theme?
Exactly. get_stylesheet_directory()
is for the active theme where the style.css is located while get_template_directory()
always links to the main-theme.
from bootscore.
Thanks a lot for your clear answers!
Merry Christmas 🎄
from bootscore.
Related Issues (20)
- Opening links in slider into new tabs
- [BUG] Duplicate wc-ajax=add_to_cart HOT 5
- Revisit qty in cart
- The filemtime() function in PHP cannot handle Windows paths HOT 2
- Cross Sell Products HOT 1
- Excerpts are not being created automatically. HOT 2
- Releated products
- img src not show HOT 5
- Add support for cart and checkout blocks
- Multiple Instances On Page Using Different Templates
- [BUG] WooCommerce subscription switch HOT 21
- [Feature Request] Filter to remove fontawesome HOT 6
- [BUG] Offcanvas text going outside container on mobile. HOT 1
- header.php help file incorrect HOT 1
- [BUG] .top-button is clickable when not visible
- Help Question: Possible Dequeue CSS styles and JS for BS Contact Form 7 from every page
- "Wrong" Release process generates requirement to declare "wrong" parent theme HOT 9
- [BUG] Description HOT 2
- [BUG] Bad accessibility behavior HOT 2
- [BUG] Redundant (and sometimes problematic) IMG max-with in parent default style HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bootscore.