footer text code
-
If I were to enter the following code into the footer.php , in order to add a copyright line, how could I ensure this is centered? The text is aligned to the left and is not centered. The code I found is: <p>Copyright © 2016 · All Rights Reserved · Your Website</p>
I did try to add a footer text but now I have a line under that footer due to ccs code I added to remove the boxes around my widget titles, so I would like to remove the footer widget and just use the above noted code. Hope this makes sense. My site is not yet active yet.
Thank you!
-
Hello!
You can add a class to the p tag, like so
<p class="copy-text">Copyright © 2016 · All Rights Reserved · Your Website</p>
then under Appearance > Customize > Additional CSS you can paste this in
.copy-text {text-align: center;}
this will make your copyright text centered.My suggestion would be to use a child theme, copy the footer.php file there and then make changes to it so you’ll be able to update the parent theme without losing any changes. More info about child themes here https://www.cssigniter.com/ignite/beginners-guide-child-themes/
Thank you. In the creation of the child theme, when you say “Inside the child theme’s folder we will place our two files. First, the style.css file. This needs to …”, am I to copy and paste this folder from the parent olsen file to the new child folder, or am I to cut and paste this folder from the parent olsen to the child olsen folder?
Thank you
Hi there,
you dont need to copy(not cut) only the files you want to change to your child folder and not all parent theme files. WordPress will override the parent theme files that finds in your child folder.Thank you. Should I also add all the codes I’ve entered into the ‘additional css’ section and ‘add custom css’ to my child-theme? If so where would I add these/what folder would I need to create to add these codes to? I wouldn’t want to risk loosing these should I update the parent olsen-light theme.
Thanks
I’ve created the child theme an now i’m getting the following error msg when I try to add the child theme: “Template is missing. Standalone themes need to have a index.php template file. Child themes need to have a Template header in the style.css stylesheet.”
I added the style.css and footer.php folders to my child theme. The code in the child style.css folder is:
Theme Name: Olsen Light Child
Theme URI: https://www.cssigniter.com/ignite/themes/olsen-light-child/
Author: CSSIgniter
Author URI: https://www.cssigniter.com
Description: Blogging theme for WordPress
Version: 1.0.3
Tags: white, two-columns, full-width-template, right-sidebar, fixed-layout, responsive-layout, custom-menu, featured-images, microformats, theme-options, threaded-comments, translation-ready, photoblogging
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: olsen-light-child
Domain Path: /languages
*/Originally it said olsen-light and i changed it to olsen-light-child.
What can i do to fix this?
Hi there,
the format in you child theme stylesheet should be like this/* Theme Name: Olsen Child Theme URI: https://www.cssigniter.com/ignite/themes/olsen-child Author: CSSIgniter Author URI: https://www.cssigniter.com Description: Child theme for the Olsen WordPress theme Version: 1.0.0 Template: olsen License: GNU General Public License v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Text Domain: olsen-child Domain Path: /languages */where in the Template:olsen you will replace “olsen” with your parent theme folder name.
Let me know if you resolve this.
Thank you, that did work. I have added all the codes from the ‘additional css’ section and ‘add custom css’ that are in my olsen-light theme to the child style.css folder – is this correct/okay for me to continue doing as I make changes to my site?
The one thing I am noticing now however is that my sidebar widgets are not formatted the same as when my olsen-light theme is activated? What can I do to restore my side bar/side widgets to look the exact same as in olsen-light?
Lastly I also have a footer.php folder in my child theme, however the code I’ve entered for a copyright footer is not appearing. The code I have entered in my footer.php folder in the child theme is: <p class=”copy-text”>Copyright © 2016 · All Rights Reserved · Your Website</p> When I place this into the olsen-light footer.php it works. What can I do?
By the way the only folders/files I have in my child theme are sytle.css and footer.php. Are there others I need to add?
Thanks
Hi there,
yes transferring your custom css is the correct way.
Now if you experience problems in your child theme make sure the files there are not missing any closing tags and they dont have any syntax errors. Can you provide a URL with you child enabled so I can have a closer look?My site is under construction….but I think I fixed it. I copied the code from olsen-light footer.php to the child footer.php and added the additional copyright code at the very bottom/end of the page and my footer now looks the way I want it to.
One final question – do I need to add any other folders to my child theme such as functions.php or anything? Right now I only have sytle.css and footer.php. folders/files in my child theme.
Hi there,
Glad you worked this out!
No you dont need to add anything else unless it is needed.Thank you very much!
You are welcome!
The topic ‘footer text code’ is closed to new replies.
