Here is How To Remove p Wrap Around Post Images in WordPress Genesis. This is the First Step For Adding figure and fig caption and SVG in WordPress. Frankly, with current development, as we indicated before in micro format error fix in Genesis guide, those hobby developers without engineering degrees are frankly failing to keep pace with the modern upgrades in the web software development.
Remove p Wrap Around Post Images in WordPress Genesis : It is Not a Free Software
The basic problem all the users go in to is vendor lock-in. You paid for Genesis once, the source code is not open; there is no Freedom like in the Free Softwares. By default, in plain free WordPress themes, it is easier to manipulate the HTML dom elements and markups. We need to modify the basic features and add
and proceed towards enabling SVG+XML as post images by default. These are going towards radical structural and functional changes, so it is better to write a new Theme Framework as Free Software under Free Software Foundation’s coverage with some compatibility with non-Free software Genesis. We are not developing such, we are saying that, you must understand where from to start and stop.
These are not like Apache2 or PHP, too much work on these can be proved to be wastage of time. Free Software does not mean the price, it is the Freedom of sharing the code for other user’s benefit. That is the big difference with the Open Source concept.
WordPress is also a kind of vendor locking. PHP is not great software for performance and from the SEO point of view, you can not change from WordPress to a Python Free Software in one day.
Remove p Wrap Around Post Images in WordPress Genesis : What is the Problem?
The problem and desired stuff is this :
p thing is a bug of WordPress. Thats not fixed.
Remove p Wrap Around Post Images in WordPress Genesis
We will remove the p wrap by adding basic filter on Child theme’s
functions.php file, we will use simple PHP’s method of preg replace :
return preg_replace('/<p>\s*(<a .*>)?\s*(<img .* \/>)\s*(<\/a>)?\s*<\/p>/iU', '\1\2\3', $content);
The code is by Chris Coyier. It is telling – if you face
img etc, remove them. But it is actually sucking RAM – default is being filtered by this one. If we could modify from the core, it would eliminate the problem. There can be difference of fraction of milliseconds in non-cached page rendering. In this way, WordPress becomes more slower. The problem is of a thing of WordPress named
The problem of developing with non-Free software is that, they’ll make money with licensing tricks with the help of Free contribution. Thats why, we will not tell how to add
figure in this guide. You should covert your Genesis to custom own framework and then work by modifying codes from the core. There will be a tracking malware function, you need to remove it. Free Softwares also can have tracking features, but basically we’ll have documenting on how to remove them.