WordPress 4.8.1 recovers the HTML widget • WordPress Help

As you may remember, WordPress 4.8 among other changes, represented the replacement of the HTML widget by another one – theoretically better – that incorporated the complete TinyMCE editor with its visual tab and that of HTML.

But it turns out that this was quite a problem for many users, since the new widget did not support lots of scripts that users had in their HTML widgets .

The result is that in the first days of August we will have the WordPress update 4.8.1 that, between bug fixes and those things, will return the old HTML widget now called from HTML custom which has given us so many joys and solutions for years.

And we will still have the text widget with its visual editor and HTML for things more normal s. In fact, when you put code in this new WordPress widget will encourage you to use the custom HTML widget instead, a good idea.

How to change the name of the WooCommerce SKU to whatever you want

It is true that the SKU, normally used as a reference number for inventories, etc., is not usually used much in online stores in Spain, as it is often more useful for other uses, so in this article we will learn Quickly change the name of the WooCommerce SKU .

For example, you might prefer to use this field to enter the Book ISBN, or the IBAN and clearly see and see it identify it as such in the store.

So, in case you ever have the need, let's see how to change the name to the WooCommerce SKU to your liking.

To do this you just have to add the following code to your customizations plugin or file functions.php of the active theme (preferably theme child ).

// Change SKU text to something else – this code in your functions.php

function translate_woocommerce [19659009] ( $ translation $ text $ domain ) {

if ( $ domain == ' woocommerce ') {

switch ( $ text ) {

case 'SKU' :

$ translation = 'ISBN' ;

break ;

case 'SKU:' :

$ translation = 'ISBN:' ;

break ;

} [19659002] }

return $ translation ;


add_filter ( 'gettext' 'translate_woocommerce' 10 3 [19659009]) ;

/ * Change the text SKU in WooCommerce by another word

* /

add_filter ( 'gettext' [19659009] 'change_sku' 999 3 ) ;

function change_sku ( $ ) translated_text $ text $

domain ) {

if ( $ ] text == 'SKU' || $ text == 'SKU:' ) return 'IBAN' [19659000];

return $ ] [translated] ] ;


How to troubleshoot the Divi Builder time limit error

One of the ugliest and most annoying errors you can find with Divi or your plugin is that does not load the layout for a Divi Builder time limit error .

I mean when you open a layout page with Divi or open the visual layout and instead of loading the layout divi you see this ugly, and disturbing, message, and it does not load.

 Divi Builder time limit error

Solutions to the Divi Builder time limit error

The error message leaves little room for doubts, and the first possible culprit points you out, when he encourages you to " Manage your add-ins ", which refers to plugins.

Deactivates plugins

If you press the red button it takes you, in another tab, to the WordPress plugin management screen, and it's not a bad idea, could be simply that some plugin consume a lot of resources .

Now, is not always a solution because imagine that you only have active WooCommerce and you can not do without – as is logical – from the online store.

If disabling non-vital plugins does not solve the problem we will have to resort to more radical solutions.

Changes PHP version

Sometimes Divi can fail if you are using a PHP version prior to 5.6.x . So change your version of PHP to a higher one as I explained here .

Disable third-party plugin checking by Divi

One possible solution is that Divi does not check plugins of third parties . I usually do not recommend modifying main files of anything but yourself, decide if you use this method or another, unless you know how to do it.

To do this you must open the file wp-content / plugins / divi-builder / includes /builder/core.phpand on line 1405 you'll find this line of code:

Well, well you only need comment it so it does not run, like this:

Increase the maximum line size

Another possible solution , which works in many situations is to add to your file .htaccess which you'll find in the same directory as the file wp-config.php , the following command:

Limit memory consumption

If none of the above methods works, you can also apply a command to your file .htaccess in this case for Limit the consumption of memory :

I hope some of these tricks have solved your problem. If you have found another solution, you can tell us in the comments.

Loading …

That may also help you:

How to know when to change hosting for your WordPress

I've always said that the hosting business is not done with the user in mind but – at least initially – It was created to serve programmers and agencies, and the result is that is not an easy service to hire, and consequently it is difficult to get the right hosting for your WordPress .

