Snaacky
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Newer entries bar brokenThanks for pointing on the errors from w3, I played with some things earlier and forgot to re-validate it.
I just needed to move a div tags ending down a little further and it fixed my error.
Forum: Themes and Templates
In reply to: Calling WordPress PHP calls breaks templateI’m not trying to intergrate WordPress on to the rest of my PHP pages. I’m saying that the PHP page that WordPress uses for the header (header.php) located at /wp-content/themes/leakcraft/header.php is not using WordPress PHP. It shouldn’t need the include since it’s a WordPress template in the WordPress directory, should it?
Forum: Themes and Templates
In reply to: Calling WordPress PHP calls breaks templateAlright, so I started working on putting the files that build up my template into the main folder. However the PHP code still doesn’t work properly on WordPress.
The problem with this is that I use Twitter Bootstrap for the foundation of my website. I cannot use
<link rel="stylesheet" href="<?php get_template_directory(); ?>/css/bootstrap.min.css">
to call bootstrap. My templates PHP is still broken, even after moving my source files into my WordPress template directory.Forum: Themes and Templates
In reply to: Calling WordPress PHP calls breaks templateIt’s being called in index.php via
<?php get_header(); ?>
. Also, the PHP doesn’t work regardless. For example if I use<?php $blog_title = get_bloginfo('name'); ?>
, it still won’t work properly.Also, what do you mean by it’s against the coding practices? If it provides any more knowledge, I run the CSS out of my main directory because the only thing we use WordPress for is a news blog. So we share the CSS because having duplicated CSS would be pointless and we’d have to push out two file updates for each small CSS update.
The rest of my site is ran off of PHP files (non-WordPress).
However since this is on a WordPress header, WordPress functions should function properly? I’m not sure why they’re not.
Forum: Themes and Templates
In reply to: Calling WordPress PHP calls breaks templateError log:
[Sun Apr 21 03:00:42 2013] [error] [client xxxxxxxx] PHP Fatal error: Call to undefined function get_bloginfo() in /var/www/html/leakcraft.com/news/wp-content/themes/leakcraft/header.php on line 45, referer: https://leakcraft.com/offline
And here is my code for header.php.
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title>LeakCraft</title> <meta name="description" content=""> <meta name="viewport" content="width=device-width"> <link rel="stylesheet" href="/css/bootstrap.min.css"> <link rel="stylesheet" href="/css/font-awesome.css"> <link rel="stylesheet" href="/css/just-vector.css"> <link rel="stylesheet" href="/css/style.css"> <!--[if lt IE 9]> <link rel="stylesheet" href="css/font-awesome-ie7.css"> <script src="js/html5-3.6-respond-1.1.0.min.js"></script> <![endif]--> </head> <body> <div class="navbar navbar-inverse navbar-fixed-top"> <div class="navbar-inner"> <div class="container"> <a class="brand" href="/">LeakCraft</a> <div class="nav-collapse collapse"> <ul class="nav"> <li><a href="/">Home</a></li> <li><a href="/bans">Bans</a></li> <li><a href="/map">Map</a></li> <li><a href="/news/">News</a></li> <li><a href="/rules">Rules</a></li> <li class="active"><a href="/staff">Staff</a></li> <li><a href="https://www.twitter.com/leakcraft">Twitter</a></li> <li><a href="/upgrade">Upgrade</a></li> <li><a href="/vote">Vote</a></li> </ul> </div><!--/.nav-collapse --> </div> </div> <div class="drop"> <div class="sub-navbar"> <div class="container"> <p><i class="icon icon-user"></i><?php $blog_title = get_bloginfo(); ?></p> </div> </div> </div> </div>
Any ideas?
EDIT: For the record, anywhere I put the code it still breaks.
Forum: Themes and Templates
In reply to: WordPress causing template issues on ChromeAha! Fixed my issue. For some odd reason, I made the CSS import on both
header.php
andindex.php
. So that was the reason why it was not at line 1. The issue is now fixed. Thanks for being such a great helper!Forum: Themes and Templates
In reply to: WordPress causing template issues on ChromeAdded
<!DOCTYPE html>
to the top of my header.php file. The issue still is occurring.Forum: Themes and Templates
In reply to: WordPress causing template issues on ChromeI removed all instances of min-height: 100% and height: 100% in style.css, and it didn’t fix anything. The site still remains the same. I however did notice using Inspect Element on Chrome that max-height: 100% exists in bootstrap.min.css.
This is what Chrome says exists on that line.
.container{min-height:100%; margin-right:auto;margin-left:auto;*zoom:1;}.container:before,.container:after{display:table;content:"";line-height:0;}
This is what actually exists on that line.
.container{margin-right:auto;margin-left:auto;}.container:before,.container:after{display:table;content:"";line-height:0;}
EDIT: I just tried replacing boostrap.min.css. The error still occurs, and the line still appears on Chrome’s ‘Inspect Element’ however the code still doesn’t exist in the actual file.