• 0

DMS Child Theme: Conflicting Instructions


Question

Posted · Report post

My issue is that, even though the DMS child theme seems to be working okay, I'm getting this message at Appearance > Themes:

This child theme requires its parent theme, PageLines DMS.

The parent theme is the default DMS theme at wp-content/themes/dms. The child theme is a copy of the parent "dms" folder, at wp-content/themes/dms-child, with the following style.css content:

/*
Theme Name: PageLines DMS Child
Theme URI: http://www.pagelines.com/tour
Description: Child theme for PageLines DMS
Author: PageLines
Author URI: http://www.pagelines.com/
Template:  dms
Version: 1374175685
*/
@import url("../dms/style.css");

According to my reading of http://codex.wordpress.org/Child_Themes, the line

Template:  dms

in the DMS child theme's style.css file is correct, as it's supposed to reflect the folder in which the parent theme is located. (Do I understand that correctly?)

 

However, Pageline's documentation at http://docs.pagelines.com/developer/child-themes says that the line should be

Template: pagelines

Changing the DMS child style.css line "Template: dms" to "Template: pagelines" breaks the DMS child theme. (I recall that when in beta, DMS was in the directory "pagelines" but was changed shortly before launch to the directory "dms," so I'm guessing that the Pagelines documentation at http://docs.pagelines.com/developer/child-themes never got updated.)

 

Anyway, I must be missing something simple, but so far, I haven't figured this out. What am I doing wrong? This is my first child theme, and I'm anxious to get going. :)

 

Steve

 

P.S. I actually posted this to a Pagelines forum, but for the life of me, I can't find the posting and this forum looks quite different. So I'm re-posting here. My apologies in advance if I seem to be double-posting.

Share this post


Link to post
Share on other sites

21 answers to this question

  • 0

Posted · Report post

Hey there!  Glad you were able to find the child theme.  Some of the documentation was ported from v2.x so it's a little confusing.  Looks like you found a spot where it's still the old language.  You are correct that the child theme should say Template: dms and not pagelines.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hi Steve,

 

The docs are brand new and there may be some errors, such as references to /pagelines folders.  I'll shoot that info to our docs specialist.  Meanwhile, /dms is the proper location.

 

No worries about double posting right now.  The forums have just been reinstated after several days of unfortunate downtime.  They're improving though.  All will be right in a few days.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

James and One Smart Egg,

 

Thanks for confirming that "Template: dms" is correct. That's helpful.

 

Still, my question remains. I'm getting "This child theme requires its parent theme, PageLines DMS." Does this mean I did something wrong? If so, what?

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

I guess we wound up with two topics under my thread. Is anyone else trying to just create a child theme from the default DMS theme? I'm trying to understand why I get that message, when I've done everything according to the DMS documentation (with the exception that I mentioned above).

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Nick, I'm going to give your child theme a whirl--I'm sure you wouldn't steer me wrong. I'll report back.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Nick, thank you for contributing the child theme. I've installed it and it's working. However, I still get:

 

This child theme requires its parent theme, PageLines DMS.

 

 

How come?

 

Steve

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

I'm guessing that

 

This child theme requires its parent theme, PageLines DMS.

 

 

is actually not an error message, because when I remove the parent theme directory (/dms), it breaks WP. So obviously Nick's theme is finding the parent theme in /dms just fine.

 

Can someone just tell me if

 

This child theme requires its parent theme, PageLines DMS.

 

 

is supposed to show up or not in the Themes panel for a valid child theme? I'm new to WordPress and cannot find a thing on this despite extensive search and this thread.

 

Thanks!

 

Steve

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

I literally used this 45 minutes ago so you must be doing something wrong. Do you install the theme into the wp-content/themes directory?

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Yes, it's in the wp-content/themes directory.

 

Can someone confirm that with a successfully created DMS child theme, the message "This child theme requires its parent theme, PageLines DMS" is an error message, or just a message that appears with all child themes? My child theme is working just fine, and removing the parent theme breaks WordPress, leading me to believe that it's not an error message. (I keep asking this, I know, but I have no way of knowing unless someone actually tells me--it's not covered in the documentation.)

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

I was having an issue with the child theme earlier as well. It wouldn't register the changes I was making to the template. 

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Interesting--now you make me wonder if, when I start modifying the child theme, I'll have the same problem. Hope not!

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

My colleagues use these as well. No issues. No notifications saying it has to have it's parent theme. And like I said, I LITERALLY downloaded the same file, and used it as a theme I" working on. There is NOTHING else you have to do. DO NOT put that @import thing in the style.css you do not need it.

 

Do you put the file into the themes directory? Show me a screenshot of the theme in the right place, then show me  a screenshot of the top of the CSS file.

 

P.S 0 PLEASE tell me you don' have this in your css file lol

@import url("../dms/style.css");

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

yodarocks in my opinion the line "... requires a parent theme" is default, when using a child theme.

however, the "dms-child" folder in your video does not contain the regular base theme files, provided by pagelines.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

perininero, that's helpful!

 

I'll revisit the article at pagelines.com that explains how to create a DMS child theme, and will make sure it has the correct files.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hi,

 

The Template: pagelines was a mistake on my part in the doc instructions. Which I will update ASAP, also not sure where you have got these @improt instructions from ?

LIke Nick suggested, just add your custom CSS to a style.less file, which our docs already have instructions for.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Wonderful!

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