• Resolved paintedcliffs

    (@paintedcliffs)


    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!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter paintedcliffs

    (@paintedcliffs)

    Argh. I see that I’m using the link button incorrectly — I apologize! Here is my site (without going anywhere near that link button…): https://www.janiechristensen.com.

    Thread Starter paintedcliffs

    (@paintedcliffs)

    Just reporting back that I’ve found a temporary fix for the problem of getting left-justified text centered on my lyrics pages, with the title above it. Unfortunately, I was never able to do it with a custom page template, so I may be back with questions the next time I try to set one of those up.

    In case anyone else reads this who is struggling with formatting lyrics or poetry, here’s what I did: I changed the h2 left margin setting in style.css until the title was somewhat centered and then in each page of the lyrics, highlighted the whole text and used the right-arrow Indent icon to move it over until I was happy with the placement on the page. That little right Indent icon seemed to magically appear one fine day; I could swear that it wasn’t there earlier when I was first struggling with this! It may have to do with the WP-Typography plugin that I installed. Or not, but that is a great plugin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Problems creating custom page template’ is closed to new replies.