Forums

Best solution for one page theme content modding while leaving theme features (8 posts)

  1. Imburr
    Member
    Posted 1 year ago #

    I am running a WordPress blog at http://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?

  2. Chris Dill
    Member
    Posted 1 year ago #

    Bump

  3. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    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.

  4. Chris Dill
    Member
    Posted 1 year ago #

    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

    http://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.

  5. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    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.

  6. Chris Dill
    Member
    Posted 1 year ago #

    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 http://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?

  7. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    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.

  8. Chris Dill
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic