Hot answers tagged

4

Child themes are not the only way to extend a theme, not even the best. Many themes offer hooks: actions and filters. You can use these to change the output per plugin. Let’s say you have a theme named Acme, and its index.php contains the following code: get_header(); do_action( 'acme.loop.before', 'index' ); ?> <div id="container"> &...


2

Nulled theme basically mean cracked/hacked, the distributors of nulled themes often hide popups/ads in them to earn money, which you can't see until a user complain about it or you check the website on google speed test for example where you see image of the website, they aren't secured at all, and it is doesn't worth using them. Expected behavior of nulled ...


1

Setting theme dynamically is certainly possible, but not too convenient since it's hardly "normal" mode of operation. In my experience this works best if you stay away from higher level template/stylesheet hooks and instead filter underlying options. In that way you can trick WP into thinking that configured theme is different from what it is and use it. ...


1

It looks like the code you copied from is missing the part where your child theme styles are actually added to WordPress. It's a little strange they skipped over this, mind you! From the WordPress Codex article on child themes, you just need to modify your style enqueueing function so it includes this: wp_enqueue_style( 'child-style', ...


1

For me the rule of thumb is am I extending/revising an existing theme? If so I'll want to be able to update the theme (assuming it's well supported) without nuking all my changes. You can read more here in the codex. If I'm creating something custom I find it best to just use my own starter theme (or something like Underscores) and edit the theme itself.


1

Well, I found not an answer, but a workaround for this question. In the_mx_limited_gallery function, I added a negated is_single check around most of the contents of the function, so basically the limited posts and custom code show only if you are on a page other than a single post. This isn't how I originally intended, but it works for the time being. ...



Only top voted, non community-wiki answers of a minimum length are eligible