allforjc2
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How do I get my functions.php & header.php into my Child Theme?That sounds great.
Thank you, Thank you, Thank you for your help. Like I said before, i’ve been trying to figure this out for weeks and your the first person to make it sound like English for me.
Have a great night!!
Forum: Fixing WordPress
In reply to: How do I get my functions.php & header.php into my Child Theme?Do you think i need the header.php file?
Forum: Fixing WordPress
In reply to: How do I get my functions.php & header.php into my Child Theme?It worked! Right now it is showing under Themes-Editor Templates, the style.css, functions.php and header.php
Forum: Fixing WordPress
In reply to: How do I get my functions.php & header.php into my Child Theme?Ok, so basically I’m going to go in and add a comment to functions.php and see what that does.
The custom logo – My theme actually let me bring a custom .jpg photo into the header. Actually it replaced the Site Title. I have that Firebug from Firefox (still very confusing) and i figured out what element Site Title was and i replaced it with the photo then pasted into my style.css file and it works fine. Maybe i don’t need the header.php file??
I’m going to add the comment….
Forum: Fixing WordPress
In reply to: How do I get my functions.php & header.php into my Child Theme?Originally I was trying to put a Widget in, and the widget source said to put it in my functions.php. Like i said, i’m beginner on this. I don’t know if i need the functions.php or the header.php. Only reason for header.php was because i was going to use a custom logo and thought i needed it to do that…
and i don’t know how to write a comment in there. Doesn’t it need some kind of characters? (*/)
Forum: Fixing WordPress
In reply to: How do I get my functions.php & header.php into my Child Theme?This is all that is in the Child Theme functions.php
functions.php
PHP script text
<?phpForum: Fixing WordPress
In reply to: How do I get my functions.php & header.php into my Child Theme?Hi,
Sorry i had to run my son down the street.
Are you referring to the code at my host server? Because my themes-editor won’t let me in.Forum: Fixing WordPress
In reply to: How do I get my functions.php & header.php into my Child Theme?Well, i must have done something wrong. It all seems to be right, but i am getting this error message and it won’t let me get to my site.
Parse error: syntax error, unexpected $end in /home/allforjc/public_html/wp-content/themes/slidingdoorchild/functions.php on line 1
A friend said it was probably because you can’t have the same names as the parent. I tried adding a letter before the name (ie. cfunctions.php) and it lets me in to themes-editor and shows both files. Not sure if they actually work though.
Any suggestions?
Forum: Fixing WordPress
In reply to: How do I get my functions.php & header.php into my Child Theme?Thank you Michael.
I’ve been trying to figure this out for weeks! I’ve been so confused and frustrated! I’m getting it because you are speaking nice clear directions. Thank you for that.
I’ll give it a go…
Forum: Fixing WordPress
In reply to: How do I get my functions.php & header.php into my Child Theme?Ok, sorry, like i said i’m very beginner.
So, functions.php – I go into my Child Theme folder and create a completely blank file named “functions.php” the same as its parent – no different name like the Child Theme needed when i did style.css. This file sits right alongside my style.css
header.php – I can just copy and paste original file into Child Theme folder, and it sits right alongside style.css and functions.php.
I’m putting this in baby terms so i get it. : )
So then is this similar to the Hierarchy rule that i’m hearing, where the system looks to the Child Theme first?
Forum: Fixing WordPress
In reply to: How do I get my functions.php & header.php into my Child Theme?Hi Michael,
Thank you for your reply.Do i actually copy and paste all of the code and everything from the original parent functions.php and add a file to Child Theme folder or is there some type of import rule like there was with the style.css?
Forum: Fixing WordPress
In reply to: functions.php will not work with child themeHi again,
I don’t think i am in the right forum. You have the topic, but i am not having the same problem. I am going to post in the “How to” forum.Thanks!!
Forum: Fixing WordPress
In reply to: functions.php will not work with child themeHi,
I am very, very beginner on WordPress themes or codes or anything.I’m using Sliding Door theme. I saw that you should create a Child Theme (style.css) so i did, and it seems to be working fine. I want to add a widget to my sidebar and the instructions (from the widget source) said to add their code to my functions.php. I am also going to use a custom logo, so thinking I also need to bring my header.php into my child theme?? I’m clueless and just don’t want to lose my changes when WP updates, as everyone says i will.
Chip, you said the following above:
Start with a blank – or even a nonexistent – functions.php file in the Child Theme. You may or may not even need it; but start there, and make sure all of your style and template changes are working. Only then should you even worry about any functional changes you want to make.You also said to “make sure all of your style and template changes are working.”
I’m pretty sure my style.css is working but what are the “templates” you refer to?Thank you in advance for your help.