Fortunately this is changing and the very fact of hosting specialized WordPress is already a success. Well, it does not make sense that WordPress is so easy but that hosting, necessary to install it, was a stumbling block to your website.

The democratization of the web

The democratization of the web has created a world of opportunities for entrepreneurs, freelancers and SMEs that can not afford to hire a specialized agency or programmers, and thanks to WordPress, to topics like Divi and the thousands of free plugins for WordPress, today anyone can have their website or ecommerce for a ridiculous amount of money .

But if you already have a website hosted on a hosting, you are probably not taking advantage of the advantages that these companies offer today, largely due to the fact that the hosting business is still not a facility it is not intended, as I was saying, for the user.

Years ago changing companies telephony was an inf Hello, but now it's a matter of a call, and you do not have to have technical knowledge of " your " technologies . The day it is the same change of hosting we can say that this business will really have entered the XXI century.

This makes us consider a migration to be cold sweats, especially when we face the peculiarities of this world of hosting, not created for humans. And one gets to think if they will do it on purpose, to tie you forever .

Hiring hosting is like entering a sect

One of the characteristics of every sect is Create your own terminology to build loyalty to your own and alienate others. Through his own lingo he puts limits to understanding. And this happens to a large extent with hosting companies .

When you hire hosting you face terms that you do not use regularly and that although you hire from time to time you will not use often either. [19659003] I am referring to words like inodes, MySQL, CentOS, cPanel, Plesk, VPS, Cloud, transfer rate, virtualization, Onyx, etc. And to complicate it even more most of the web hosting plans that you will find will never be comparable because each company calls different services equal or similar.

This causes that the most normal thing is that we have been wrong with hosting company more than once but of course how to deal with a change when you do not even understand what they are talking about? In the end you end up staying at the same hosting company for life, surely paying more and for less and worse services .

How to choose a hosting company for WordPress

[19659003] If this is your first time when hiring hosting I'll give you a few tips, take note of the minimum you should have:

  1. WordPress installation at a click.
  2. Backup copies daily.
  3. Enough space do not hire anything that offers less than 10GB of disk.
  4. PHP 7 (you know, faster, safer, requirement / recommended for WordPress)
  5. Free SSL Certificates .
  6. WordPress-specific tools let it be noticed that they work. Today it is very typical to see long-term hosting plans that have simply been renamed and put on the WordPress label.
  7. Free migrations .
  8. Specialized WordPress support . [19659027] (Extra) – Do not blindly trust the recommendations of bloggers they are not always sincere, but motivated by juicy membership fees. I usually have sponsorship from hosting companies, and the only thing that saves you from my recommendations is that I am lucky enough to be able to choose, so I only recommend what I would recommend anyway without charging anything, I will not commit 10 years of confidence from my readers for a few euros, that's for sure.

When do I know I have to change my hosting?

 change my hosting

Well, to begin with, if your current hosting company does not comply with the recommendations that you I do in the previous point would be a good sign that the time has come.

But let's make it clearer.

You have to change hosting if …

  • You have constants security problems . This is indicative that your hosting does not care about you, your client, or take action. Any company can have a problem one day, but it is not normal, even average, have them usually and without real solutions.
  • You have constants speed problems or falls and your hosting does not offer solutions . Hosting is a service, not a mere rental of gadgets and they should advise you.
  • Your hosting does not offer WordPress facilities at a click . It does not make sense, nor do the developers make installations by FTP manuals, being able to do them in less than 1 minute with the specialized hosting installer.
  • You do not have daily backups . Your website is your business, your showcase to the world, and you can not afford not to have a backup network in case of disaster. If your hosting does not offer backup copies included in the price of the hosting is indicative that does not care about you, flee! No hosting company should offer plans without backups, or by entering Price struggle.
  • Your hosting does not offer PHP 7 or a simple way to change the version. PHP 7 is 100% faster and safer than previous versions, there are no excuses. It is a commitment that your hosting company must take with the security and speed of the websites of its clients .
  • Your hosting does not offer you free SSL certificates and I do not mean to the hook of the first year free. The growth of ecommerce and its consolidation depends to a large extent on being able to offer secure websites, and since the Let's Encrypt initiative came to light it does not make sense that your hosting does not offer them to you, and in a simple way, not like in some hosting, that only you put it reluctantly.
  • Your hosting does not have specific tools for WordPress . It is not worth calling WordPress Hosting to the web plan of a lifetime. You must have specialized tools for WordPress.
  • Your hosting does not offer free migrations from another hosting, or almost more important, it does not help you if you migrate to another hosting. In this world every service company must be aware that it must compete and serve even the user who leaves your service today; your attitude today can even make you come back tomorrow with them .
  • Does not offer specialized support in WordPress . And this is what has always scolded me most of the hosting companies. It does not make sense to help you set up your email client, regardless of the version or operating system you have on your computer, at the same time you are denied help on an application (WordPress) that you have installed on YOUR servers, from YOUR installer, and used as an argument of sale (Hosting WordPress) . The support staff of a serious company that offers WordPress hosting must know WordPress, know it deeply and give solutions. Already if they also attend queries of themes and plugins is for note at least for the most popular.

