Dynamic Text Placeholders
Some text snippets can be typed into Lay Theme fields and are replaced with dynamic content on the frontend.
Type the placeholder exactly as shown, including the $ signs. The placeholders only work in the contexts described below.
Current Year
Use $currentyear$ inside a Text element to output the current year. This is useful for copyright text in a footer, for example:
© $currentyear$ My Website
On the frontend, Lay Theme replaces the placeholder with the current year.
Tags and Categories
Inside a Text element on a project, use $tags$ to output the current project's tags or $categories$ to output the current project's categories.
Lay Theme replaces the placeholder with a comma-separated list. If the project has no tags or categories, the placeholder is removed.
The generated tags use the classes lay-tags-in-text, lay-tag-in-text and lay-tag-in-text-delimiter. Categories use lay-categories-in-text, lay-category-in-text and lay-category-in-text-delimiter, so you can style them with custom CSS if needed.
Current Page or Project Title
Inside a Text element, use $projecttitle$ or $pagetitle$ to output the current title.
Both placeholders do the same thing: they output the title of the current WordPress post, page, project, news post or deck slide. Use whichever name makes more sense for the layout you are editing.
Project Navigation
Use $nextprojecttitle$ and $previousprojecttitle$ in project navigation text. Lay Theme replaces them with the title of the next or previous project on the frontend.
For example, the text Next: $nextprojecttitle$ becomes Next: Project Title.
These placeholders work in text links created with the Insert next project link and Insert previous project link buttons, and in text-based Project Arrows. The same placeholder names are also used by News and Deck navigation.
Read more in Navigation between Projects.