Group Admins

  • Profile picture of Steve

WordPress Troubleshooting and Support

Public Group active 4 months, 3 weeks ago ago

WordPress support from our community

HELP: Changing from static front page back to blog?

This topic contains 0 replies, has 4 voices, and was last updated by  Margarete Koenen 6 years, 5 months ago.

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #1582

    Rachel Costello
    Participant

    I originally had a static page for my “Home” page. I would actually like to have this changed back to a blog-style page to show my posts and have it be my home page on my nav menu. I cannot figure out how to do this.
    I tried changing it in Settings – Reading, by clicking Front Page displays your latest posts. All that shows up under my navigation bar is wp_head();
    My sidebar isn’t there either.
    New to wordpress and very confused…please help.
    website is http://www.kalerecords.com

    I also have a ticket open on WP Support forum here…
    http://wordpress.org/support/topic/changing-home-page-back-to-a-blog?replies=4

    Thanks!
    Rachel

    #2756

    Steve
    Keymaster

    We need to see some code.

    Open your header.php file. Copy and paste it over here:
    https://gist.github.com/

    Press “Create public gist” and then put the url back in this forum.

    #2757

    amylaneio
    Spectator

    Hi Rachel. wp_head(); is a PHP function. It should be enclosed in PHP tags like the following:

    < ?php wp_head(); ?>

    There may be other code inside the PHP tags before or after wp_head();.

    #2758

    amylaneio
    Spectator

    Doh; as Steve points out, it should be in header.php, not index.php.

    #2759

    Rachel Costello
    Participant
    #2760

    Steve
    Keymaster

    That file looks fine. Try pasting INDEX.PHP

    #2761

    Rachel Costello
    Participant

    Okay,
    I hope I am getting this info from the correct location? I am copying from “Appearance” > “Editor”

    Here you go…Index.php

    #2762

    Steve
    Keymaster

    Perfect… remove the second line:
    wp_head();

    #2763

    Rachel Costello
    Participant

    Did that but no luck

    #2764

    Steve
    Keymaster

    Check all the other theme files, except header.php. If you find wp_head(); then delete it and save the file.

    wp_head(); should only appear one time in your header.php file.

    #2765

    Rachel Costello
    Participant

    Thanks Steve,
    I removed it from index.php and home.php
    Now the “wp_head();” is not there but it is still not showing my blog posts.
    Do I have to do something to re-create a Home page that shows my blog?
    Thanks for your help!

    #2766

    Steve
    Keymaster

    @rachel— The WordPress template hierarchy will always choose HOME.PHP over INDEX.PHP for your home page.

    Try deleting HOME.PHP (but make sure you back it up somewhere first)

    #2767

    Rachel Costello
    Participant

    I tried that and then it just went to a blank page.

    #2768

    Margarete Koenen
    Participant

    I see that you are using a theme named ‘supersceleton’ by Themeforest. Could you deactivate the version you are currently using and install a fresh copy of it?

    It seems to me that for some reason various files in your install got corrupted. Instead of trying to fix them it might be easier for you to just start with a fresh copy of your theme.

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

You must be logged in to reply to this topic.