How do register_sidebar() and get_sidebar() work together?
Disclaimer: I am brand spanking new to WP.
Disclaimer: I am brand spanking new to WP.
I need to include the path to my theme file within a javascript file. How would I go about this? I have already tried:
Is there any way to remove the dashicons.min.css file from the frontend? I know that they are used by the admin panel, but my theme doesn’t use them so it’s an unnecessary request.
I have a custom menu that I can call just fine using wp_nav_menu. Is there a way to have the menu name displayed inside an h3 tag before the menu?
I am creating a simple framework with theme options. I have divided chunks of code within functions.php and placed it within a specific folder structure.
In many themes I’ve seen (including TwentyEleven) and in the examples I’ve found online, when building the functions.php file for a theme all functionality is declared in a global scope. To clarify, this is what a typical functions file looks like:
I have found the following piece of code in the WP Knowledge Base theme in order to show subcategories of a parent category. The problem is that this only works for the first level of hierarchy, so I wanted to change the if clause in order to check if the current category has children but I have no clue how to do that, any idea?
Thanks
I’m trying to create a portfolio with WordPress using a Custom Post Type to display my projects. Each project I want to display on my static front page with a featured image as a thumbnail, and by clicking on a thumbnail would take me directly to the project.
I have a widget that works with my theme that expects images named in a certain way, slide1.png, slide2.png, etc…
When Twenty Eleven theme is activated, it inserts several default widgets into its sidebars. How can I code my theme to do the same?