• Resolved Simon Pointer

    (@simon-pointer)


    HI Anthony – you kindly replied to my email with a question and asked me to post here. So here goes.

    I wanted to take the Quark as a starter theme and convert it to my own. I followed your read me file closely. I did the find and replace suggested to change ‘quark’ to my own theme name, but I couldn’t get it to work. I tried several times.

    Once I couldn’t access the backed at all after completing the activation, once I could access admin but the site didn’t function properly and looked like there was no styles.css and loop content running. And another time it seemed to work OK but I couldn’t change any of the theme options in the admin. (Seemed to throw an error for the options.php file)

    I think the issue is knowing which files require the theme name change by find and replace. I tried to do it on all files in the theme folder but this was one of my failures. Can you provide some help or more specific info on which template files require the replacement? Thanks so much

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi Simon

    Easiest way is to download Quark, open all the files in Notepad++, then just do a search and replace (remembering to select replace in all open files). Works every time for me ??

    Hope this helps,

    Rob

    Theme Author Anthony Hortin

    (@ahortin)

    Hi Simon,

    If you’re wanting to change the name Quark within the theme, you need to make sure you perform the search/replace in the correct order and also search for the exact names that I’ve mentioned in the readme file.

    1. Search for quark inside single quotations to capture the text domain.
    2. Search for quark_ to capture all the function names.
    3. Search for quark with a space before it to replace all the occurrences of it in comments.
    (You’d replace this with the capitalized version of your theme name.)

    or, to put it another way…

    Search for:’quark’
    Replace with:’yourawesomethemename’
    Search for:quark_
    Replace with:yourawesomethemename_
    Search for: quark
    Replace with: YourAwesomeThemeName

    Alternatively, if you simply want to use the theme to crate your own site, just create a child theme and use it as is. This way WordPress will also advise you when there’s updates available.

    To create a child theme, simply create a new theme folder and then create a style.css file with the following content:

    /*
    Theme Name:   My Quark Child Theme
    Theme URI:    https://example.com/
    Description:  My Quark Child Theme
    Template:     quark
    Version:      1.0.0
    License:      GNU General Public License v2 or later
    License URI:  https://www.gnu.org/licenses/gpl-2.0.html
    */

    You don’t need to worry about enqueuing the parent stylesheet as the latest version of Quark will handle that for you automatically.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Trouble making Quark my own theme’ is closed to new replies.