How to prevent the default themes of WordPress from being reinstalled

The default themes of WordPress are very good to always have a base on which to publish, and they offer you the guarantee that they will always be updated to the latest news, in addition to your language, but why three? And why do they reappear even if you erase them?

Whether you're a normal user or you're developing websites, the default themes that resuscitate are a nightmare, not a horror but repetitive.

, in the case of creating websites for others, the fact that there are no other topics is a guarantee that you will not change the subject to browse and destroy all your work.

And for the novice user it is a useless space occupying the expensive web hosting that pays religiously. You delete them, but they reappear the next time you update WordPress.

The solution to the default WordPress themes that resuscitate

If you do not want them to be reinstalled nothing is more simple than add this line to your WordPress configuration file the simple but fantastic wp-config.php :

By the way, plugins will not reappear by default, the useless but dear Hello Dolly and the controversial and much less dear Akismet .

Did I break something?

There is a "but" (everything has a but), and it turns out that the issues WordPress by default also have a function, and that is that if at some point WordPress can not load t u active theme will use the first default theme (" Twenty loquees ") that is installed, ensuring that, although ugly, your website is still active and does not show a horrible [19659021] white screen of death .

But do not suffer, that also has a solution, only you have to tell WordPress what else to load if something happens so, being able to use another theme, this already at your choice, that you have installed for these – hopefully few – occasions.

You just have to add another line to wp-config.php to tell WordPress which theme to load and so avoid white death screens :

Of course, change the tex to theme-folder-name to the name of the physical folder where the theme is installed.

Another possibility is to change the default theme from PHPMyAdmin but that We already saw it.

NOTICE : this publication is from two years ago or more. If it's a code or a plugin it might not work in the latest versions of WordPress, and if it's a news story it might be obsolete. Then do not say we have not warned you.

Loading …

That may also help you:

Is Divi the best WordPress theme in history?

Divi is a wonderful subject but is it really the definitive theme? Is it the best WordPress theme in history? If you ask any of these questions, or just want to know its possibilities live you have an unmissable appointment next Wednesday October 28 in Madrid. [19659003] In the next WordPress Madrid Meetup meeting to be held on Wednesday, October 28, 2015 starting at 19:00 in the Flagship Store of Telefónica de Madrid ( Gran Vía 28 ) we will have the opportunity to see how Divi works and its powerful Constructor or visual layout designer if you prefer, learning what we can do and how to do it, in order to truly assess its potential.

 banner-divi-970x90 "width =" 838 "height =" 78 "srcset =" https://ayudawp.com/wp-content/uploads/2015/09/banner-divi- 970x90-840x78.png 840w, https://ayudawp.com/wp-content/uploads/2015/09/banner-divi-970x90-550x51.png 550w, https://ayudawp.com /wp-content/uploads/2015/09/banner-divi-970x90.png 970w "sizes =" (max-width: 838px) 100vw, 838px "/> </a> </p>
<p> The speakers at this meeting, who <strong> will be developed with live examples, no slides, in order to see what Divi does and what is not </strong>are the following: </p>
<blockquote>
<p><strong> Gonzalo de la Campa </strong>: Bachelor of Sociology, Senior Technician in Realization, online marketing consultant and expert in web design and graphic design. </p>
<p> Founder of the web <a href= www.paginaswebempresas.es gives integral online marketing service to companies. Professor of DIVI, WordPress and Woocommerce.

Fernando Tellado (a server): Writer of several books about digital content, being the last one " WordPress: the spider web " next to the activist and Cuban blogger Yoani Sánchez.

Awarded for his blogs, teacher and speaker on WordPress, web technologies, content management and online presence.

WordPress disseminator and passionate, manages the official website of WordPress Spain and maintains the Most visited blog about WordPress in Spanish: Help WordPress .

Which relay race, Gonzalo and I will take turns showing the possibilities, tricks, virtues and – perhaps – Divi peccadilloes, and we will see live if it is really such a revolutionary topic if it is currently the best WordPress theme .

Do you already have it clear? then run to point out that the seats are not infinite 😉


(Note: in case you have not noticed some of the links in this entry are affiliate, so if you buy a product it costs you the same but you pay me for coffee)

NOTICE : this publication is from two years ago or more. If it's a code or a plugin it might not work in the latest versions of WordPress, and if it's a news story it might be obsolete. Then do not say that we have not warned you.

Loading …

The 50 best free plugins to customize WooCommerce

If something is clear in WordPress today is that the most used plugin to create an online store is WooCommerce . Not only is it a plugin, it is a complete ecosystem, and that ecosystem is nourished, of course, by the plugin father: WooCommerce, but also by others plugins that extend or improve its functionalities .

Many of those plugins are paid, and most times it is justified the same, but are there also good free plugins for WooCommerce?

There are many good ones, so let's see the best ones, organized by categories …

Go through the official directory, there are more than a thousand . You no longer have excuses to vitaminize and mineralize your online store with WooCommerce.

WordPress 4.4 beta 1 – The countdown to the future of WordPress begins

The first beta version of WordPress 4.4 is now available, so the countdown to the final release of a WordPress version begins, although personally I think it will be transitional, if that will put the foundations of the future of WordPress .

