There are a few things to consider.
Is the blog one gonna replace the main one, or it will be only a blog part ?
I ask because if you are trying to replicate the whole thing, Twentyeleven is a wrong choice, because it’s responsive, it won’t play well with the effect like your main siet. And Site Title is not page(entry) title.
But if you only want a blog as part of the site and only want to design it to kind of blend in with the main site, then just replace this line ( a copy over of header.php in child theme)
http://themes.trac.ww.wp.xz.cn/browser/twentyeleven/1.5/header.php#L74
with this
<h1 id="site-title"><span><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><span>01.</span> srs blog</a></span></h1>
and put this in child theme stylesheet.
#site-title a { color: blue; text-transform: uppercase; }
#site-title a span { color: red; }
On a separate note, your child theme stylesheet now is having a duplicate set of parent style in it, that’s wrong. There should contain only changes down under @import line, not the whole copy over of parent style.
Thanks very much for your assistance. That did exactly what I wanted. In answer to the items you brought up, I’m actually planning on using the loop to embed this into my website, rather than replicating the website. The goal is to put this inside a template page. Do you still feel that this is not a good choice? I am open to suggestions on how to proceed.
As far as the stylesheet goes, I just began and just copied everything over because there will obviously be a lot of changes to it over the course of this development. I will discard unnecessary replicated items. Is it wrong to go about that way? This is the first time I’ve done a child theme so it is a learning process.
Thank you very much for your help.
It’s really up to you whether to integrate the blog into the main site. There are a few ways to do that but WP is good enough to do the whole thing together, so I see no reason why not have it together.
IMHO, the effect on your current site is not playing well with today web. With the rise of mobile and tablet, users swipe web page easily, easier than clicking on some buttons for the effect on the page.
Regarding the copy over of parent style, if you are certain on the amount of modification, feel free to do so, but delete the @import line.
- With
@import line, don’t include a copy over.
- With a copy over, don’t include
@import.
If you decide to not use @import, when theme updates, you won’t get update on style.css, so you have to manually check whether there is any changes in CSS that matters and make that changes yourself.
Thanks very much for your help..you are a star 🙂
Best,
Sarah