Updating My Custom Ink Theme

Discussion in 'GeoCraft WordPress Theme' started by kentoliver, Apr 20, 2013.

  1. tobyb

    tobyb Active Member

    Joined:
    Dec 28, 2011
    Messages:
    256
    Likes Received:
    31
    Location:
    World Wide
    Hi Tom, I think you need some more files in it, I have edited frontpage.php and header.php pages and have a copy of the edited pages in the child theme. Then if I add any more additional edits to those pages I only edit the pages in the child theme. The main default theme stays as is unedited.
    Hope this makes sense. :) When all is working ok you will see in the admin area if you go to appearence/theme/editor only the pages that are in the child theme are now showing.

    Tob
     
  2. nzcid

    nzcid Member

    Joined:
    Mar 22, 2013
    Messages:
    72
    Likes Received:
    1
    Hey tobyb - good thought but not my issue. Thanks though.
     
  3. Nitesh

    Nitesh Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    5,165
    Likes Received:
    160

    Hello Tom,

    Please provide the following information listed below.

    Thread Link:
    Your Website URL:
    WordPress Username:
    WordPress Password:

    Send this information on our email at [email protected]
    I will activate child theme at your dashboard.
     
  4. nzcid

    nzcid Member

    Joined:
    Mar 22, 2013
    Messages:
    72
    Likes Received:
    1
    Hey webunet..

    Nope all you need is the syle.css in that folder for a child theme to work.

    My issue with the child theme style sheet was if you look at the template name it uses a captial "G" when the theme itself using a lowercase "G". Also the code to import the style sheet from the main theme also used a captial "G"

    Child theme style sheets are cases sensitve so it came back with the dreaded, Themes must have a stylesheet and a template & Geocraft Theme Child The parent theme is missing.

    After searching via google I found a post on the WP forum that described this issue exactly.This appears to be a very common cause for child themes to not work and one I will watch for in the future.

    After changing those capitals to lower case the child theme worked with no issues.

    Also need to mention that support did catch up with me and give me another zipped folder child theme, but that still had the template name with a capital but I appreciate their time and effort.

    This post may help someone else in the future if they come up with the same error.

    Code:
    /*
    Theme Name:    Geocraft Theme Child
    Theme URI:      http://www.inkthemes.com/
    Description:    Child theme for the Geocraft theme
    Author:        Inkthemes
    Author URI:    http://www.inkthemes.com/
    Template:      Geocrafttheme
    Version:        1.76
    */
    @import url("../Geocrafttheme/style.css");
    
     
  5. tobyb

    tobyb Active Member

    Joined:
    Dec 28, 2011
    Messages:
    256
    Likes Received:
    31
    Location:
    World Wide
    Hi, if you edit any theme pages such as frontpage.php or header.php you need these in the child theme along with your EDITED syle.css although you can have your edited css added directly into your theme admin which is not lost on an upgrade.. This is the purpose of the child theme, any pages that you have custom edited are placed into the child theme so that when you have a theme update your editing or customization is not overwritten with the new theme updates. Any pages that are held within the theme such as library will not work as they are retained within folders. You customization is preserved within the child theme.
    Hope this helps.
    Tob
     
  6. nzcid

    nzcid Member

    Joined:
    Mar 22, 2013
    Messages:
    72
    Likes Received:
    1
    Hey Tobyb

    Should of added what you have said, Any file that you have altered that is in the root directory of the theme needs to be added into that folder so that when the theme is upgraded you do not lose those alterations. However just to get a child theme to work you only need the style.css in that folder.

    Thanks again Tobyb for being more concise.
     

Share This Page