I've created a simple text field
header.new_page_title
I want to use this field to serve as a page title overwrite. For example. In the admin there is a Title field that also serves as the front-end page title in your nav or sub-nav. If I fill in the new_page_title field it replaces the default title.
That is what I want to achieve. Is this possible?
I've tried using a simple if statement within my for loop, but I ended up looping the new_page_title 4 times instead of replacing the one title in the array and outputting the rest as normal.
This is the code that failed:
{% if child.visible %}
TWIG<a class="hvr-bounce-to-right {{ current_page }}" href="{{ child.url }}"> {% if header.event_link %}` {{ header.event_link }} {% else %} {{ child.menu }} {% endif %} </a>{% endif %}
Hopefully this makes sense. I think a better example would be creating a slug but only for titles. So for example, if my title on the page is About, and it shows up in the nav/subnav as About BUT I want the override title to be About My Business