Display content in WordPress without images.

I myself once encountered such a problem when writing a block “Latest publications” on the main page of the site. The thing is,, that the block was small, and the display of images in this block could spoil the appearance of the main page of the site. I don't remember how I solved this problem, it was a long time ago but the decision, which was proposed by the author of the script Alexander Kolosovsky, I liked it and most importantly it works, code snippet was checked and approved by me ).

 

In the part of the site where it is necessary to display the content of the post without images, we write:

Then in the functions.php file we add a code snippet:

 

Thanks again to the author of the script Alexander Kolosovsky for the excellent code!


Купить хостинг WordPress
WordPress tutor
Online tutoring services. List of courses I teach
  • Basic web design course;
  • Site layout;
  • General course on CMS WordPress and continuation of the course on template development;
  • Website development in PHP.
Read more on the page WordPress tutor
*/

Nikolaenko Maxim

Director of web studies ProGrafika. I am developing, website design and promotion. Always glad to new blog readers and good clients.


You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Templates for WordPress
The best hosting in Ukraine
Stable hosting for Drupal