Check it out: function custom_popular_posts thesis_widget_recent_posts( 'popular', 'Popular Posts' Because our new function does not contain any parameters, we can hook it into place wherever we want. In this case, our goal is to add a popular posts widget to the top of Sidebar 2, so well need to use the thesis_hook_before_sidebar_2 hook to get this new widget to appear.
Clearly, were going to need a workaround, and in this case, the solution happens to be quite simple. All we need to do is wrap the function call above inside a new, parameter-less container function, and then we can hook this new function into place.
Basic CSS code is formatted like this: selector property: value; selector, the selector defines what you specifically want to style. It could be an html element such as h1 or address, a class or an ID such as.sidebar or #logo, or it could be a combination of various things.
By leveraging hooks, you can isolate all of your custom html changes to a single filecustom_p. Without question, this is the most powerful and efficient way to run your site with the Thesis WordPress framework.
Within that folder is another one, named /custom. This folder, appropriately, is the nexus of Thesis customization. There are two files within the /thesis/custom folder which can be used for your specific customizations: s and custom_p.
In order to run a second (or third, or fourth, etc.) function at a particular hook, all you need to do is add a second add_action call: add_action( 'unique_hook_location', 'your_custom_function_1' add_action( 'unique_hook_location', 'your_custom_function_2' By default, Thesis uses a few of its available hooks, and occasionally, you may want to un -hook default functions, move them around, or replace them with.
Here, you can add your Unique Hook Name near the bottom: As a best practice, make your Unique Hook Name short, lowercase, descriptive, unique and use underscores instead of space characters: like_this.