WordPress.org

Forums

Can I control myhome.php content through WordPress admin? (11 posts)

  1. timpvaughan
    Member
    Posted 3 years ago #

    Hi All, I'm new to WordPress and have a quick question.

    Can I control myhome.php content through the WordPress admin?

    I have an installed theme working perfectly but my client wants to be able control a "quotes" section and a "news & events" section through the admin panel. Can I insert specific code for these sections straight into the home.php?

    Is this possible? And if so, can you give me some tips to configure this please?

    Thanks in advance

    Tim

  2. Jonas Grumby
    Member
    Posted 3 years ago #

    Go to Settings > Reading. Is your home page set to "a static page"? You should be able to edit the content just like any other page.

  3. timpvaughan
    Member
    Posted 3 years ago #

    Hi Jonas, thanks for helping here.

    Below is my current set up.
    Front Page displays = A static Page. Front Page = Home, Post Page = (Select)

    If I swap it around I don't get the desired 'Home Page" as default. Am I doing something wrong?

    Thanks again,

    Tim

  4. Jonas Grumby
    Member
    Posted 3 years ago #

    If you swap it around the home page will be your default blog page. That's how it's supposed to work.

  5. timpvaughan
    Member
    Posted 3 years ago #

    Hi Jonas,

    Just tried swapping them around. Now the admin page has completely screwed up, looks like its lost the css file, also some of the functionality has gone from the site. How can this happen just from changing this static page over.

    Please help?

    Thanks

    Tim

  6. timpvaughan
    Member
    Posted 3 years ago #

    Hi Jonas,

    Please ignore my previous comment, had some Mac issues.

    I have tried to change the settings but all that happens is that I get the standard blog post page as default and lose the home.php content. I need to have the home.php content as the home page but editable.

    Not sure what else I can do.

    Thanks again.

    Tim

  7. esmi
    Forum Moderator
    Posted 3 years ago #

  8. Quin
    Member
    Posted 3 years ago #

    Wait, what are you wanting to do?

    Do you want your site to display a specific page (e.g. About Us) as the first page, and have the posts on another page?

    That is simple.

    or do you want something like my latest project?

  9. Jonas Grumby
    Member
    Posted 3 years ago #

    Tim,

    You can choose to show "a static page" and control your content like any other WordPress page. If you want your home page to have a different layout than your other pages, create a php template called front-page.php and add it to your theme. If you do not choose "a static page" then your home page will be the default blog page.

    Don't mess with the Settings. That is not the answer and changing the Settings can cause other problems.

    You may want to hire someone to do this (http://jobs.wordpress.net/) but you can learn to do it if you are diligent.

    John

  10. Jonas Grumby
    Member
    Posted 3 years ago #

    For example, look at this site: http://artists-n-order.com/

    It's a small, low-budget site but you can see that the home page looks completely different from the other pages and even has javascript rollovers.

  11. timpvaughan
    Member
    Posted 3 years ago #

    Thanks for all of your suggestion guys.

    I already have the home page as static page which looks different form the posts page. But what I want is for my client to be able to edit the content of the static page through the WordPress admin.

    Have a I explained my self clearly here?

    Quin, that is what I have at the moment but I want it to be work as described above. Is this possible?

    I am also using a theme.

    Thanks for you help,

    Tim

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags