Tag Info

Hot answers tagged

2

Own theme If you are using your own theme, no need to worry about, because /languages folder is in your control that way. :) Other's theme But your concern is about other's theme and you want to apply your translations into that theme, then the best way is to make a Child Theme. Because you are actually modifying that theme. Make your languages files and ...


2

This is how I would do it in a plugin: Install WordPress as a multisite with subdomains. Use the main site for the theme shop, install Easy Digital Downloads or another shop plugin. Create a product for each theme, make sure the slug matches the theme directory name. Upload your themes. Write an empty function wp_install_defaults() to prevent the default ...


1

pagename is for request page (core page post type) by slug. What you want, if I understood correctly, is to get "attorney" posts that belongs to same case-log terms that current "case" post. I would do it something like this (not sure where you are going to execute the code, I've tried to code as universally as possible): if( is_singular( "case" ) ) { ...


1

get_template_directory() gives you the path to the parent theme while get_stylesheet_directory() gives you the path to the child theme. Docs: https://codex.wordpress.org/Function_Reference/get_stylesheet_directory https://codex.wordpress.org/Function_Reference/get_template_directory


1

I can't vote up the answer above, but its right... two ways of enabling a theme - one in the network site and making it network activated - this then shows in the all of the sites under appearance as normal. The second is not to network activate and then it shows as you have described and you can enable. You still have to activate the theme as normal mind... ...


1

Go with WordPress TwentyFifteen or any other default theme. You don't have re-invent the wheel, you will save a lot of time.


1

Use this basic theme with default features that should begginer person to know. A just right amount of lean, well-commented, modern, HTML5 templates. A helpful 404 template. An optional sample custom header implementation in inc/custom-header.php Custom template tags in inc/template-tags.php that keep your templates clean and neat and prevent code ...


1

Solution if submit button disappears and notes: In case you lose the submit button of your form, in addition to Pieter Goosen's answer, you should add those lines to the defaults array parameters list: 'submit_button' => '<input name="%1$s" type="submit" id="%2$s" class="%3$s" value="%4$s" />', 'submit_field' => '<p ...



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