Where can I learn to create my own theme?

There are many different ways to learn to create your own theme. First, there’s the “official” WordPress Codex on Developing Themes, but I’d say that it is more of a reference than a tutorial. Another approach and one I like a lot is to read some of the better tutorials about WordPress Theming on the … Read more

What are all the available parameters for query_posts?

Below is everything from WordPress 3.0.1 found in the parse_query() function of /wp-includes/query.php (lines 1246-1550). However, it’s possible for a plugin to add parameters and so a list can never be fully complete: attachment attachment_id author author_name cat category__and category__in category__not_in category_name comments_popup day error feed hour m minute monthnum name order orderby p page_id … Read more

How can I allow the Editor Role to change Theme Settings?

you can add capabilities to the editor role using the role object and add_cap from you functions.php <?php // get the the role object $editor = get_role(‘editor’); // add $cap capability to this role object $editor->add_cap(‘edit_theme_options’); ?> you can also remove capabilities: $editor->remove_cap(‘delete_posts’); just take a look at the list of capabilities and what each … Read more

Using OOP in themes

I can understand your confusion based on the example you provided. That’s really a poor way to use a class … and just because a class is used, doesn’t make a system OOP. In the case of Hybrid, they’re just using a class to namespace their functions. Considering Hybrid is a theme framework, this is … Read more

Remove JSON API links in header html

I see in filters.php “add_action( ‘wp_head’, ‘rest_output_link_wp_head’, 10, 0 )” Which makes me think this should do the trick to remove rel=”https://api.w.org/”. remove_action( ‘wp_head’, ‘rest_output_link_wp_head’ ); The rest… * cough * seem to be in default-filters.php remove_action( ‘wp_head’, ‘wp_oembed_add_discovery_links’ ); To remove the rest_output_link_header remove_action( ‘template_redirect’, ‘rest_output_link_header’, 11 ); Reference wp_oembed_add_discovery_links rest_output_link_wp_head rest_output_link_header

WordPress frameworks and parent themes [closed]

Hybrid Theme Hybrid, developed by Justin Tadlock. Scope of code is primarily PHP internal functionality and front-end templates for themes. Interesting features: code aims to minimize template edits, most of functionality can be controlled via hooks; context-aware – extended body-class, dynamic context-aware hooks that allow to hook events that fire only in specific context; tightly … Read more

How to change or add theme to Android Studio?

File->Settings->Editor->Colors & Fonts-> In scheme name select Darcula and apply to see a awesome dark background theme editor Android Studio 3.1.2 File->Settings->Editor->Color Scheme-> In scheme name select Darcula and apply to see a awesome dark background theme editor