• okieman

    (@okieman)


    I have a client who years ago paid someone to build a theme based on Underscores. This resulting theme is named after the client. The only issue is that all efforts to create a child theme have failed. As nearly as I can figure, the plugin to create a child theme can’t figure out the name of the parent theme. Not even if I carefully follow the steps. (I earlier tried to create the child manually, and that silently failed.)

    Is there documentation on how a correct theme name is assigned in the PHP etc.?
    I don’t mind digging out the details.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Michael

    (@alchymyth)

    https://developer.www.ads-software.com/themes/advanced-topics/child-themes/

    for example, the ‘Template:’ is the folder of the parent theme, not the name…

    what style.css (the top part) did you create for the child theme?

    Thread Starter okieman

    (@okieman)

    @alchymyth I will pull that up from the remote drive, so I can answer.

    Thread Starter okieman

    (@okieman)

    @alchymyth Here are my CSS header and example from the link you provided (names obscured) …

    /*
    Theme Name: PreviousDev Base Child
    Theme URI: https://ClientName.com
    Template: ClientName
    Author: Luke 5 Marketing
    Author URI: https://luke5marketing.com
    Description: This child theme derives from ClientName theme developed by PreviousDev
    Version: 1.0.1560456162
    Updated: 2019-06-13 14:02:42
    */

    /*
    Theme Name: Twenty Fifteen Child
    Theme URI: https://example.com/twenty-fifteen-child/
    Description: Twenty Fifteen Child Theme
    Author: John Doe
    Author URI: https://example.com
    Template: twentyfifteen
    Version: 1.0.0
    License: GNU General Public License v2 or later
    License URI: https://www.gnu.org/licenses/gpl-2.0.html
    Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
    Text Domain: twentyfifteenchild
    */

    where is that style.css of the ‘ClientName’ theme stored, i.e. what is the url of that style.css?

    a typical example of TwentyFifteen might be:

    https://example.com/wp-content/themes/twentyfifteen/style.css

    the ‘twentyfifteen’ part of the url is what you enter as ‘Template:’ in the header of style.css of your child theme.

    how does it look in your site for your style.css of the parent theme?

    Thread Starter okieman

    (@okieman)

    @alchymyth I’m not at the office, but here is what I remember, each our child themes are in their own directory (inside the WP Themes dir) named by using the theme name plus “-child” without the quotes.

    In this case…
    ClientName-child

    Containing style.css, functions.php …
    And any modified version of WP templates such as single.php

    In this case, the only goal was to have a place to put the new CSS, so there are not currently any modified WP templates.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How is a custom theme properly named?’ is closed to new replies.