Jump to content

Archived

This topic is now archived and is closed to further replies.

seanocaside21

Should i be using a Child Theme?

Recommended Posts

seanocaside21+    10
seanocaside21

Hi,

 

I was looking for some advice about my current workflow. For a while now i have been designing sites directly to the DMS framework however i keep coming across people recommending the use of a child theme as it is the safest method. 

 

This is taken directly from WP Codex :

 

 

 

If you modify an existing theme and it is updated, your changes will be lost. With a child theme, you can update the parent theme (which might be important for security or functionality) and still keep your changes

 

Basically i am looking for peoples opinions on which is best. If it was my site i wouldn't be as concerned but i have a string of upcoming jobs for important clients and want everything to go as smoothly as possible. 

 

As you can tell i am a designer rather than a coder so be nice! 

 

Cheers,

 

Sean. 

  • Like 1

Share this post


Link to post
Share on other sites
James B    436
James B

Hi Sean

 

Using a child theme is considered the professional way to enter your custom code. This will be re-enforced on the wp.org support forums as mode standard Wp themes don't have an inbuilt custom css area like DMS does, a majority of them will handle their changes through the style.css of a child theme. DMS allows the user three different ways to add code, either by the admin panel, a child theme or the customize plugin. Each has its own benefits depending on the users aims and skillset.

 

Personally I feel if designing for clients its better to use a child theme to insert your custom code, as it first looks more professional as the client can't see your custom code, and secondly as the code isn't within the dms editor there's no so much of a risk of the client deleting or adjusting anything which causes it to break etc.

  • Like 2

Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
seanocaside21+    10
seanocaside21

Hey James,

 

That's great thanks for your help. I'll go with a child theme for my next project. 

 

Standby for possibly more questions!  :D

 

Cheers,

 

Sean

Share this post


Link to post
Share on other sites
James B    436
James B

Will do :-)


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites

  • 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?
×