modifying my child theme
-
I am a beginner to wordpress and I am trying to use a child theme to get my pages like I want them. In the “music” tab of my wordpress site you can see my original webpage design that I am now trying to emulate. (the home/forum buttons will take you away from the site but the other buttons are functional) I decided to use wordpress because I needed the comment/user registration functions.
I am working on my child theme now and it is currently activated. I have worked through the entire documentation page on child themes. The parent theme is “twenty eleven”. I don’t really understand why we are recommended to use child themes rather than just using the editor to modify the parent theme (twenty eleven in my case). I have added a style.css file which seems fine. The functions.php file behaved wierd though.
It contains:
<?php function favicon_link() { echo '<link rel="shortcut icon" type="image/x-icon" href="/wakawaka.ico" />' . "\n"; } add_action('wp_head', 'favicon_link');
without the php opening tag (like the example in the documentation) the actual code was in the header of my website.
With a php closing tag my website is broken.
By adding an opening <?php tag it seems to be working fine.
I hope this is normal, to use an opening tag at the beginning of my functions.php file.
Most importantly, when using a “parent” theme, I have access to header/footer/index and so on in the theme editor… with my child theme I only have access to the style.css and functions.php files. Do I just copy/paste the entire “twenty eleven” themes folder inside my child theme so that I can start editing the header/footer in the way I want it?
I don’t understand why a child theme is even necessary, but I realise I must be overlooking something. Editing the twenty eleven theme directly would have been quite intuitive by comparison
Qs
1) Is adding the php opening tag “<?php” to my functions.php file normal? I am curious because it wasn’t in the documentation yet it was necessary for me
2) Do I copy/paste the twentyeleven theme content into my child themes folder?
- The topic ‘modifying my child theme’ is closed to new replies.