Support » Themes and Templates » Styling your custom page template

  • Resolved developyst

    (@developyst)



    In my new template there is no sidebar area, only a content area, but the content area is too narrow. FYI i have created a child theme and i added this to my style.css:

    .page-template-Archive-News-php #primary {
    margin: 0;
    }
    .page-template-Archive-News-php #content{
    margin: 0 7.6%;
    width: 100%;
    }

    The new template’s name is Archive-News.php, All i want is for the content area to span the width of the page.

    This is the page: http://developyst.org/blog/archive-news/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Are you sure that you are using archive-news template? When I inspect your site, your body doesn’t have a class of page-template-archive-news… This is what you have

    <body class="page page-id-133 page-template-default custom-background single-author singular two-column right-sidebar"

    I think i might have switched it to default by mistake, but i am still having the problem in the archive-news template

    resolved

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Styling your custom page template’ is closed to new replies.