Is it acceptable to build functionality into a theme built for a client? [closed]

while agreeing 95% with Drew’s answer I would like to attend to another point It’s normally advised to not include custom types or taxonomies in themes as the themes will be less useful to other users, and would not be accepted by the WordPress theme repository. The word of the maintainers of the wordpress.org repository … Read more

Making menu link open in new tab?

You can do that with jQuery. We can open this link in new tab/window by adding target=”_blank” attribute dynamically on link which has URL https://www.example.com. Here is the example function for that. function wpse_my_custom_script() { ?> <script type=”text/javascript”> jQuery(document).ready( function($) { $( “ul#adminmenu a[href$=’https://www.example.com’]” ).attr( ‘target’, ‘_blank’ ); }); </script> <?php } add_action( ‘admin_head’, ‘wpse_my_custom_script’ … Read more

Cannot find the code for “Edit This” link in posts in a specific theme

This should be located in the entry-meta.php file of the parent theme (kuorinka). Here is the code: <?php if ( ‘post’ == get_post_type() ) : ?> <div class=”entry-meta”> <!– Date & Author name–> <?php kuorinka_posted_on(); ?> <!– Comments count –> <?php if ( ! post_password_required() && ( comments_open() || ‘0’ != get_comments_number() ) ) : … Read more

Why wp_enqueue_style() not working?

Are you sure you theme is active? If you see your style.css code it should not have only the CSS code but also the Theme defination at header of your style.css. Please make sure if your theme is active. The above code for loading CSS file looks good and should work if your theme is … Read more

How the functions in WP are called in tags

There are two separate pieces when you are calling a function: A function declaration. This is mandatory and can only happen once for each function name. A function call. You don’t need to use a declared function, and if you do, you can call the same function multiple times. Both parts must happen in a … Read more

During theme installation theme upload failed

The key part from the error is: The theme is missing the style.css stylesheet. WordPress docs on Main Stylesheet says: In order for WordPress to recognize the set of theme template files as a valid theme, the style.css file needs to be located in the root directory of your theme, not a subdirectory. I would … Read more