How do I create a custom width page on the Minimum theme?

Community Forums Forums Design Tips and Tricks How do I create a custom width page on the Minimum theme?

This topic is: resolved

This topic contains 3 replies, has 2 voices, and was last updated by  IttyBiz Ninjas 1 year, 9 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #18108

    IttyBiz Ninjas
    Participant
    Post count: 11

    Hey there!

    We’re trying to create a custom page template with a width that’s *less* than full width – maybe about 60%, but still centered on the page.

    With our limited CSS/PHP knowledge we made a page template that displays full width (no sidebars), but we’re not sure what code to edit to create a non-full width page.

    Could someone give us some direction on how to do so?

    Thanks so much,

    The super-secret,
    but ever effective
    IttyBiz ninjas


    The super secret,
    but ever-effective
    IttyBiz ninjas

    #18282

    Hard Boiled Greg
    Participant
    Post count: 88

    Hi,

    You can add:

    [css].page-template-***** #content {
    float: none;
    margin: 0 auto;
    width: 60%;
    }[/css]

    Where .page-template-***** is the body class of your custom page template.

    Hard Boiled Greg


    Website: Hard Boiled Greg Twitter: @hbgreg

    #18310

    IttyBiz Ninjas
    Participant
    Post count: 11

    YOU ARE FANTASTIC.

    Thanks so much, Greg!

    For those clueless CSSers like us reading this thread later, here’s the path to how we used this:

    1) We added Greg’s code above to the functions.php and changed the ***** to the name of our template (“wide-template”)

    2) We edited our wide-template.php like this:

    [CSS]$classes[] = ‘portfolio';[/css]

    became

    [CSS]$classes[] = ‘page-template-wide-template';[/css]

    I think we may be geting the hang of this. Thanks, Greg, for your support!

    The super-secret,
    but ever effective
    IttyBiz ninjas.


    The super secret,
    but ever-effective
    IttyBiz ninjas

    #18311

    IttyBiz Ninjas
    Participant
    Post count: 11

    (oops, double posted)


    The super secret,
    but ever-effective
    IttyBiz ninjas

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.