From cfb00b6fb7c51d74174a186614b52957f9f09b1c Mon Sep 17 00:00:00 2001 From: Rumperuu Date: Sat, 24 Apr 2021 09:00:16 +0100 Subject: [PATCH] Create file --- Custom-Template-Stack.md | 42 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 Custom-Template-Stack.md diff --git a/Custom-Template-Stack.md b/Custom-Template-Stack.md new file mode 100644 index 0000000..d414464 --- /dev/null +++ b/Custom-Template-Stack.md @@ -0,0 +1,42 @@ +Plugin Footnotes for WordPress, v2.5.3 and later + + +A. Customized template parts + ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾ + +@since 2.2.6 Adding: Templates: support for custom templates in sibling folder, thanks to @misfist issue report. +@since 2.5.0 Adding: Templates: Enable template location stack, thanks to @misfist issue report and code contribution. + + +Priority order: + 1. active theme + 2. sibling folder + 3. internal + +See footnotes/class/template.php:67..116 + + +1. Active theme + ‾‾‾‾‾‾‾‾‾‾‾‾ +Please create a folder 'templates/footnotes/' in your child theme and +store all your public custom templates for Footnotes directly therein. + +Existing homonymous templates are loaded instead of their counterparts in +wp-content/plugins/footnotes/templates/public/. + + +2. Sibling folder + ‾‾‾‾‾‾‾‾‾‾‾‾‾‾ +Please make a sibling of the "footnotes" folder called 'footnotes-custom' and +the same internal structure and file names as 'footnotes/templates/public/'. + +Example for custom tooltips: + +footnotes-custom +└── templates + └── public + ├── footnote.html + └── tooltip.html + +Note: The timing parameters in the inline jQuery script 'tooltip.html' are already +configurable in the dashboard > Referrers and tooltips > Tooltip timing. \ No newline at end of file