Child Theme Confusion – Bluehost, WordPress
-
I’ve been going around and around for weeks. First, let just say that I’m a newbie, so that might explain some of my inadequacies. Secondly, I have also had a couple of small strokes, which makes actually “getting things” a little more difficult … at least in my case.
I am trying desperately to remove the dates (and “posted on”) and times from my website, since (1) it is not really relevant to the content and (2) I have enormous amounts of downtime due to medical issues.
The recommended protocol was to create a “child theme”, which from everything I read, seems like the best way to do this. HOWEVER, this is where I lost it. I’m about ready to pull my hair out!
I have created a “twentyeleven-child” folder on my desktop, where I have included a notepad file with “style.css” in it which includes:
/*
Theme Name: twentyeleven-child
Theme URI: http://helluvahealthsite.com/
Description: Twenty Eleven Child Theme
Author: my name appears here
Author URI: http://helluvahealthsite.com/
Template: twentyeleven
Version: 0.1.0
*/I did not, however, include the @import url(“../twentyeleven/style.css”); because I wanted to do the enqueue version, which as I understand, would be done by a php file. So, again using wordpad, I did a file called functions.php and put this inside:
<?php
add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
function theme_enqueue_styles() {
wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );}
?>Next, using the website instructions on Anthony Edward Baldor’s page … I went to Bluehost.com and followed the instructions step by step, except of course, the export line as stated above. When I got to the style.css file, I cut and pasted the above information into the new file in the newly created child theme folder in my bluehost themes folder … whew … and the same for the php file. I next went to my HelluvaHealthSite.com/wp-admin site and looked for the twentyeleven-child, but it did not exist. I checked my work and double checked it … it wasn’t there. So, I deleted the php folder and followed the instructions EXACTLY as per Anthony’s site (in other words, using the @import url(‘../themename/style.css’); AND after checking my wordpress file again, the child theme was there.
BUT, this is not what I want, so I didn’t activate it. I want the php file, so that I can tackle the ‘date/time’ issue. So, the problem is with the php file (as far as I can deduce anyway).First of all, does anyone know how to help. I need “step by step” or I find it overwhelmingly difficult. I also need to know … did I copy and paste the php file to the wrong place – put a separate functions.php (done in notepad)into the new twentyeleven-child theme folder, along with the style.css file. I can’t, for the life of me, figure this out … and it took me so long to do my blog, so I definitely don’t want to screw this up. I also know that this topic has been hashed over time and time again, but I just don’t get it.
I have also called Bluehost and they cannot help me unless I pay for a service …. can’t afford to do that either!! Ugh!
Sorry for the rambles, but if anyone can shed some light on this, I would be very grateful!
Sincerely,
Pala55
The topic ‘Child Theme Confusion – Bluehost, WordPress’ is closed to new replies.