Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2026-05-08 10:54:51
- Barsinister
- New Member
- Registered: 2026-05-08
- Posts: 1
How to...Change the front page to be static
Hi. Funny thing…on the landing page, Home and Articles are exactly the same. They both display all of the articles. Is there an easy way to prevent the landing page from displaying all of the articles and only displaying one specific article? Or, a way to get the front page to display some html/php that isn’t an article?
Offline
Re: How to...Change the front page to be static
Hi and welcome!
Yes, probably the most straightforward way is to create a separate page template for the home page that you can then design as you like.
If you’re starting from the default theme:
- Visit Presentation › Pages and duplicate the
defaulttemplate under a new name, for examplehome. - Now visit Admin › Sections, click on the
defaultsection and change Uses page tohome. For the moment nothing has changed, but… - Go back to Presentation › Pages, make sure
homeis selected from the list and you can edit your page template as you like.
To show just a particular article, make a note of the article’s id number, and the use the following on your page template where you want it to show:
<txp:article_custom id="3" form="default" />
here with article #3 and the default form (you can find that under Presentation › Forms).
Obviously, there’s much more you can do, but that’s the basic principle.
TXP Builders – finely-crafted code, design and txp
Offline