Tag Archives: wordpress

Divi mobile menu: collapse nested menu items

Published in Blog

Collapse Divi mobile menu

If you have a Divi-powered website with a large menu, contained nested menu items, you can face with the following issue for the mobile and tablet views: the nested menu expands, holds the whole screen and some menu elements can be hidden. There is a hack to make the mobile menu look more compact and…

WordPress snippets 2019

Published in Blog

WordPress Code Snippets

Disable WordPress database revisions: wp-config.php add above ‘require-once’: Delete revisions from WordPress database: Perform the following SQL query on your database in PHPMyAdmin Customize “Read more” button functions.php Add “Read more” button for excerpts functions.php…

WordPress AJAX: a simple example without plugins

Published in Blog

Simple Wordpress AJAX call

Here is a quick and simple example of how you can use AJAX call in WordPress without a plugin. This can really help if you are stacked in a mess of big AJAX tutorials around WordPress. AJAX call from your Java Script: PHP-part, placed in functions.php: That’s it! Cheers!…

How to remove extra p-tags from shortcode in WordPress? Wpautop function

Published in Blog

When you perform “add_shotcode” in your functions.php, WordPress automatically and unnecessarily adds extra <p> tags above and below the shortcode content. In most of the cases, you don’t need this strange feature. To stop WordPress from adding these empty p-tags you can use this snippet:…