How to add onclick to a link in WordPress

(No Ratings Yet)
Loading...

If we want to add the "onclick" attribute to the link, then WordPress will remove it when saving the post.

To prevent this from happening, allow the use of this attribute:
Read more...

Robots.txt file for WordPress – plugin

(1 votes, average: 5.00 out of 5)
Loading...

robots.txt

Making the right robots.txt file for WordPress is very important. Thanks to him, search engines will know which pages to show in the search. That is, the search results will be just what you need, without duplicating WordPress pages. Read more...

Remove width and heigth attributes from WordPress thumbnails

(No Ratings Yet)
Loading...

By default, the_post_thumbnail () function displays html post thumbnails in this way:

<img width="400" height="500" src="" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" 
alt="" srcset="" >

In some cases, it is necessary to remove the width and height attributes of the displayed image. To do this, you can use the wp_get_attachment_image_src () function filter: Read more...