There are many more tips perhaps minor, that could give you, like ] alerts that should make you think about changing hosting such as:

  • That your hosting company does not support 24 hours a day, 7 days a week . Are not supposed to give hosting to any part of the world of a service that must be online 24 hours a day, 7 days a week? So why are there hosting companies that only serve from 9:00 a.m. to 7:00 p.m. local time? Or hosting companies that do not give support on weekends?
  • That your hosting company does not have a telephone number where you are served in your language. We have not been in that we do not have to be programmers or experts in hosting to have this service? Well choose a company that serves you in your language, and have a customer service phone, better if it's also for support.
  • Let your hosting company not bet on the WordPress community . This is vital, at least from my point of view . Surely you know that any company has attention and details to its large customers, and the WordPress client has a nexus of union, the community. So if you do not see your hosting company (WordPress) in WordPress events, it's just that you only use WordPress as a commercial hook, which is not bad, but in my opinion it's not enough.

And you, do you think it's your turn? and change hosting?

Tell us about your experience, so we have more opinions than mine to evaluate this relevant decision for our websites.

Loading …

That may also help you:

Equivalence surcharge in WooCommerce, WordPress online store

All countries have their tax peculiarities, and in Spain there is the so-called equivalence surcharge, a special type of VAT ]which sometimes you should consider in your online store, so let's see how to apply the equivalence surcharge in WooCommerce .

What is the equivalence surcharge

equivalence surcharge is a special VAT regime, mandatory for retailers who sell finished products directly to the final customer so it is not something that applies to a few users, but to any retail ecommerce.

applies to both autonomous and community property.

What are the advantages and disadvantages of the equivalence surcharge

  • ? As a simplified way to pay VAT, its main advantage is that you should not perform VAT declaration or carry VAT book like the other self-employed .
  • You do not have to issue invoices to your customers, only cash receipt or order confirmations, unless they expressly request it. In any case you do not have to declare VAT equally.

Now, its main disadvantage or disadvantage is that, in compensation of not having to make a VAT declaration you have to pay more VAT .

Who should not apply the equivalence surcharge

Seen the above, almost more than who applies should we say to whom the equivalence surcharge does not apply :

Does not apply to retailers, natural persons or entities under the regime of income attribution in the Income Tax of Individuals (civil companies that do not have a mercantile purpose, recumbent legacies or communities of goods when all their partners, co-owners or participants are natural persons) who sell the following products:

  1. Services.
  2. Wholesale trade.
  3. Industrial activities in general.
  4. Motor-driven vehicles for driving on roads and their trailers. [1 9659009] Ships and ships
  5. Airplanes, light aircraft, sailboats and other aircraft
  6. Accessories and spare parts for means of transport included in the preceding numbers.
  7. Jewelery, jewels, precious stones, natural pearls or cultivated, objects made totally or partially with gold or platinum. Fine jewelery containing precious stones, natural pearls or the aforementioned metals, even in the form of bathed or plated, unless the content of gold or platinum has a thickness of less than 35 microns.
  8. Articles of clothing or made-up personal adornment with skins of luxury character. Except as provided in this number, bags, purses and similar objects, as well as garments made exclusively with scraps or waste, heads, legs, tails, trimmings, etc., or with ordinary or imitation leather.
  9. of original art, antiques and collectibles defined in article 136 of the VAT Law.
  10. Goods that have been used by the transferor or by third parties prior to their transfer.
  11. Apparatus and accessories for the poultry farming and beekeeping
  12. Petroleum products whose manufacture, import or sale is subject to Special Taxes.
  13. Machinery for industrial use.
  14. Materials and articles for construction of buildings or developments.
  15. Minerals, except coal.
  16. Irons, steels and other metals and their alloys, not manufactured.
  17. Investment gold defined in article 140 of the VAT Law. [19659032] How the equivalence surcharge applies to billing

    The retail merchant with an equivalence surcharge scheme does not have to invoice in any special way to its final customers.

    Simply applies the VAT

    However the thing changes at the time of making the payments, since the supplier will charge the retailer VAT invoice plus the equivalence surcharge established on the basis of a official table

    Types of equivalence surcharges

    The types of equivalence surcharges for each type of VAT are as follows:

    • 5.2% for articles that have a VAT at the general rate of 21%.
    • 1.4% for articles that have a VAT at the reduced rate of 10%.
    • 0.5% for articles that have a VAT at the reduced rate of 4%.
    • 0.75% for tobacco

    Knowing this, a wholesale merchant will create the invoice to the retailer applying the VAT and then the equivalence surcharge.


    • Product price = € 1,000
    • + VAT 21% = € 1,210
    • + RE 5,2 % = 1.273 €

    How to apply the equivalence surcharge in WooCommerce

    If you have understood all of the above, if you are retailing that you sell to final customer you can receive invoices with equivalence surcharge from your suppliers, but this does not affect your products that you sell to your customers, which you will bill as usual with the corresponding VAT.

    What's more, you do not even have to invoice customers it's worth with the proof of the order, precisely for using the equivalence surcharge. However, if any customer asks for an invoice you can do it without problem, you will still not have to make the VAT declaration.

    Now, if you are a wholesaler and you serve your ecommerce to customers under this special regime of the equivalence surcharge then yes you will have to charge them and invoice them with the corresponding equivalency surcharge in WooCommerce .

    If all your customers are retailers with equivalence surcharge it is very easy to configure WooCommerce to sell them online

    Simply when you create a tax add a second line with the equivalence surcharge corresponding to that VAT rate, based on the table we saw earlier.

    Now well, if you have a mixed customer typology in which, either not all are retailers, but you also sell to end customer, or even being retailers are not all n welcome to the equivalence surcharge you have a problem .

    The problem is that WooCommerce applies taxes by zones, not by type of user which is what you need. ] Equivalence surcharge in WooCommerce with code

    One way to apply it would be the following:

    1. You create a new user profile, with the Members plugin for example, with the slug clienteconre .
    2. You create the new tax in the WooCommerce settings as we have seen before and name it, for example, RE .
    3. Add the following code to your customizations plugin or mu-plugin .

    What the code does is check if the user who is making the purchase has the profile clienteconre and in the affirmative case it automatically applies the tax with equivalence surcharge that we configure in the settings.

    Equivalence surcharge plugins for WooCommerce

    To solve it, the best thing is to use plugins and that I know only there is one free.

    It is precisely called WooCommerce Equivalence Surcharge from @josesan which in addition is free .

    Once installed you have to create your taxes as always, some with an equivalence surcharge and others without surcharge of equivalence. So far easy.

    The trick is:

    1. Create a new user profile named, for example, client with re or retail client whatever you want . You can do it with the Members plugin one of my favorites.
    2. In the plugin settings, associates the user options and vat type with the newly created user profile and the special taxes created .

     equivalence surcharge on woocommerce

    Then, when a customer is a retailer you will have to change the profile . So also in these cases the plugin must be accompanied by a procedure, by which the user has to register before buying if you are a retailer by form, direct or as you decide.

    As you may have seen the strategy is not simple, but at least we have the option, and it is totally operative, and the plugin free .

    Other plugins

    There are other plugins for the equivalence surcharge in WooCommerce , but I have not been able to prove them yet (unless the authors give me a license to the effect to compare them), these:

    The strategy of these plugins is different, since is the client who chooses at the time of registration / purchase if you have to apply the equivalence surcharge or not.

    If you know of any other method, or have tried any of the above, you tell us in the comments.

    Loading …

    That may also help you:

