problem adding child theme AND trying the blank page template
-
Hi there,
I wanted to add a blank page to my site, or at least to change the header to a larger one (900×399), and I found a few pages on the forum explaining each. I tried to make a child theme, but it’s not showing up in my themes, though the graphene-child folder is in my themes folder, and has a style.css.
down below my themes, it has a nameless one that says it needs a template, so I added the template-onecolumn.php to the child folder, in case that was the problem. still no go. then I found a reference to your changing the header size elsewhere, on the functions. php, and I added a functions. php (which only has this:
<?php
/**
* Modify the height of the header image
*/
function graphene_modify_header_height(){
return 399;
}
add_filter('graphene_header_image_height', 'graphene_modify_header_height');
?>but still, the child theme is not showing up so that I can activate it. any ideas? I’m agnostic about whether I start with a blank page and build from there, or start with a graphene page with a bigger header….whichever is easier, works.
the page where I tried to use the blank page template instead of the child theme is here: (password joe) link: http://350seattle.org/?page_id=303
thank you!
ps the code for my blank page template is this (cobbled together from another post of yours):
<?php
/**
Template Name: Page with background only
*/
?>
<html>
<head>
<style type="text/css">
body { background-color: #ffffff) }
#page-content { width: 960px; margin: 20px auto; }
#page-content p { font-size: 14px; font-family: arial; line-height: 18px; text-align: justify; }
</style>
<?php wp_head(); ?>
</head>
<body>
<?php while (have_posts()) : the_post(); ?>
<div id="page-content">
<?php the_content(); endwhile; ?>
</div>
</body>
</html>it comes out black, despite the ffffff.
Mod
You can change the header height via the theme options. There is no need to write a separate function for this.
What exactly do you want a blank page for? I don’t understand your reasoning for this.
Hi there,
I need to change the header (and header size) ONLY on that one page: http://350seattle.org/?page_id=303 (not on the rest of 350Seattle.org).
I wasn’t sure how that image would look with the rest of my graphene options (menu, etc.), so I thought that IF IT WERE EASY I’d try to do simply a plain page, no theme (I was a web designer back in the days of writing code, so it’s very weird and frustrating to me that this is so hard). I suspect that in the future, too, we’d love that option (that’s why I thought I’d try to make the child page work)….but for now, all I really want is to have a separate, much taller header for that page.
thanks.
Emily
ps as I look at this more, I think I’d really just like to get the blank page template to work (rather than adding a child theme). it seems simpler, if I can get it not to be black. what do I need to have in there, to have it give me a blank (but not black) page that I can then add my big header to, and all my text…..?
thanks!
Mod
Quote:I need to change the header (and header size) ONLY on that one pageTry using this custom css:
.page-id-303 #header {
height: 400px;
}If you try that on a different page you’ll need to change the page id to reflect that of the new page.
Viewing 6 posts - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.