Problems creating custom page template
-
I’m a beginner but am starting to get more comfortable with making changes to the stylesheet, etc., which is exciting, but I’m stuck on something that I hope someone can help me with. It seems like it should be so simple but it’s killing me! I’ve been combing through books & tutorials and trying one thing after another, but something about this is eluding me. My site is https://www.janiechristensen.com. I’m using the minimalism theme.
I want to create a custom page template for static lyrics pages. I’ve started by creating a few lyric pages and have created a lyric.php file and linked them, but right now they’re still just a carbon copy of my main page. I’m reasonably happy with how the lyric pages look with the exception of the left margin of the text. I want it to be a bit more centered on the page and I want the title of the song to be roughly centered over the column of text, just as you would expect a lyric or poem to look on the page.
I THINK I need to create a class within the lyric.php file that tells the browser “I’m identifying this as a lyric” and then place an identifyer in my stylesheet that tells the browser, “here are those lyrics I was talking about and all lyrics should be [whatever] number of pixels from the edge of the page (or the edge of the particular container they’re in).” And then do something similar so I have control over the placement of the title. From my reading I THINK this relates to padding rather than margins, and the only value I want to change is the left value. I want the lyrics to remain left-justified.
Can anyone steer me in the right direction and tell me specifically where in the lyric.php & style.css files the new information should go?
Thank you!
- The topic ‘Problems creating custom page template’ is closed to new replies.