• I created a static homepage on my site using a method described here. The problem I am having is that the homepage still reads “Comments are closed” with the horizontal line above it.

    I have three choices for my homepage:

    1) I can figure out a way to remove this. So far no such luck without affecting comments on all my blog posts.

    2) Leave it in and let it be an annoyance to me and my viewers.

    3) Change my static homepage method.

    Any help would be much appreciated!

Viewing 14 replies - 1 through 14 (of 14 total)
  • There is an easier way πŸ™‚
    All you need is to create a Page template; seemingly your theme is lacking it. The default Page template is page.php – you can just save your index.php as page.php and edit out/delete what you don’t need.
    WP will recognize its presence and will use it to display your Pages.
    More: http://codex.wordpress.org/Pages
    http://codex.wordpress.org/Template_Hierarchy

    Thread Starter JScar

    (@jscar)

    Well, thank you very much! I was afraid that it would be much more complicated. It worked very easily.

    Thread Starter JScar

    (@jscar)

    Uh, oh. I have a new problem.

    Everything works except my Pages links. They all lead to the static homepage.

    Such as http://mysite.com/about/ still shows my static homepage content.

    If it help at all, I took out everything except the header and footer PHP tags.

    They shouldn’t. Then something went wrong either with the “static homepage” or with the Page template. But not knowing which theme is active and/or not having a link… it is difficult to guess. (Plus, there are more than one “homepage” plugins)

    If it help at all, I took out everything except the header and footer PHP tags.
    From where? I don’t get it…

    Thread Starter JScar

    (@jscar)

    I copied everything from index.php and replaced the code in page.php with it, then edited the new page.php code.

    Here’s my test site: http://josefscarantino.com

    What theme is that? Where did you find it?
    Paste your page.php code to a pastebin, like
    http://paste.uni.cc

    Thread Starter JScar

    (@jscar)

    The theme is Fresh.

    Very simple:

    <?php get_header(); ?>

    Just a test

    <?php get_sidebar(); ?>

    <?php get_footer(); ?>

    That will not work.
    You need the Loop to display anything from the database. That’s why all your “Pages” are the same. Look at other themes how the page.php looks like.
    And BTW, I didn’t tell you to remove the Loop – just the call for comments. Nothing else!

    Thread Starter JScar

    (@jscar)

    Ok. I must have messed something up. Now my homepage shows my posts. The blog is correctly located in the ‘/blog’ directory where I want it and the ‘Pages’ links all work properly.

    Thread Starter JScar

    (@jscar)

    I changed my home.php page to what I showed above and all the ‘Pages’ show up fine.

    The problem I have is that my blog is supposed to be located at mysite.com/blog and when I go there, the posts do not appear. I see the same thing as when I am at the domain home.

    I haven’t edited index.php or page.php at all. Only home.php.

    I am not sure I can follow you.
    Something is messed up with your whole setup – and I just don’t understand what are you doing.
    Are you using some kind of homepage-static front plugin? Which one?
    You started with:
    I created a static homepage on my site using a method described here Where? There are at least 5-6 methods around…
    Where is your WP installed? In the root? Or in a subdir called “blog”? If it is at the root directory (as it seems to be), why should the blog appear in a subfolder as you expect it?

    Thread Starter JScar

    (@jscar)

    Ok, currently I am not using any plugin at all. The only thing I have done was edit the home.php page to get rid of my posts.

    My Permalinks are set to find the blog at mysite.com/blog, but I still get the blank homepage look without any posts.

    WP is installed in the root.

    The only effect I want to achieve is to have my blog at mysite.com/blog and my homepage static without the posts or blog.

    I do believe I just edited the wrong file. Everything else seems to be working as I expect.

    Thread Starter JScar

    (@jscar)

    Nevermind. I decided the best option was to reinstall WP under a directory other than root and customize my homepage using the WP template.

    Thanks for the help.

Viewing 14 replies - 1 through 14 (of 14 total)

The topic ‘Delete comment tag from static homepage’ is closed to new replies.