Jump to content


Photo
- - - - -

Just installed Danny's Skeleton child theme to DMS2


Best Answer Danny , 29 April 2014 - 09:20 AM

@dsolano

 

I've edited my child theme, added your changes and re-zipped the theme, you can download it here - http://ge.tt/30UhGse1/v/0?c

 

All you need to do now, is install it like any other WordPress theme.

 

However, I am not sure why the are finding the process scary, as it is the same for every WordPress child theme including PageLines Framework. If you want to rename it and change the directory, you can either do what I have done or use your FTP client.

Go to the full post


  • Please log in to reply
25 replies to this topic

#21 GetMeWebDesign

GetMeWebDesign

    Advocate

  • Members

  • 524 posts
  • LocationSurrey, UK
  • Framework Version:developer
  • Country: Country Flag

Posted 01 May 2014 - 07:46 AM

#header h2 {

  color: #FF8533;

}

 

If you want to reference any h2 using Standard Options > Custom styling classes: Define your custom styling class in </> Custom (in DMS Live Editor) or in WP admin > Pagelines > DMS Fallbacks > Custom LESS

 

.myh2color {

   h2 {

     color: #FF8533;

   }

}

 

and add myh2color (without the point/full stop) as the custom styling class



#22 Danny

Danny

    Is Awesome!

  • Moderators
  • 15215 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 01 May 2014 - 10:35 AM

Danny:  

 

I tried to edit the style.css to build a skeleton child theme for another DMS2 website and I cannot seem to do it.

 

The website is cancunfamilyresortsandspahotels.com

 

Would you be so kind as to edit Skeleton again and rezip it after calling it Solano-Cancun?

 

Then I'll upload the child theme to the website as a zip file.

 

Thank you so much.

 

My very best regards,

 

Debbie

 

Unfortunately, I can't keep doing it for you. The simplest way to change my default text for the Skeleton child theme is to download it from GitHub, extract it and then open up the style.css file in a code editor such as Atom.io or SubLime Text. Then proceed to follow the instructions on the Skeleton GitHub repo, in teh readme text and file it has instructions on how to do this.

You can change everything in the style.css file except for Template : dms

 

As this informs WordPress that this theme is a child theme for DMS. Once you have made your changes, save the style.css file and then rename the folder Skeleton-Master to whatever you like, usually this is your theme name. Once you have completed the above, you can either compress the folder and files using a compression application or the built-in functionality of your operating system, you can usually do this by right clicking on the folder, where a popup window should appear with the option to compress the folder.

 

Once that is done you can upload it using the WordPress Theme Uploader or upload the folder without being compressed via your FTP client to the following directory:

 

/wp-content/themes/



#23 dsolano

dsolano

    Advanced Member

  • Members

  • 37 posts
  • LocationTulsa, Oklahoma
  • Framework Version:2.3.3
  • Country: Country Flag

Posted 01 May 2014 - 09:53 PM

Danny:

 

That sounds like a workable plan.

 

Thank you so much for the detailed instructions.

 

Best regards,

 

Debbie



#24 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 01 May 2014 - 10:14 PM

Then I put the old code into CUSTOM/LESS CSS.  The code is: 

body{
 
 // LESS
 
@color: #FF8533;
 
#header {
  color: @color;
}
h2 {
  color: @color;
}
}
 

 

Just want to add to this thread this...

 

That code will never work, as 'color' is always going to be a protected variable. You should always choose something unique for your own vars, if your theme is called 'awesome' the make it @awesome-header: #FF8533, something that bootstrap or DMS is not going to already have assigned.



#25 dsolano

dsolano

    Advanced Member

  • Members

  • 37 posts
  • LocationTulsa, Oklahoma
  • Framework Version:2.3.3
  • Country: Country Flag

Posted 02 May 2014 - 05:41 AM

It worked.

 

Thank you.

 

I especially appreciate your encouraging me to do it. 



#26 James B

James B

    Advocate

  • Moderators
  • 5126 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 02 May 2014 - 07:14 AM

Glad it worked, thank you for updating the thread.