• My current goal is to create a child theme. I followed the steps and create a style.css in Sublime Text 3. However, I cannot get the child theme to show on my themes when I go into my site.

    I also noticed that if I install a new theme on my wordpress site, it doesn’t show up in Sublime Text 3. Can anyone explain to me the relationship between content on wordpress and the files on my computer? And how I can get my child theme to show up on my wordpress site?

    I’ve tried to figure this out but am at wits end. Any help appreciated. I am using Hostgator if that makes a difference.

Viewing 4 replies - 1 through 4 (of 4 total)
  • . Can anyone explain to me the relationship between content on wordpress and the files on my computer?

    Unless you are in the actual act of transferring files (usually by FTP client) there is none. There is no normal, live connection between files on your computer and your WordPress files.

    And how I can get my child theme to show up on my wordpress site?

    Upload it to your /themes directory and then log into your dashboard and activate it.

    Thread Starter hclib

    (@hclib)

    Thank you both webbrewers and Clayton James for the quick responses. I’ve been to the site webbrewers linked but it is still confusing me. For example it says:

    Your child theme’s stylesheet will usually be loaded automatically [after you create the functions.php.] If it is not, you will need to enqueue it as well. Setting ‘parent-style’ as a dependency will ensure that the child theme stylesheet loads after it. See here for a more detailed discussion :

    I created the functions.php as instructed but nothing is still showing up. I clicked on the link for “more detailed discussion” – https://codex.www.ads-software.com/Plugin_API/Action_Reference/wp_enqueue_scripts. But this is still unclear to me: Is it saying I need to add a functions.php to both the parent and the child themes? And how does it “load automatically” if, as Clayton says, there is live connection between my computer files and the WordPress files.

    The only files WP is going to look for are the hosted files in your hosting account. Unless you are using your local machine as a server with WP installed, local files are irrelevant.
    The only required file needed for a child theme is the stylesheet with the exact bits noted in the documentation and located in:
    wp-content/themes/parenttheme-child
    I’d get that working and make sure the child theme stylesheet is active first. Be very careful with functions.php – unlike other files (eg page templates) you only need to ADD additional functions to that file. These will run in conjunction with the parent functions file. Any errors in that file will break the site.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Connecting computer files to WordPress Site’ is closed to new replies.