Child theme question
-
Hello,
I am trying to save my previous changes from being overwritten by updates. Therefore I am using a plugin in which I can store my php, js and css snippets.
Now I have a real basic problem- calling objects within this plugin. For example:
Before: Requested file is located within a folder in my theme ‘woocommerce/emails/attached-files/Widerrufsrecht.pdf
And in my functions.php:
$widerruf_pdf_path = get_template_directory() . '/woocommerce/emails/attached-files/Widerrufsrecht.pdf';
Now I moved the emails folder to my plugin directory and tried nearly everything to attach the file from there using
plugin_dir_path (__DIR__)
,plugins_url
and several other methods, none of them working. For sure I did change the given path before to ‘/MyPlugin/custom/emails/attached-files/Widerrufsrecht.pdf’
Now I am hoping someone could help me with this, as studying the reference codex obviously didn’t help as well. ??Thank you very much, regards
-Bj?rn
The page I need help with: [log in to see the link]
- The topic ‘Child theme question’ is closed to new replies.