Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2023-02-22 14:09:20
- lindabb
- Member
- Registered: 2023-02-17
- Posts: 132
My first theme and css
Thanks all help I got from this forum!
As a new user, with a lot to go though to read, I struggled to understand how theme works
Here are basic step by step on how to create theme and css style and use it.
Go to admin , login , click on Presentation, then
1- create new theme, call it mytheme.
2- again go to Presentation then Styles, select new created theme mytheme
3- Change the Style name to mycss.
4- Paste
body {
background-color: lightblue;
}
h1 {
color: red;
text-align: center;
}
p {
font-family: verdana;
font-size: 20px;
}
5-Save
6-Go to Pages, create new page call it mypage, and paste:
<txp:css format=“link” name=“mycss” />
<h1>My First Theme and CSS Example</h1>
<p>This is a paragraph.</p>
6-Go to sections , click create section , call it my menu,
On Uses theme select —-> mytheme
On Uses page —-> mypage
On Uses style —-> mycss
Finally save.
Now, click on my site (on the top admin navigation) , and then check my menu.
Hope this helps
Thank you
Offline
Pages: 1