You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After plugin activation, you can use Nette Latte templates in your theme. Just use `.latte` file extension instead of `.php`. Template files with `.php` extension will continue to work, but that templates will have lower priority in template resolution.
25
37
26
38
There are limitations with `header.php` and `footer.php`. You should use instead `{php wp_head()}` and `{php wp_footer()}` macro inside layout file. If you need to use header.php and footer.php file (e.g. for WooCommerce plugin), leave that files blank.
@@ -30,15 +42,14 @@ If you want to have a fallback for a case when the plugin is not activated, add
30
42
You can also define your custom filters and macros. Use the following code in your `functions.php` file.
31
43
32
44
```php
45
+
<?php // wp-content/themes/my-theme/functions.php
33
46
use NetteLatteEngine\NetteLatteEngine;
34
47
35
-
if (class_exists('NetteLatteEngine\NetteLatteEngine')) {
If you want define custom post template, create a template file in theme root directory and put the comment block at the begining of the file like this:
0 commit comments