Adding to the style.css when making new page template (4 posts)

  1. rhicoverasmile
    Posted 2 years ago #

    Hey y'all, I am attempting to create a new page template that i am calling "main-wide" (clever,no?) so I may post the entire width of the page. I figured out how to make the page.php part (got rid of the call to sidebar stuff and changed the id name) so now I need to correctly add the required parameters to my style.css. I notice when I try to add lines to the middle of the script, it seems to throw everything off. (Yes, I'm a crappy at poetry, aka code.) I got that it's something like:
    #main-wide {
    blah: blah;
    width: 980px;
    So I don't know exactly what I'm supposed to substitude "blah" for... please don't laugh... and how to "add" it to the style sheet, because whenever I try to insert what I think is right, it throws off the footer. I hope this makes sense. Oh, in case you need to know I'm using the Selecta theme. Thanks guys!

  2. rhicoverasmile
    Posted 2 years ago #

    Here's the page in question:

    The flash file is currently truncated and thaat's what I need to fix.

  3. the width is still restricted by the style of #content;

    add this to style.css of your theme:

    .page-template-page-wide-php #content { width:100%; }

    your theme uses body_class() which outputs useful css classes.


    #main-wide #content { width:100%; }

  4. rhicoverasmile
    Posted 2 years ago #

    Thank you so much for the help, worked like a charm! Slowly learning more and more about code everyday. (I learned BASIC on my TI-99/4a when I was a kid, but sadly, that is the extent of my scripting abilities!)

Topic Closed

This topic has been closed to new replies.

About this Topic