Difference between revisions of "Liquid Template Variables - page title"

From Spiffy Stores Knowledge Base

(New page: The '''page_title''' variable returns the current page title. You would most likely use this in your theme.liquid file to provide a unique page title for each of your pag...)
 
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
The '''page_title''' variable returns the current page title.
+
The Liquid template variable '''page_title''' returns the current page title.
  
 
You would most likely use this in your [[Theme.liquid|theme.liquid]] file to provide a unique page title for each of your pages.
 
You would most likely use this in your [[Theme.liquid|theme.liquid]] file to provide a unique page title for each of your pages.
Line 6: Line 6:
 
<title>{{shop.name}} - {{page_title}}</title>
 
<title>{{shop.name}} - {{page_title}}</title>
 
...
 
...
</head></pre>
+
</head>
 +
</pre>
 +
 
 +
== Further Reference ==
 +
 
 +
* [[Liquid Basics]]
 +
* [[Liquid Tag Reference]]
 +
* [[Liquid Filter Reference]]
 +
* [[Liquid Variable Reference]]
 +
* [[Liquid Paginate Tag|Pagination ]]

Latest revision as of 12:09, 25 June 2018

The Liquid template variable page_title returns the current page title.

You would most likely use this in your theme.liquid file to provide a unique page title for each of your pages.

<head>
<title>{{shop.name}} - {{page_title}}</title>
...
</head>

Further Reference