Changing background in Header (php / css issue …I think)
-
I’m replicating my wordpress.com blog on wordpress.org and the template I’m using (“SUITS”) apparently isn’t coded the same – I’m having an issue making my header background solid black.
• http://honeyspidermovie.wordpress.com/film-synopsis (header is perfect)
• http://www.honeyspidermovie.com/film-synopsis (can’t make the header background solid black)I can’t get the background on the second blog link to be solid black – it makes it transparent when I add a header image and it won’t let me add a header image that’s really long. Here’s the coding…..
<?php
/**
* The Header for our theme.
*
* Displays all of the <head> section and everything up till <div id=”main”>
*
* @package Suits
* @since Suits 1.0
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset=”<?php bloginfo( ‘charset’ ); ?>”>
<meta name=”viewport” content=”width=device-width”>
<title><?php wp_title( ‘|’, true, ‘right’ ); ?></title>
<link rel=”profile” href=”http://gmpg.org/xfn/11″>
<link rel=”pingback” href=”<?php bloginfo( ‘pingback_url’ ); ?>”>
<?php wp_head(); ?>
</head><body <?php body_class(); ?>>
<div id=”page” class=”hfeed site”>
<header id=”masthead” class=”site-header” role=”banner”>
” title=”<?php echo esc_attr( get_bloginfo( ‘name’, ‘display’ ) ); ?>” rel=”home”>
<h1 class=”site-title”><?php bloginfo( ‘name’ ); ?></h1>
<h2 class=”site-description”><?php bloginfo( ‘description’ ); ?></h2>
<div id=”navbar” class=”navbar”>
<nav id=”site-navigation” class=”navigation main-navigation” role=”navigation”>
<h3 class=”menu-toggle”><?php _e( ‘Menu’, ‘suits’ ); ?></h3>
<?php wp_nav_menu( array( ‘theme_location’ => ‘primary’, ‘menu_class’ => ‘nav-menu’ ) ); ?>
<?php get_search_form(); ?>
<!– #site-navigation –><!– #masthead –>
<div id=”main” class=”site-main”>
The blog I need help with is: (visible only to logged in users)
-
Hey there,
As you seem to be quite well-versed with coding, here’s the header.php file for WordPress.com’s version of Suits. Perhaps it can help you troubleshoot things:
https://wpcom-themes.svn.automattic.com/suits/header.php
The rest of the template files are also available here:
-
Haha, actually I have no idea how to code php or css – I just copied and pasted the coding from the WordPress.org header script.
I replaced the php with the coding you posted up there and it messed stuff up even more. I have no idea what to do.
-
Alright, no problem :)
Here’s my suggestion:
1) Revert back the changes if you haven’t. Don’t use the SVN code.
2) Re-post your question to the WordPress.org support forum http://wordpress.org/support . A lot of people there will be able to help you better with PHP coding.
3) Add the links I mentioned above to your WordPress.org forum post to help people there to solve this issue.
- The topic ‘Changing background in Header (php / css issue …I think)’ is closed to new replies.