In this episode, you will discover where in the Genesis framework does it load the child theme’s stylesheet style.css file.
The Genesis framework provides you with a constant, which you use in the child theme. This constant defines the theme’s version. That version is then appended to each asset during the enqueuing process. In this episode, you will take a look at how this works.
Let’s talk about the web browser. The browser is capable of storing a local copy of the assets (stylesheets, scripts, etc.). It does this to save web page load time. After the first visit to a page, the next time the person comes to the same page, it will load faster. Why? The browser doesn’t have to request those files from the server again. Nope, it kept a local copy in the computer’s cache. In this episode, you will also see how WordPress appends the version on to the end of the asset’s URL in order to make it unique […]
Let me introduce you to the lab, as well as the problem you may be experiencing.
Have you ever had the problem where you made a change, pushed it to your client’s server, and then they say they can’t see the changes? So you tell them to clear their browser’s cache and that solves the problem. In this lab, you will learn how to make sure your changes are sent out to the browser using the constant Genesis provides for you.
In this episode, you will unregister the Genesis page title. Remember, you need to unregister it after it has been registered. Huh, what does that mean? It means after the theme is called. In this episode, you will learn about how to unregister callbacks and the WordPress event after_setup_theme. WordPress Events (Hooks) Psst, events, unregistering, and registering is fuzzy for you, make sure you take the Introduction & Registering Events hands-on lab. [/infoxbox]
From the previous episodes, you identified genesis_before_loop as the event you need to register your callback in the plugin in order to render out the content into the right spot on the page. Let’s talk about this event. In this episode, you’ll walk through the basic structure of Genesis, looking at the function genesis(). You will also look at the Loop in Genesis in order to gain a general understanding of where this event places your content into the HTML structure.
Let’s dive deeper into the Genesis framework by StudioPress. You will learn about: the posts page archive rendering Genesis markup and genesis_attr – overview and intent HTML attributes