• Resolved Ari Winokur

    (@ariwinokur)


    I created a custom page template originally from the standard page template. Since then, I have decided to change it to a full-width page template. I got rid of the get_sidebar() function, changed the div id at the beginning to content-full and added the full-width class to the main element. That seems to me to be the differences. Yet all the content is not showing full-width and is leaving space for a blank sidebar. What am I missing?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi, Ari Winokur.

    Did you changed the classes of the divs?

    The original sidebar-content-page.php has:

    <div id="content" class="content-area">
        <main id="main" class="site-main sidebar-content" role="main">

    While the original full-width-page.php has:

    <div id="content-full" class="content-area">
        <main id="main" class="site-main full-width" role="main">

    Thread Starter Ari Winokur

    (@ariwinokur)

    While I did not start with the same original file in my process, the short answer is yes. I put the files side by side and reviewed my divs and classes very thoroughly. That’s what has me stumped.

    Can you share the link to your website/the page you’re trying to adjust?

    Thread Starter Ari Winokur

    (@ariwinokur)

    I am developing this locally on my computer.

    Thread Starter Ari Winokur

    (@ariwinokur)

    I figured it out. Part of the CSS to make it full-width relied on the page-template class in the body tag. Once I realized that and copied over the appropriate CSS for the new template’s class everything worked fine.

    Hi , I want to go from sidebar to full-width on my site. Please tell me what have to do.

    I have a page-full.php site in the editor, but obviously I have to do something to make this take command over the page.php

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Changing custom page template from Sidebar to Full-Width’ is closed to new replies.