Skip to content

Commit cf0ee4c

Browse files
committed
improve page builder docs
1 parent fd9f3de commit cf0ee4c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

v5/extension-page-builder.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ For the most basic setup, duplicate your theme's current `page.php` template and
3333
```php
3434
<?php get_header();
3535

36-
if( tr_post_field("use_builder") == '1') {
36+
if( tr_show_page_builder("use_builder") ) {
3737
tr_components_field('builder');
3838
} else {
3939
get_template_part('standard');
@@ -42,7 +42,7 @@ if( tr_post_field("use_builder") == '1') {
4242
get_footer();
4343
```
4444

45-
This code will use the old page template `standard.php` if the builder is not being used.
45+
This code will use the old page template `standard.php` if the builder is not being used or the page is password protected.
4646

4747
## Components
4848

0 commit comments

Comments
 (0)