Tag Info

Hot answers tagged

4

I gave a +1 to the @webtoure's answer because it gives you the right direction, however I think it lacks some checks. First of all it does not check that the theme that's being activated is a child theme, and does not check that the theme previously active is the parent theme of the child theme being activated. Per my understanding of OP these conditions ...


2

The answer to which framework you should use is — no one knows. From code perspective there is certain degree of baseline theme functionality/experience — enforced by formal standards. Those things are recommended/required for inclusion into official theme directory, outside of that people can do things a little more lax. Frameworks exist for different ...


1

How can I make this code to display the meta tags at the top of the header section right after ? You probably can't. Typically wp_head() is called at the end of the </head> section, but that is theme dependent. You don't have any control. How can I put each meta tag on a separate line? Use double quotes and \n... $cjt = '<meta ...


1

I have gone through your code and found that the function longform_the_related_posts displays 8 related posts. This function is defined in functions.php of parent theme and called in single.php. Thus, to override the function, follow below steps - 1. Create another function that displays 4 related posts in functions.php of child theme. (As you have ...


1

Is this: / just overwritten or is it a mistake in your code? max-width: 75%;/ It might cause to not work properly. Otherwise i will try a bit shady way, try to make your parent attributes !important.


1

Plugins are not kept in the theme directory. It doesn't matter if you are using a child theme or not. Maybe you're asking a different question? Are you asking how to make a "child-plugin"? Plugins are generally kept here: wp-content/plugins. Whereas child themes and themes are kept here: wp-content/themes As far as "child-plugins" there is not an official ...



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