I’m using the Prana theme, and because I plan on customizing a bit, I created a child theme for it, except now, I can only view the style.css when I go to the editor and the css isn’t there and I would like to use a footer menu. I was told the best way to do that was to add go into the footer.php, but I don’t have one. How do I create one? This is my site: http://casllcky.com/ and I’m looking to have a footer like this one with a privacy statement as well as having the angie’s list and bbb logos etc.
Update: I put it in the parent theme, but I would rather the code be in the child’s theme I created.
You should NOT modify the parent theme at all. To change the footer.php file, you need to make a copy of the parent theme footer.php file and put that file in the child theme and make the changes there.
But how do I that? I created a child’s theme using the “one-click” child’s theme plugin. And in the editor, there is no option for a footer.php, only the style.css, and that file doesn’t even contain any .css code? Is my child theme wrong? If you go to my site, I want to put the BBB picture/link in my child’s theme footer but there is no option for that?
First, you have to fix this error – http://validator.w3.org/check?uri=http%3A%2F%2Fcasllcky.com%2F&charset=%28detect+automatically%29&doctype=Inline&group=0 – there is an extra
<body>tag in your theme
Download a copy of the parent theme footer.php file to your computer with FTP or through your host admin panel.
Upload this footer.php with FTP into your child theme directory (folder). You should now see this in Appearance > Editor in your child theme.
Copy the footer.php code and post it in this thread, wrapping it in ‘code’ tags (select the code and click the code button above the text area)
The code to call the menu is –
<?php wp_nav_menu( array('menu' => 'NAME OF YOUR MENU GOES HERE' )); ?>
– but it may have to go inside something else inside the footer.
only the style.css, and that file doesn’t even contain any .css code?
The child theme style.css file is supposed to contain ONLY changes you make – you can use a browser tool like Firebug to find the CSS you want to change and then COPY that bit to the child theme and make the changes there.
When I put my changes in to my child’s theme CSS it doesn’t edit the part I want, I’m specifically looking to edit the footer, when I tried to put it in on just my child’s them it didn’t work, nothing happened to my page.
If you are trying to modify something in the footer.php file, you have to do as I posted above – you cannot put anything EXCEPT CSS code in the CSS file.
<body> <div class="container_16"> <?php do_action( 'prana_footer' ); ?> </div> </div> </div> <!-- end .wrapper --> <?php wp_footer(); ?> </body> </html>
Where do I put the code you included? Sorry, I am semi-new to wordpress.
Because of this –
<?php do_action( 'prana_footer' ); ?>
– it seems that the footer is created through the functions file or loop file of the parent theme. The modifications necessary would be too extensive to relate here.
I would look through the WordPress Themes and find one which has a footer with the ability to add widgets to it. There are plenty in there.
yes, WPyogi, maybe I am not fully understanding. I created my child’s theme and understand that is where I make my CSS changes, but I do not know how to get my parent footer copied. It was to my understanding that was what the plugin did for me, I do not have these files on my computer because they must be edited through GoDaddy.com, however, when I try to copy the footer.php there into the child’s theme style.css folder nothing happens. This does nothing, could my editing problem be a problem because I am using GoDaddy as my web site host. With a child theme am I supposed to have access to all the parent folders like I would modifying the parent theme but instead i’m modifying the child theme? When I go to the editor for my child theme the only option is my style.css and a blank box.
ModularBase, do you have any themes you would recommenced to do that with?
I try to copy the footer.php there into the child’s theme style.css folder nothing happens.
No, because that’s not where footer.php code goes. If you have FTP access set up, you need to use that to upload a copy of the footer.php file to the child theme folder. So you will have:
wp-content themes prana pranachild style.css footer.php
And then modify the footer.php file. This is the current footer.php code:
<div id="footer"> <div class="container_16"> <?php do_action( 'prana_footer' ); ?> </div> </div> </div> <!-- end .wrapper --> <?php wp_footer(); ?> </body> </html>
It IS possible to modify that file – start by using this for the footer.php file in your child theme:
<div id="footer"> <div class="container_16"> <div id="myfooter"> PUT YOUR CODE HERE </div> </div> </div> </div> <!-- end .wrapper --> <?php wp_footer(); ?> </body> </html>
Thank you, I had to go through GoDaddy and it was a round-about process to copy the footer.php tot he child theme folder, i edited the code and put mine in where you suggested so it looks like this.
<body> <div class="container_16"> <div id="myfooter"> <a href="http://www.bbb.org/louisville/Business-Reviews/construction-management/construction-administrative-services-in-louisville-ky-159136586/bbb-accreditation"><img src="http://hartlandbuilders.com/wp-content/uploads/2013/06/logo-BBB-Accredited1.jpg" width="195" height="70" alt="bbb" longdesc="http://hartlandbuilders.com/wp-content/uploads/2013/06/logo-BBB-Accredited1.jpg" /></a> </div> </div> </div> </div> <!-- end .wrapper --> <?php wp_footer(); ?> </body> </html>
But once I hit update file, nothing happens on my site? I’m editing the footer.php in my child’s theme editor on wordpress after I made a copy of the footer.php from my parent theme. Is my code wrong?
- The topic ‘Prana child theme footer problem’ is closed to new replies.