• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » Remove p Wrap Around Post Images in WordPress Genesis

By Abhishek Ghosh May 5, 2015 10:19 am Updated on May 5, 2015

Remove p Wrap Around Post Images in WordPress Genesis

Advertisement

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
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 :

Remove p Wrap Around Post Images in WordPress Genesis

That 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 :

Vim
1
2
3
4
5
function filter_tags_on_images($content){
   return preg_replace('/<p>\s*(<a .*>)?\s*(<img .* \/>)\s*(<\/a>)?\s*<\/p>/iU', '\1\2\3', $content);
}
 
add_filter('the_content', 'filter_tags_on_images');

The code is by Chris Coyier. It is telling – if you face p surrounding a , 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 wpautop().

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.

Tagged With how to take fullwitdth images in genesis wordpress
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Remove p Wrap Around Post Images in WordPress Genesis

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • Changing Data With cURL for OpenStack Swift (HP Cloud CDN)

    Changing Data With cURL For Object is Quite Easy in OpenStack Swift. Here Are Examples With HP Cloud CDN To Make it Clear. Official Examples Are Bad.

  • Steps To Install Nginx Plus on Ubuntu Server (HP Cloud)

    Here Are the Steps To Install Nginx Plus on Ubuntu Server Running on HP Cloud. Nginx Plus is the Paid Version of Nginx with Extra Features.

  • XCache Admin Page on Nginx-PHP5-FPM (Ubuntu, HP Cloud)

    Here is How to Setup a XCache Admin Page on Nginx-PHP5-FPM on Ubuntu Instance Running on HP Cloud. It Gives a Clear Graphical Idea of Caching.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy