WordPress site migration addvice

First of all. You don’t need to use plugins in order to migrate some wordpress from one place from another. 1) Make backups. When you have a backup with, for example Updraft you can easily make backup with all things, and restore backup. 2) Hard migration. Best migration. I am doing this type of migration … Read more

Disable Sidebar in the Product Page in Storefront Theme [closed]

for product page, you can put in functions.php function remove_storefront_sidebar() { if ( is_product() ) { remove_action( ‘storefront_sidebar’, ‘storefront_get_sidebar’, 10 ); } } add_action( ‘get_header’, ‘remove_storefront_sidebar’ ); It works with latest woocommerce 2.5.2 Also CSS is needed: .single-product.right-sidebar .content-area { float: none; margin-right: 0; width: 100%; }

New blog template to display only one category

If your theme is creating a new query for the main page loop it is doing something very wrong. To get a category archive, all you should need is a template named according to one of these patterns, depending on your need: category-{slug}.php – If the category’s slug is news, WordPress will look for category-news.php. category-{id}.php – … Read more

Cannot get full thumbnail size using the_post_thumbnail

Try to add custom thumbnail size with unlimited(very big) hegiht and width in functions.php with following code: add_theme_support( ‘post-thumbnails’ ); add_image_size( ‘custom’, 9999, 9999 ); It will not crop any images. So you can use it as the_post_thumbnail( ‘custom’ ); This method looks rough but you can use if other ways don’t work. And if … Read more

Delete database tables on theme uninstall?

Yes, you can accomplish it by WP default functionality. Let me explain it. 1. While switch theme: There is a switch_theme action that runs right after the theme is switched. switch_theme is triggered when the blog’s theme is changed. Specifically, it fires after the theme has been switched but before the next request. Theme developers … Read more

How to change the themes “Live Preview” url within the Appearance->Themes page?

External Live Previews For Themes The Live Preview buttons, on the /wp-admin/themes.php page, are generated from the tmpl-theme micro template: <script id=”tmpl-wpse” type=”text/template”> …cut… <div class=”theme-actions”> <# if ( data.active ) { #> <# if ( data.actions.customize ) { #> <a class=”button button-primary customize load-customize hide-if-no-customize” href=”https://wordpress.stackexchange.com/questions/220473/{{{ data.actions.customize }}}”><?php _e( ‘Customize’ ); ?></a> <# } … Read more

Theme-Config tab in admin Pannel?

It’s not classified as plugins. It’s also not a WordPress glossary and often called: Tabs which are built on Settings API and some tricks with $_GET request. There’re many Q&As, references you can learn from. This topic seems to be the most relevant one for you. Yes, you can do it with template_include filter. These … Read more