• Imburr

    (@imburr)


    I am running a WordPress blog at https://smartbserver.net. I have full root access.

    I use the latest version of the theme Traction now. What I would like to do is:

    Edit my “home” page, which is static. I have done the custom template, and removed the footer and sidebar. But now the page content is only really editable through WordPress admin. I need to change the HTML or CSS of only this home page, while leaving the themed things I am using intact, such as the navigation bar and site title.

    The current page’s content area is defined by CSS- but there is no way for me to add a new stylesheet and point only this “home” page it at, because the page is called together by a bunch of php pages. I want the page to be a legitimate part of my site, viewable under the admin console- but I also want to be able to go wild with my css and design and change the entire page layout around.

    Can anyone point me in the right direction?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Chris Dill

    (@chris-dill)

    Bump

    esmi

    (@esmi)

    Make a copy of page.php and rename the copy front-page.php. You can now edit your static front page template file to your heart’s content without affecting your default page layout.

    Chris Dill

    (@chris-dill)

    Except that this page is not manageable from within the WordPress Admin console, correct?

    Also, how would I define for the static front page to use a different layout, when it just consists of php calls. you can see what I mean here

    https://smartbserver.net

    See how the content is on the left even though i removed the right sidebar? How do I get my main content to span the entire gray area, only on that page?

    That page was designed using the wordpress admin, and shows up without a .php ending.

    esmi

    (@esmi)

    Except that this page is not manageable from within the WordPress Admin console, correct?

    If it’s a static page, it can be within the Admin area edited like any other page.

    Also, how would I define for the static front page to use a different layout

    Use different CSS classes/ids in the new template.

    Chris Dill

    (@chris-dill)

    Hmmm, I will have to investigate this later this evening. I could have sworn I tried this, though i named is custompage.php and I could not get it to show up in the WP admin console.

    I think I may still not be connecting here. If I copy page.php, I will in reality have two home pages- which I only need one of.

    So right now in my WP admin I have 4 pages, home, blog, contact, and about. I would like to replace the one there with my custom page. this means when users browsed to https://smartbserver.net/ they would be at this page, with its custom layout.

    Am I on the right page with what you are saying? With my custom page template and “home” created in WP admin, can I just edit this page so I do not have two of them?

    esmi

    (@esmi)

    If I copy page.php, I will in reality have two home pages- which I only need one of.

    No. page.php is the default page template file used for all pages. front-page.php is a special template that is only applied the front page.

    Chris Dill

    (@chris-dill)

    Thank you very much esmi, I will investigate this as I move forward. for now I changed my front page to the blog roll for traffic purposes. I think I will design this front-page in the background and in a few weeks switch it back. I already have my custom CSS laid out in child stylesheets, so I am half way there.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Best solution for one page theme content modding while leaving theme features’ is closed to new replies.