As you can see, much programming improvement, under the hood as we usually say here, and apparently little thing that the user will perceive final, but is the beginning, the foundations of the future of WordPress and you should see it as such, as the beginning of an even more hopeful future if it fits for WordPress .

The best WordPress hosting with a 65% discount • WordPress Help

Hello, Help WordPress brings you a unparalleled offer of WordPress Hosting exclusive for your readers

Un unique and exclusive discount for WordPress Help readers of 65% of the price of the WordPress Premium hosting offered SiteGround .

The offer will be available for a limited time, until October 27 of 2015.

Take advantage of the 65% discount of this exclusive offer and contract it now before the deadline expires.

Get your 65% exclusive discount on the best hosting specialized in WordPress by clicking on the following picture!

How to remove or control input revisions • WordPress Help

For many times now that WordPress takes care of our texts, saving input revisions every time we save, the bad thing is that this increases considerably the size of the database so it's never a bad idea, but eliminate them, if at least you control the input revisions that are saved, by default infinite.

And it's very easy to do it, and we have several possibilities, as always, to suit each one.

1. Delete or control the entry revisions from wp-config.php

In the Codex is well documented the mode of delete or control the input revisions simply to a constant that we can define it in the WordPress configuration file wp-config.php .

And we have several options:

– Completely delete the input revisions

If you want it not to be saved in the database no revision of your entries, except the default autosave of WordPress, which will always be there to protect you, you must add the following line at the top of the file wp-config.php better just before where you specify the information in the database:

– Control how many input revisions you want are you saved

If what you want is to save a few but not infinite, then the line should look like this one:

With which in this case only 3 input revisions would be saved. Of course you can put the number that is most convenient for you.

– Control entry revisions for custom entry types

Another possibility is to control entry revisions for custom types, custom post types. In this way, a developer can add a filter in the file of functions of the subject or in the code of its plugin to avoid overloading the database of its users.

In this case you should add a function of this type: [19659031] add_filter ('revisions_of_entry_to_guard', 'filter_function_name', 10, 2);

function filter_function_name ($ num, $ post) {
    
    if ('my_custom_post_type' == $ post- & gt; post_type) {
$ num = 5;
    }
    return $ num;
}

add_filter ( 'revisions_of_entry_to_store' 'filter_function_name' 10 [19659024] 2 ) ;

function filter_function_name ( $ num $ post ) {

if ( ] 'my_custom_post_type' == $ post & gt ; post_type ) {

$ num = 5 ;

}

return $ num ;

}

Where for the entry type named " my_custom_post_type " is defining a unique function ( revisions_of_entry_to_safe ) that will only save 5 revisions of input.

2. Remove or control input revisions with plugins

I know, you were looking forward to it. I know you do not like to touch code, so for you there are also options, as always. And there are several plugins that you can use to erase or control input revisions, namely …

  1. WP Clean Up : It not only deletes the input revisions, it also eliminates all types of garbage accumulated by WordPress. You can not define how many saves, just delete them mercilessly from the database. The downside is that it is not a permanent action, you must pass the broom from time to time.
  2. WP Optimize : Similar to the previous one, it allows you to erase revisions of entries and more WordPress residues. He is a veteran but still works great.
  3. WP Revisions Control : This one is specialized in controlling entry revisions. Once active, add to the Settings -> Writing a series of configurations that allow you to define how many revisions to save, for entries, pages, custom entry types or even custom JetPack CSS. If you do not want any, you put the counter to zero. Very complete.
  4. Thin Out Revisions : It's special, it's clear. More than offering some adjustments to control in a generic way the revisions of entries in fact replaces the WordPress entry revision system with an optimized version that, among other things, allows to define how many input revisions you want for each entry, you can delete those that do not want individually and much more.

The previous methods control the entry revisions or prevent them from being created, but they do not erase the existing ones or completely free the space from the base of data occupied by the revisions that were already saved.

For this we have left 2 actions to be performed …

1. Eliminate existing entry revisions

In this case, the fastest and most efficient way is to make an SQL query that deletes revisions. To do this, from the panel of your hosting or cPanel open the PHPMyAdmin tool, select your database and go to the SQL tab to execute the following query:

The revisions of entries will be erased, but you have not finished.

2. Optimize the database to recover all the space

Now you have to optimize the table wp_posts ( or with the prefix you have ) to eliminate the resulting waste and recover a lot of precious (and expensive) Mb. For it uses the own optimization utility of PHPMyAdmin, the same WordPress or your favorite tool .


It is already waiting for more ?, as WordPress would say. For options that do not remain, so spend a while to your WordPress installation and optimize the size of your database by controlling and deleting input revisions you do not want.

What you get are two really important things: ] Saving space in your database, always expensive in all hosting plans.

  • Improve the speed of loading and consumption of resources in the administration area, having to make WordPress fewer queries to the database.
  • Any questions?

    If you have any doubts, it's your turn …

    NOTICE : this publication is from two years ago or more. If it's a code or a plugin it might not work in the latest versions of WordPress, and if it's a news story it might be obsolete. Then do not say we have not warned you.

    Loading …

    That may also help you: