Hot answers tagged

3

The quick and dirty way would be to either delete the two lines that are 'resposible' for the message, or wrap them by comments / comment-them-out. In your theme folder 'twentysixteen' look for the theme file 'footer.php' Around line 50 look for the following two lines: <span class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?&...


3

since WP 4.4.0, you can use this filter that allows you to change the arguments used in the original cpt registration. Add this to your functions.php file: add_filter( 'register_post_type_args', function( $args, $post_type ) { if( 'wyde_portfolio' === $post_type && is_array( $args ) ) $args['rewrite']['with_front'] = false; ...


3

You got some things mixed up here - let me try to point you in the right direction. Terminology In WordPress, a theme is a set of files and functions that provide the frontend look for your Website. Most themes also include some specific functionality, but the main goal of a theme is to style your WordPress website according to your needs. A WordPress ...


2

Not a direct answer, but probably has to be said - this is one problem you should avoid solving unless you are talking about a local development in which case you can just set permissions to 777. The reason is that if the webserver can overwrite your code, then any malicious code running on it will be able to do that as well. The risk is just so much bigger ...


2

TL;DR: Use a child theme instead :) If we dig into the code for get_template_part(), there's an action there - get_template_part_{$slug} - which we could hook into. Digging a bit further, get_template_part() calls locate_template(), which calls load_template(). Unfortunately, there's nothing in either of these functions that seems to be pluggable, so we ...


2

The best solution to customize a theme is to create a child theme. You can then copy the file footer.php from parent theme to child and edit it by removing the lines that outputs "{site} / Proudly powered by WordPress". That way you will be sure that any changes made will remain even after updating the parent theme.


1

The hook to use is wp_enqueue_scripts instead of wp_print_scripts


1

You can delete it from the footer.php file or you can hide the CSS that displays it which is better in case you update the theme as the footer.php file may get over-written. If you choose the CSS route, then paste the following into your CSS file: #site-generator { display: none; }


1

For themes installed from official repository WordPress will have much of the process automated, offering update and handling the process. For third party themes it's a manual process (unless they implement similar update functionality themselves). You can upload a theme archive via Appearance > Themes > Add new > Upload theme in WordPress admin. If I ...


1

The following is not a solution to just insert into a regular WooCommerce catalog page. However, this would easily serve as a basis for someone trying to achieve that. Background: I'm building an Angular/JS app to load on the archive-product page, which will handle everything including the cart until a user is ready to proceed to checkout... at which point ...



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