Use of the compensation number to avoid duplicate blog entries

Let's see, imagine the situation …

The problem

You are maquetando a page with Divi that will include several blog modules. For example:

  • A row with a blog module and a single entry of a specific category at full width
  • A second row in which you will show, now in grid, more entries of the same category.

Something like that …

If you notice, the first blog module (full width) shows only one entry, but if we do not do anything and put another blog module, in this case grid style, it will repeat the post of other blog modules of the same category.

Another example:

  • A row with a carousel of the last 3 entries in a category.
  • A second row with a blog module with the rest of the entries in the category.

It would be such that …

In this case the only thing that changes is that the first module is not blog but post slider but the effect is the same .

If the slider has 3 entries and we do not do anything, in the next blog module of the the same category tickets will be repeated. And the reality is that we have not told him to do anything different.

Ok, now comes out who knows everything to say that " pussy, then do not put 2 blog modules of the same category "but what if I want to? Hey! What if I want? . Well, that. The examples I think speak for themselves.

The solution

The trick, the solution to this problem, very very common is that we have to tell each blog module if we want that omits entries .

And the best thing is that Divi has contemplated that possibility.

The magic arises in the settings of the same blog module in something called " compensation ". I know, the name is not very lucky, much less explain what it is for, at least until you do not know what it does.

 compensation number module divi blog

This section, whose default value is zero (0) is precisely used for specify how many of the last entries we are not going to show in the blog module .

Thus, if in the first example in a previous module it showed a input and I do not want to repeat what number I put ?, Then the 1, so that in this second blog module I show x entries minus the last one, which already comes out in the previous module.

As you can see from the capture, by putting the second blog module the number of compensation to 1 the entry of the full-width blog module on it is no longer repeated.

The same thing if the first module is a post slider with the proviso that if in the slider I am showing 3 you enter the number of compensation that I should put in the next blog module will be that, 3, so that they do not repeat.

What we talked about before. Only remember to put the compensation number to the same number of entries shown in the previous module .

Of course, if this is what I want, there are situations in which the designer is likely to I want them to repeat themselves, that's what they're like.

What was easy? It is the typical tontuna that brings you upside down but, fortunately, when you discover the solution it turns out it was silly, but you had to discover it right?

Enjoy it!

Loading …

It may also help you:

How to change the PHP version for your WordPress • WordPress Help

As you probably already know, to install WordPress, like almost any other CMS, your server needs a series of pre-installed software. [19659003] The list is simple:

  • Apache or Nginx server.
  • PHP.
  • MySQL or MariaDB.

What is never so obvious is that this software, like any other, also has versions and, like in any other software, the versions matter for many reasons.

Why should I update PHP?

I think no one is missing that is better to have the latest versions of all software, like WordPress, for optimization and security mainly but also for functionalities, but above all for performance and security.

And one of the most important softwares, in which the core of WordPress is programmed, is PHP, of which your hosting should ner installed the latest stable version .

If you need arguments to claim your hosting that has the latest versions of PHP here are a few …

That's what WordPress recommends

If you're up to date with the news about WordPress has long since changed the hosting requirements page to install WordPress, going from requirements (at the moment) to recommendations.

In particular, what is recommended is:

  • PHP version 7 or higher
  • MySQL version 5.6 or higher, or MariaDB version 10.0 or higher

So that should be the basis you should consider before hiring a ] WordPress specialized hosting .

Your website will be faster

The change from the previous version (PHP 5.6.x) to PHP 7.0 was brutal, and involves significant improvements in speed, performance and optimization .

It suppose that you will consume less resources of hosting in particular RAM, but above all that your web applications, WordPress in our case, will work much faster, to work on much more optimized code

As a quick glance here you have a graph of the impressive performance improvement of PHP 7.0 versus version 5.6.16 in different CMS, WordPress included .

The improvement is over double in all systems.

And in the following graph, you have the comparison also against HHVM the special "PHP" used by Facebook , for example. Compared with HHVM, the improvement is lower than in previous versions of PHP, but already breaks the karma that HHVM is faster than PHP .

Your website will be more secure

In each software version unsafe and obsolete codes are deleted .

Specifically, in PHP 7 ASP tags were removed as well as label compatibility