Robots.txt file for wordpress

(No Ratings Yet)
Loading...

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

Change the number of products on the page in WooCommerce

(No Ratings Yet)
Loading...

Sometimes for any category of WooCommerce products, or for a custom taxonomy, you need to specify the number of products on a page that is different from the default.

You can change the number of products in a row using the loop_shop_columns filter: 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...

Resizing thumbnails in WooCommerce

(No Ratings Yet)
Loading...

After the next update of WooCommerce, not all thumbnail sizes can be changed through the WordPress admin panel. It used to be like this:

Now the settings are moved to the menu item "Appearance -> Customize"
Read more...

Страница 2 из 212