Forums

Having problems using a custom static front page (8 posts)

  1. Webmeba
    Member
    Posted 1 month ago #

    I want my blog to be located at http://designmeba.com/blog, and a static page at designmeba.com. I've read the WordPress support article on this (http://codex.wordpress.org/Creating_a_Static_Front_Page) but I guess i'm doing something wrong.

    To get to the designmeba.com directory, I have to first open the root directors, then go to public_html, then to the folder designmeba (since it's not the master domain). I've already changed the htaccess in the /designmeba directory and added my custom static page template called frontpage.php. I've also placed index.php from the root directory into another folder called "blog" and changed the requires ('./wp-blog-header.php'); line to require('../wp-blog-header.php'); . Yet when I go to http://designmeba.com/ I get the following error:

    Fatal error: Call to undefined function bloginfo() in /home/webmzuk6/public_html/designmeba/frontpage.php on line 5

    Now I know this isn't a problem with a specific line because I've tried deleting it so, yeah,

    that's the problem.

  2. Webmeba
    Member
    Posted 1 month ago #

    bump

  3. whistler2020
    Member
    Posted 1 month ago #

    do you not want it to direct to /blog?

  4. Scooby
    Member
    Posted 1 month ago #

    Did you get this working?? I just got it working myself..

  5. Webmeba
    Member
    Posted 1 month ago #

    Whistler

    I want the static page at designmeba.com, and my blog at designmeba.com/blog

    /blog already works you can go check it out
    but when I try to load the main site I get some weird PHP error, although the code is perfectly fine.

  6. Webmeba
    Member
    Posted 1 month ago #

    bump

  7. Scooby
    Member
    Posted 1 month ago #

    Looks like you need to add your header information..

  8. rudolf45
    Member
    Posted 1 month ago #

    1. If your WP is installed in a subfolder /blog - read the documentation: http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory
    2. In your reading options set up a static frontpage and
    3. another page for your posts

    The static front will be at
    example.com
    and the "blog" or posts page at
    example.com/whatever

Reply

You must log in to post.

About this Topic