Jump to content
yodarocks

DMS Child Theme: Conflicting Instructions

Recommended Posts

yodarocks    0
yodarocks

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
James Giroux+    2
James Giroux

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.


James Giroux, CEO
Groundwork

Share this post


Link to post
Share on other sites
Rob    547
Rob

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.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
yodarocks    0
yodarocks

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
beardedavenger    158
beardedavenger

I have updated DMS base products for free here:

http://pagelinesdevcamp.com/base-products/

 

Also, DO NOT use that import. create a style.less file and that will automatically load.

  • Like 1

Something big is coming for DMS + photographers.

http://fotostheme.com

 

Nick Haskins & CO - New home for all of my PageLines Store products! 

http://nickhaskins.co

 

Better DMS - News, Tutorials, and Tips

http://betterdms.com

 

Share this post


Link to post
Share on other sites
yodarocks    0
yodarocks

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
yodarocks    0
yodarocks

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
yodarocks    0
yodarocks

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
yodarocks    0
yodarocks

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
beardedavenger    158
beardedavenger

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?


Something big is coming for DMS + photographers.

http://fotostheme.com

 

Nick Haskins & CO - New home for all of my PageLines Store products! 

http://nickhaskins.co

 

Better DMS - News, Tutorials, and Tips

http://betterdms.com

 

Share this post


Link to post
Share on other sites
yodarocks    0
yodarocks

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
radroz    10
radroz

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
yodarocks    0
yodarocks

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
beardedavenger    158
beardedavenger

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");


Something big is coming for DMS + photographers.

http://fotostheme.com

 

Nick Haskins & CO - New home for all of my PageLines Store products! 

http://nickhaskins.co

 

Better DMS - News, Tutorials, and Tips

http://betterdms.com

 

Share this post


Link to post
Share on other sites
PeriniNero+    8
PeriniNero

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
yodarocks    0
yodarocks

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
Danny    1,327
Danny

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.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
Rob    547
Rob

Wonderful!


Former PageLines Moderator, Food Expert and Raconteur

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


  • Similar Content

    • flourishdesignstudio
      By flourishdesignstudio
      I am working on a multisite installation and had some questions regarding the themeing options. All the sites will have the same structure but each individual site would need a different h1 font and link color. I had originally thought that I would program/edit the parent theme to have a certain set of templates, font sizes, etc. and then that would feed to all the individual sites where I could activate the child theme and use the child theme to define the individual sites' specific link color, heading fonts, etc. So, what I was shooting for was:
      Parent theme = shared by all sites
      Child theme = specific to the minor customizations on a per site basis.
      Is this possible? Am I misunderstanding how these would actually deploy to the different sites?
    • jagipson
      By jagipson+
      Should be a simple answer but not sure why its not doing this.  I have a child theme installed on pagelines 5 that has a hook so it will write over the theme css. Strange is that when I am on the frontend the code works but in the dashboard your theme takes over my code and its no where to be found. See examples attachments
      @Andrew @Danny


    • TallTree
      By TallTree+
      Hi,
      I am trying to remove the sidebar areas from my child theme (pagelines.com) from the post pages on a site:
      https://staging4.talltreemusicfestival.com/2017/grand-analog/
      The content is all the way to the left and very small, and the two sidebar areas are taking up a lot of space.
      What I'm after is content to the left, taking up most of the space, and then a small sidebar width on the right for widgets.
      I've tried selecting 'read width content' and 'full width content' in the edit screen for the WP content section, but it doesn't change.  If I try to move the sidebars (1 or 2) to the left, it doesn't change.
      If I select the pagelines framework theme (not child), the two sidebars go away when not selecting them in the edit screen..
      Can someone please tell me what I'm doing wrong?
      Thanks in advance.
      -Matt
       
    • dbrowne02
      By dbrowne02+
      Hi, I noticed that framework and pagelines.com child theme has a number of errors when run through themecheck. The others, like material and bootstrap, don't have any errors when run through theme check. Is there a way to get it so that there are no errors on the child theme?

    • Grant Turck
      By Grant Turck+
      What file do I need to add code to in my pl-framework-pagelines child theme to insert script after opening body tag on every page?
      Can you someone provide me with the code also?
×