Last active
August 29, 2015 14:08
-
-
Save jp1971/5fb9a53e64ca88f33209 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{# et_disable_header is a notional ACF field name #} | |
{# You can use whatever name you'd like #} | |
{% if function( 'get_field', 'et_disable_header' ) == true %} | |
{% extends "index-alt.twig" %} | |
{% else %} | |
{% extends "index.twig" %} | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment