Jump to content
Sign in to follow this  
musicianwages

Error when customizing child theme

Recommended Posts

musicianwages

I've updated to v1.3.2 and I'm trying to figure out how to add templates to the child theme to override core files. I want to override: pagelinespro>section>wp>section.postauthor.php So I uploaded the original section.postauthor.php file to the base child theme and renamed it: pagelinesbase>template.postauthor.php I get the following error: Fatal error: Cannot redeclare class PageLinesPostAuthor in /home/content/b/l/o/blogdave/html/wp-content/themes/platformbase/template.postauthor.php on line 53 I'm sure I'm following the instructions given in the new documentation. What am I doing wrong?

Share this post


Link to post
Share on other sites
cmunns

when you created the template.postauthor.php did you copy the whole thing or just what was between the function section_template(){ }

Share this post


Link to post
Share on other sites
musicianwages

I copied the whole thing. I'll try just what's between the function section_template(){ } Thanks!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×