Start learning with our library of video tutorials taught by experts. Get started
Viewers: in countries Watching now:
Create a child theme based on an existing parent theme in WordPress and change the functionality, presentation, or styling of your website. In this course, author Morten Rand-Hendriksen shows how to use the default WordPress theme, Twenty Twelve, as a basis for a new child theme and add custom menus; new headers, sidebars, and footers; and index pages with widgets and pagination to your site. The course also demonstrates how to add a responsive welcome message to your front page using PHP and jQuery, and how to edit the many templates found in a WordPress theme. Morten explains how to perform these changes using any code editor, the developer tools in the Chrome browser, and WordPress.
If you want to disable these, you need to dequeue them. If you look at the functions.php file from the parent theme, you'll see here on line 90 you have this function called twentytwelve_scripts_styles. Inside this function you have several scripts that are enqueued so that WordPress can use them. You see one here, wp_enqueue_script ( 'comment-reply' ), directly below it wp_enqueue_script( 'twentytwelve_ navigation, and this last one is the one the calls in the custom Opens Sans font from Google Fonts that was the default in the theme before we changed it.
So what does it mean when it says that a script or a style is enqueued? Well, it means that WordPress is calling it into the theme without specifying it in the header.php file or footer.php file or anywhere else. For example, we can see here that the style for this Open Sans font is being enqueued. But if you go into the header.php file, you won't find any reference to the style sheet for this Google font. However, when you load the page and then go look at the code behind the scenes, you'll see that here, on line 20, you have the style sheet directly from fonts.googleapis.com, which means the font is being called in, but it's being called in through the enqueue function.
Find answers to the most frequently asked questions about WordPress 3: Building Child Themes.
Here are the FAQs that matched your search "":
Sorry, there are no matches for your search ""—to search again, type in another word or phrase and click search.
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.