• I’m trying to add a static front page to my site. For some reason I can’t get it to not load the index.php template. I tried setting the page to one of my static pages as is, and I also tried giving that page a custom template. Is there a function I need to be looking for, so I can curb that forced blog index?

Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter metabrandon

    (@metabrandon)

    I did that. I’ve done a good amount of wordpress builds, hence my confusion here. This is the first time that has been ignored. But it’s showing the page title like it’s a page with no name. So instead of getting My Blog as the page title, I get | My Blog. Weird.

    Thread Starter metabrandon

    (@metabrandon)

    Got it. Not sure what I did, some wires must have been crossed somewhere along the line. I set the home page back to recent posts. Went to the page I want as the homepage, and re-saved it. Then went back and reset it the home page to that static page, and now it appears I’m good. Bug? Not sure how to reproduce it. Terrible luck I guess.

    Thread Starter metabrandon

    (@metabrandon)

    Scratch that. Still not working. I had refreshed the actual page I was viewing, not the home page.

    Do you want your front page to be a static page or page of posts?

    Thread Starter metabrandon

    (@metabrandon)

    I would like a static page. I think that something in the theme that I’m using is overriding the template page.php and forcing the home page to user index.php. I’m not sure though. It’s kind of strange. I absolutely have the front page set to static page in the reading section of settings. And from the looks of the page title it’s trying to be on a page, but it’s showing index.php as the template and it’s showing recent posts.

    I always use a static page, this is how I set it up and change when necessary.

    Settings -> Reading -> Front page display (click “A static Page”) – Select page name from “Front Page:”

    Always works.

    Janet
    http://greenesrelease.com

    Does the them include a home.php template file?

    Thread Starter metabrandon

    (@metabrandon)

    No. There isn’t a home.php. I added some debug text to index.php, it’s definitely loading that template. The really strange thing I’m noticing is the page meta title. If I have the reading setting set to display recent posts, the meta title is “My Site”. If I have it set to a static page, it shows the same content, but the meta title is ” | My Site”. That has been set by the all in one seo pack plugin. I can modify the page url structure in the plugin settings and it effects the home page. So it looks like it’s trying to load the page, but the template is being switched back to index.php somewhere along the line. If I switch themes it shows the appropriate static page. It’s most certainly in the theme, I just don’t know what I should be looking for so that I can fix it.

    All In One SEO complicates things a little but have a look in header.php and see what’s being used to create the <title> in the <head></head> section, Ideally it should be something like bloginfo('name');wp_title('|',true,'left');

    Thread Starter metabrandon

    (@metabrandon)

    I can type whatever I want there, and it will stay the same. The title is being generated by all in one seo, I get that. But the plugin can’t be the problem, because switching themes fixes it. It’s this theme specifically, somehow overriding the home page and forcing index.php. I don’t know how it would do that or what to look for it.

    Thread Starter metabrandon

    (@metabrandon)

    Got it. The theme used something called theme-toolkit. Don’t know what it is or how it was doing it, but I eliminated it and I’m in business. Thanks.

    i have a problem !!!

    i want to change in footer.php the text
    “All rights reserved. WordPress powered theme design by PremiumThemes.net” and i dont know how to do!!!

    when i delete thet text and i push the save button , on next screen apears this : “Warning: fopen(/home/itechnol/public_html/wordpress/wp-content/themes/Destination/footer.php) [function.fopen]: failed to open stream: Operation not permitted in /home/itechnol/public_html/wordpress/wp-admin/theme-editor.php on line 54

    Warning: Cannot modify header information – headers already sent by (output started at /home/itechnol/public_html/wordpress/wp-admin/theme-editor.php:54) in /home/itechnol/public_html/wordpress/wp-admin/theme-editor.php on line 69″

    help me please

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

The topic ‘Static Front Page’ is closed to new replies.