Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
I think this theme does support Child Themes, what specifically doesn’t work in yours?
I’m not having any luck, and I have created several child themes before for other themes, which is why I am confused by this one!
For example, I downloaded the sidebar.php file so that I could edit the Meta widget (so that it only displays the login/logout link), made my change, but it would not work. I also downloaded the footer.php file, made some changes, but it would not work. I then downloaded the page.php file, made some changes, but it would not work. All of my changed files were uploaded to a folder called “catch-box-child”, since the original theme’s folder is called “catch-box”.
I obviously don’t want to edit the original theme’s files, for fear of breaking the theme if there is a future update and losing all of my edits. I need to be able to edit the PHP and CSS files. I am stumped… Any ideas?
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
So you were able to get the Child Theme activated in the dashboard first?
From the appearance/themes screen, it tells me that “catch-box-child” is available but broken because the template is missing. But this doesn’t make sense because I have uploaded copies of the original page files to the “catch-box-child” folder, and then my edited version of the page files.
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Which files did you copy and upload in your “catch-box-child” folder?
Also could you copy all of the code from your Child Theme style.css file and paste it into a PasteBin page: http://pastebin.com – and then link us that?
The files currently uploaded in “catch-box-child” folder are:
images/search.png
images/social-profiles.png
footer.php
header.php
page-blog.php (no edits)
page-client-dashboard.php (new template page based off of page.php)
page-disable-sidebar.php (no edits)
page-fullwidth.php (no edits)
page-onecolumn.php (no edits)
page.php (no edits)
sidebar.php (edited to only display the login/logout link int he Meta widget)
style.css (no edits)
The style.css, unedited from the original file, in the “catch-box-child” folder is here:
http://pastebin.com/t7TzRnvr
Thank you!
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
The Child Theme style.css file should be something like this:
/*
Theme Name: Catch Box child
Template: catch-box
*/
@import url("../catch-box/style.css");
/* =Theme customization starts here
-------------------------------------------------------------- */
http://codex.ww.wp.xz.cn/Child_Themes#How_to_Create_a_Child_Theme
That did it, thank you!!
But it’s still giving me the same problem. When I add the wordpress login/logout code to the Main Widget or the child theme’s sidebar, it still doesn’t load on the website.
This is the code I added to a text widget in the Main Sidebar location:
<p><?php wp_loginout(); ?></p>
This is the code I modified in the sidebar.php:
<aside id="meta" class="widget">
<h3 class="widget-title"><?php _e( 'Meta', 'catchbox' ); ?></h3>
<div class="widget-content">
Welcome, [username]
<ul>
<li><?php wp_loginout(); ?></li>
</ul>
</div>
</aside>
I does support a child theme.