• I have created a twenty eleven child using the One-Click Child Theme Plug In. Here is my website: https://66.147.244.87/~peterkob.

    Most of the changes that I’ve made so far have been simply through the dashboard without going into Editor.

    However, in trying to remove the page titles from appearing in my actual page as headlines, I was directed to go to page.php to delete some code.

    Whoops. I noticed that there was a pull down menu that gave me a choice between parent and child. When I looked at the parent, there was a long list of templates of code. Under child there was virtually nothing. Do I have to copy and paste or duplicate these files individually? It appears that I have activated the plug-in. I think I made one change in the parent footer template, but such a template doesn’t even exist under childen.

    Please, what am I doing wrong?

Viewing 12 replies - 1 through 12 (of 12 total)
  • Your site appears to be using the twentyeleven theme, not a child theme

    Normally you make the child theme, upload it, and activate it from appearance->themes

    Is your child theme available there? I have no idea how that plugin you mentioned works….

    It needs to be activated. A basic child theme only needs to have style.css, no other templates. If you need to edit a template (footer.php, page.php, etc) you copy the template from the parent to the child, and then make your edits.

    Thread Starter theecoist

    (@theecoist)

    Thanks. I believe I have activated my child theme. It goes directly to 2011 Child:
    Stylesheet (style.css)

    in which there is only this code:

    /*
    Theme Name: 2011 Child
    Description: 2011 Child
    Author: admin
    Template: twentyeleven

    (optional values you can add: Theme URI, Author URI, Version)
    */

    @import url(“../twentyeleven/style.css”);

    Do I now go into the original twentyeleven style.css and copy and paste that into the child theme’s style.css and then work in that? Or is there a way to import it directly?

    Sorry I’m an idiot. I have tried readying the documentation, but it’s difficult for me, for some reason.

    YOu already are importing directly

    @import url("../twentyeleven/style.css");

    That’s what that does.

    To modify css from your child theme, you only copy over what needs changing. Or you write completely new rules in your child theme style.css.

    So if you were going to tweak the font used in 2011, you would copy this rule over from 2011 to your child theme

    body, input, textarea {
    	color: #373737;
    	font: 15px "Helvetica Neue", Helvetica, Arial, sans-serif;
    	font-weight: 300;
    	line-height: 1.625;
    }

    and then edit it in your child theme.

    However, if you were going to edit just the titles for single post views, no rule exists in 2011 for that, so you would make your own new rule

    .single .entry-title {
           font: 27px "My Super Custom Font", Arial, sans-serif;
    }

    in your child style.css

    https://vudu.me/child
    is an article I wrote about child themes, maybe it will be interesting/helpful for you?

    Thread Starter theecoist

    (@theecoist)

    I am beginning to see daylight! Thanks so much! I’ll read your article. One last question. Sometimes I read that I should be *deleting* code. Since I can’t see it in my child style.css, how can I delete something I can’t see? Or does your article have some other way of managing that, i.e., copying the code and then adding some code that says, in essence, delete this?

    It depends on what exactly is to be deleted.

    For instance, in css world, I’m not sure what you would be deleting. Everything is there for a reason. So if you want something to look different, you would copy over the rule and style it differently. There are ways to remove some styling if that is needed, but I would need to see some specifics. But normally for css, it’s all about changing

    Now, deleting may come in to play in other files. For instance you may not want something output in 2011 that is there by default. How a child theme works is that when WP loads something, it looks to your child theme for the file…. if it exists, it is used, if not, it looks to the parent theme.

    So for example, say we were removing (or adding) something from the footer. We copy 2011’s footer.php to our child theme…. now the one in the child theme gets used, so you add or remove your stuff using the copy in the child theme

    The final thing to consider is functions.php. That’s a strange file, both parent and child get loaded. So you don’t normally copy anything from the parent to the child here…. it’s a bit tougher until you understand the mechanics. In functions.php you have to use actions or filters, writing your own function to modify what exists in 2011

    Thread Starter theecoist

    (@theecoist)

    Thanks so much! I hope others find this string as enlightening as I have. I’m going to read https://vudu.me/child now. One thing I want to delete right away is the file names of menu items that appear as headings at the top of my pages. I want to use different headlines. But I’m pretty sure that I’ve seen that discussed elsewhere on this forum. So, thanks again for your help!

    Are you referring to the actual menu items, or the big bold title of each page?

    The menu items are a cinch, 2011 supports custom menus

    So you can go to appearance->menus, make a new menu and assign it to the primary position from there

    You can then drag, drop, rename, retitle, add custom links, whatever. It’s pretty simple to set up a fully custom menu

    2011 just reverts to using your page titles in the menu if you haven’t set up a custom menu

    Thread Starter theecoist

    (@theecoist)

    Actually, I have created a custom menu. I have named my homepage “Home.” However, when you call up my homepage, the word “Home” appears at the top of the page as a headline:

    https://66.147.244.87/~peterkob/

    I have experimented with other tabs, such as “Science,” and the same thing happens. I would like to use the headline function in WP to create my own headlines, or even in some cases not have a headline on the page at all. In other words, I can’t see a way to keep the page name from appearing as the headline of the page.

    Well, the page name IS the headline. It always appears at the top of the page (THis could be hidden on a case by case basis, using css if you’d like). Now, you can title your page with the name you want at the top of the page, and then create a custom menu. And rename the tab to something different.

    So when creating the page, in the title you can rtype

    Some Really Frikkin Long Page Title

    Then in the menu creator drag that page over to the menu and plop it where you’d like it. Then you could just name the tab

    Shorter Title

    And the short title would be in the menu, the long one at the top of the page

    Thread Starter theecoist

    (@theecoist)

    Okay, good to know. Thanks. Is there anyway to modify the page name as it appears on the page, tho? I’d like to center them (cause they won’t be so frikkin long), and they always appear flush left.

    Sure

    you can probably apply a text-align: center; to .page .entry-title in your child style.css

    https://vudu.me/s6
    Is a write-up I did about fonts in general, and targeting things with css

    Thread Starter theecoist

    (@theecoist)

    Thanks!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘I created a child page with One-Click Plug-In but not sure if I'm using it’ is closed to new replies.