Patrick Orr
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to delete wordpressIt doesn’t tell me anything, it emptys the files inside the folders but the folder remains…
Forum: Themes and Templates
In reply to: Fatal error: Call to undefined function get_header()Thanks for working through this with me david. It’s people like you that make the world go round! If I could grab you a beer sometime I would.
Cheers
Forum: Themes and Templates
In reply to: Fatal error: Call to undefined function get_header()David,
Thanks for all your help and patience. I installed everything over again(I had done this a couple times already. It appears that the 2010 theme was working fine once I deleted my index.html file from the root.The problem was that I was trying to navigate directly to the index.php file in the theme folder to test the site.
I think I need to create a test folder with all the wordpress stuff in it and keep it contained and just work from a subdirectory.
Can I just make new folder like:
httpdocs>wordpress>move all files hereOr do I need to actually install wordpress again?
Forum: Themes and Templates
In reply to: Fatal error: Call to undefined function get_header()Maybe it might help to see my mark-up:
header.php:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="https://www.w3.org/1999/xhtml" <?php language_attributes(); ?>> <meta http-equiv="content-type" content="<?php bloginfo('html_type') ?>; charset=<?php bloginfo('charset') ?>" /> <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" /> <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" title="no title" charset="utf-8" /> <link rel="stylesheet" href="css/validationEngine.jquery.css" type="text/css" media="screen" title="no title" charset="utf-8" /> <link rel="stylesheet" href="css/template.css" type="text/css" media="screen" title="no title" charset="utf-8" /> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js" type="text/javascript"></script> <script type="text/javascript" src="js/cufon.js"></script> <script type="text/javascript" src="js/Prokyon.font.js"></script> <script src="js/jquery.validationEngine-en.js" type="text/javascript"></script> <script src="js/jquery.validationEngine.js" type="text/javascript"></script> <script type="text/javascript" src="https://downloads.mailchimp.com/js/jquery.validate.js"></script> <script type="text/javascript" src="https://downloads.mailchimp.com/js/jquery.form.js"></script> <script type="text/javascript" src="iepngfix_tilebg.js"></script> <script type="text/javascript"> $(document).ready(function() { $('.navup').hover(function() { $(this).addClass('navover'); }, function() { $(this).removeClass('navover'); }); }); Cufon.replace('p.nav', { textShadow: '1px 2px black', }); $(function(){ var path = location.pathname.substring(1); if ( path ) $('#nav a[href$="' + path + '"]').attr('class', 'selected'); }); </script> </head> <body> <div id="header"> <div id="headerleft"> <div><img src="images/header/spacer.gif" width="1px" height="25px" alt="#" /></div> <div id="headergreeting"><p>Welcome to Clementine and Clover!</p></div> <div id="navleft"></div> <div id="nav"> <div class="navup"><p class="nav"><a href="#">ABOUT</a></p></div> <div class="navup"><p class="nav"><a href="#">BLOG</a></p></div> <div class="navup"><p class="nav"><a href="#">FEATURED</a></p></div> <div class="navup"><p class="nav"><a href="#">CATALOG</a></p></div> <div class="navup"><p class="nav"><a href="#">ORDER INFO</a></p></div> <div class="navup"><p class="nav"><a href="#">CONTACT</a></p></div> </div> </div> <div id="headerright"> <div id="headerlogo"><a href="https://www.clementineandclover.ca/"></a></div> </div> <div class="clear"></div> </div>
index.php:
<?php /* Template Name: Homepage */?> <?php get_header(); ?> <link rel="stylesheet" href="css/styles.css" type="text/css" media="screen" /> <link rel="stylesheet" href="css/nivo-slider.css" type="text/css" media="screen" /> <script type="text/javascript" src="js/jquery.nivo.slider.pack.js"></script> <script type="text/javascript"> $(window).load(function() { $('#homepagesides').nivoSlider(); }); </script> <div id="promowrapper"> <div id="homepagesider" class="nivoSlider"> <a href="#"><img class="homepageslides" src="/images/690x290_promo1.jpg" alt="" /></a> </div> <div id="homepagepromo"> <ul> <li class="promo1"><a href="#"></a></li> <li class="promo2"><a href="#"></a></li> <li class="promo3"><a href="#"></a></li> </ul> </div> </div> <?php get_footer(); ?>
footer.php
</body> </html>
Forum: Themes and Templates
In reply to: Fatal error: Call to undefined function get_header()David,
I did install the twenty ten theme and it did not seem to make a difference it was still returning the error.In addition I tried adding the loop to the index.php file but that did not fix the error either.
I decided to remove:<?php get_header(); ?>, <?php get_footer(); ?> and everything started working fine.
Did you see my message above about running wordperss in the background and having an HTML landing page until the site is ready? It seems to me like this might be a problem because if the wordpress theme was working correctly then wouldn’t it just over-ride my html landing page?
Forum: Themes and Templates
In reply to: Fatal error: Call to undefined function get_header()The file that loades when you visit https://www.clementineandclover.ca/ is not even part of the wordpress theme.
It is a index.html file that I have in my root folder. I wanted to have something to greet visitors of the site.
That being said, it would appear that wordpress is not using the theme correctly? In the wp-admin I have logged in and created a index.php file in the theme folder. There is a page template name ‘homepage’ that is selected to be used as the static landing page. The page at https://www.clementineandclover.ca/ is not this page, it is the HTML file in the root.
Questions:
1. How can I have wordpress installed and develop the theme without interfering with the custom landing page?
2. How can I get my theme to be read correctly and working?
Forum: Themes and Templates
In reply to: Fatal error: Call to undefined function get_header()Hey there, Thanks for the quick replies!
I am using the latest version of wordpress 3.0.2
To install the theme I simply uploaded it to the themes folder. Then when I logged into wp-admin I just selected the theme and started using it.To test the index file I navigate to this page:
https://www.clementineandclover.ca/wp-content/themes/clementineandclover/index.phpThis is where I receive the error. I generally use firebug to debug my sites but am not having any luck with this one as it just returns empty head and body tags:(
Re: adaptris:
Where did you see that I was missing files? All I get are the empty body tags.Question:
Should it be possible to have wordpress installed and have a seperate landing page to greet visitors in the mean time? If so am I going the right route to navigate directly to the theme folder’s index file for test?Hope this gives you an idea of what I’m up against.
Looking forward to your replies!Forum: Fixing WordPress
In reply to: using $myposts to fetch posts from a specific catagoryThanks for posting the codex…unfortunately I have already read this which lead me to posting on the forum.
I am wondering why category is supposed to be an integer when you specify anything to be the category name(in the WP user interface). Do I really need to name all my categories numerically?
I am guessing that I am getting something confused between the category name and the category ID…. Anyone have an idea?
Thanks in advance:)
Forum: Fixing WordPress
In reply to: How Display Content on a Custom PageThanks alot!
Forum: Fixing WordPress
In reply to: How Display Content on a Custom PageI tried running and if loop with no success:( The if loop executes, but it doesn’t load the content still…
<?php get_header();?> <?php include (TEMPLATEPATH . '/sbdaytrips.php');?> <?php if(have_posts()) :?> <div class="post"> <div class="entry"> <?php the_content(); ?> </div> </div> <?php endif; ?> <?php get_footer(); ?>
It seems kinda sloppy to have to run an if loop just to do this, does anyone else have a better idea?
Forum: Fixing WordPress
In reply to: How Display Content on a Custom Pagehmm thanks for the heads up.
Is there a way to start a look without looking for posts?
There are not any posts on this website… and without posts it just continues to look for them.Forum: Themes and Templates
In reply to: Internet Explorer <—Help please:(thanks guys, I’ll check this out with the Validator and see how much of it I can clean up. Its tricky because I’m not sure which is the best way to include CSS for this kind of website where separate files are accessed throughout(headers footers and sidebars).
Should everything generally be called in the header as it is always loaded first? What about when I am using jquery on some pages? should I just call the Jquery commands on the pages that need them? If I do this I wont be able to include them in the page head because they all build dynamically from the header.
Cheers, if anyone has any advice on what is the best way to build the architecture of Custom WordPress Sites that would be awesome.
Forum: Themes and Templates
In reply to: Internet Explorer <—Help please:(