![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Apr 2002
Location: State Of Bliss
Posts: 2,438
|
Wordpress Help: WP is not using my custom page
I have set the index as static (home.php)
So I want the blog pages to be shown under /blog The index (home.php) loads up fine, header and custom setup. The blog posts load, BUT: The blog page is not updating. It is loading the old header, SO the css changes are not being loaded. I read something about the hierarchy, but I have no idea what to change. ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Industry Role:
Join Date: Jul 2001
Location: 127.0.0.1
Posts: 9,266
|
I'm not 100% sure what do you mean, anyway, if you're using 2 headers (is that what you mean?) then you need to require the correct header, like this:
Code:
<?php include(TEMPLATEPATH.'/header2.php'); ?> Code:
<?php if (is_front_page()){ <?php include(TEMPLATEPATH.'/mainheader.php'); ?> } elseif (is_single()){ <?php include(TEMPLATEPATH.'/header-single.php'); ?> } else { <?php include(TEMPLATEPATH.'/header1.php'); ?> } ?>
__________________
This post is endorsed by CIA, KGB, MI6, the Mafia, Illuminati, Kim Jong Il, Worldwide Ninjas Association, Klingon Empire and lolcats. Don't mess around with it, just accept it and embrace the truth |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Apr 2002
Location: State Of Bliss
Posts: 2,438
|
Thanks.
I'll use this. ![]() The other problem was that I moved the blog from a sub-dir to the root and the single was looking at the old folder. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Apr 2002
Location: State Of Bliss
Posts: 2,438
|
Second note for anyone else who has this issue:
Seems home.php may be a reserved filename. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Too lazy to set a custom title
Industry Role:
Join Date: Oct 2002
Location: The Boonies
Posts: 12,860
|
Silly question but did you clear your browser cache? I find that mozilla based browsers tend to keep using a cached version of css and caused me headaches similar to yours.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Industry Role:
Join Date: Feb 2012
Posts: 49
|
Yeah, first clear your cache and make sure you're not just searching for a problem that's not there.
Second, make sure all of your stylesheets and other included files have the correct paths in your code (as harvey mentioned).
__________________
Services: Web Design, Custom Development, PHP, MySQL, WordPress plugins, JavaScript, System Adminstration and more! Content: Producing and selling Original Asian content. Contact me to buy. ICQ: 706149662 SKYPE: valerianxx |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Join Date: Apr 2002
Location: State Of Bliss
Posts: 2,438
|
Yea, the cache thing was the first thing I did.
Everything is working correctly now. ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
Too lazy to set a custom title
Industry Role:
Join Date: Aug 2002
Posts: 55,327
|
Quote:
single.php instead of get_header() use get_header('single'); header-single.php it will look for.
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence. ![]() WP Stuff |
|
![]() |
![]() ![]() ![]() ![]() ![]() |