Skip to:
Content
Pages
Categories
Search
Top
Bottom

Help with a static homepage?

  • Hi, I’m trying to make a static homepage for a website I’m building.
    I’m not really a programming wiz (not at all, tbh) so I’m using a template I found online for now.
    It’s made of html and css, but in all the articles I read, it tells you to customize the .php file.
    Is it not possible to make a static homepage with html and css?

    Here’s the code…

    Homepage

    <!–
    body {
    background-color: #e1ddd9;
    font-size: 12px;
    font-family: Verdana, Arial, Helvetica, SunSans-Regular, Sans-Serif;
    color:#564b47;
    margin: 20px 140px 20px 140px;
    text-align: center;
    }
    #content {
    width: 100%;
    padding: 0px;
    text-align: left;
    background-color: #fff;
    overflow: auto;
    }
    p, h1, pre {
    margin: 0px;
    padding: 10px;
    }
    h1 {
    font-size: 11px;
    text-transform:uppercase;
    text-align: right;
    color: #564b47;
    background-color: #90897a;
    }
    a {
    color: #ff66cc;
    font-size: 11px;
    background-color:transparent;
    text-decoration: none;
    }
    –>

Viewing 6 replies - 1 through 6 (of 6 total)
  • `

    Homepage

    <!–
    body {
    background-color: #e1ddd9;
    font-size: 12px;
    font-family: Verdana, Arial, Helvetica, SunSans-Regular, Sans-Serif;
    color:#564b47;
    margin: 20px 140px 20px 140px;
    text-align: center;
    }
    #content {
    width: 100%;
    padding: 0px;
    text-align: left;
    background-color: #fff;
    overflow: auto;
    }
    p, h1, pre {
    margin: 0px;
    padding: 10px;
    }
    h1 {
    font-size: 11px;
    text-transform:uppercase;
    text-align: right;
    color: #564b47;
    background-color: #90897a;
    }
    a {
    color: #ff66cc;
    font-size: 11px;
    background-color:transparent;
    text-decoration: none;
    }
    –>

    welcome to BetasFTW.com


    BetasFTW.com is a social network created for developers to interact with their (future) customers.

    My Image Description

    continue

    `

    sorry I forgot the backticks


    @mercime
    Keymaster

    @mercime

    Sorry, that is not enough to create a theme which you will need to run WordPress/BuddyPress. You can choose from among the free themes in the WP repo at https://wordpress.org/extend/themes/

    If you have any trouble with WP installation or themes, please post your questions at https://wordpress.org/support/forum/how-to-and-troubleshooting

    I only want the static homepage. I have a theme that I am using and loving.
    (static homepage is where the home page doesn’t show any of the recent posts, and looks like a non-wordpress website)


    @mercime
    Keymaster

    @mercime

    The code you posted is still not enough – it’s missing the rest of the code ending in “

    Two ways:
    1. WP Codex: https://codex.wordpress.org/Creating_a_Static_Front_Page or
    2. create home.php (special WP template file) and paste the complete code then save to theme folder in server

    Thank you so much!
    I used the home.php way, and it worked perfectly.


    @mercime
    Keymaster

    @mercime

    I use home.php myself. Glad you have it working :-)

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Help with a static homepage?’ is closed to new replies.
Skip to toolbar