ilyapokrov
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Remove all categories on the homepage.@senff,
I didn’t ask about that) I know how to specify an arbitrary page.
The problem is that this custom page displays product categories by default. In this case, it shows only the main categories, and the child ones are not displayed.
This is bad.
I need to remove all this structure by default and write in the following formThe title of the first parent category.
Block 1, Block 2, Block 3, etc.The title of the second parent category.
Block 1, Block 2, Block 3, etc.@hassanzafar107,
Help me please)- This reply was modified 3 years, 11 months ago by ilyapokrov.
Forum: Plugins
In reply to: [WooCommerce] Displaying product descriptions on taxonomy pagesI close the question.
Forum: Plugins
In reply to: [WooCommerce] Displaying product descriptions on taxonomy pagesYes, thank you, it works.
@razyrx,
Thanks for the help. But where do I put it?))) I don’t understand at all.Forum: Themes and Templates
In reply to: [Vantage] How to remove generation of image copies@siteorigin,
Thank you! With the code below, I have removed almost all unnecessary image sizes.// отключение генерируемых размеров изображений function shapeSpace_disable_image_sizes($sizes) { unset($sizes['thumbnail']); // отключение миниатюр unset($sizes['medium']); // отключение среднего размера unset($sizes['large']); // отключение большого размера unset($sizes['medium_large']); // отключение среднего большого размера unset($sizes['1536x1536']); // отключение 2x среднего большого размера unset($sizes['2048x2048']); // отключение 2x большого размера return $sizes; } add_action('intermediate_image_sizes_advanced', 'shapeSpace_disable_image_sizes'); // отключение масштабируемого размера изображений add_filter('big_image_size_threshold', '__return_false'); // отключение других размеров изображений function shapeSpace_disable_other_image_sizes() { remove_image_size('post-thumbnail'); // отключение изображений, добавляемых через set_post_thumbnail_size() remove_image_size('vantage-grid-loop'); // отключение других добавляемых размеров изображений remove_image_size('vantage-thumbnail-no-sidebar'); // отключение других добавляемых размеров изображений remove_image_size('vantage-carousel'); // отключение других добавляемых размеров изображений remove_image_size('vantage-slide'); // отключение других добавляемых размеров изображений } add_action('init', 'shapeSpace_disable_other_image_sizes');
Except for one.
Could you tell me the name of a 100×100 image? Can’t determine who creates it. But definitely not a plugin. It is created either by the WordPress itself or by the Vantage theme.Forum: Themes and Templates
In reply to: [Vantage] How to remove generation of image copies@misplon,
Found these lines in the Vantage theme:set_post_thumbnail_size( 720, 380, true ); add_image_size( 'vantage-thumbnail-no-sidebar', 1080, 380, true ); add_image_size( 'vantage-slide', 960, 480, true ); add_image_size( 'vantage-carousel', 272, 182, true ); add_image_size( 'vantage-grid-loop', 436, 272, true );
They submit at least 5 images. I could comment them out, but it breaks when the theme is updated. How do I implement this in a child theme?
Forum: Plugins
In reply to: [WooCommerce Cloak Affiliate Links] Search engines swear at 301 redirects@datafeedrcom,
By the way, I noticed another flaw.I have updated my catalogs and when I click on a product, there is no transition. For a long time I was trying to figure out what it was connected with, but I still did not understand.
The problem is the following – the browser reports that the page is not available because the site has redirected too many times. I checked the .htaccess file – it contains everything according to the instructions, nothing more.
Strange, but some products from the catalog go to the partner store.
I noticed that in the product cards, with which everything is ok, a normal affiliate long link is indicated. And in the product cards of non-working products, the link has been replaced with a short one, which is prescribed by your plugin.
bertal.ru shows this:
HTTP / 1.1 302 Found Server: nginx Date: Fri, 11 Dec 2020 17:00:50 GMT Content-Type: text / html; charset = UTF-8 Connection: keep-alive X-Powered-By: PHP / 7.4.12 X-Redirect-By: WordPress Location: https://site.com / tovar / 18725 / Strict-Transport-Security: max-age = 31536000;
We managed to fix the problem by disabling the plugin and updating all URLs on affiliate products.
Forum: Plugins
In reply to: [WooCommerce Cloak Affiliate Links] Search engines swear at 301 redirectsI want to ask you one more question. Maybe you can tell me.
I will give as an example another site similar to mine:
https://lagarderob.ru/Men-Armeiskie-Botinki/
This site has the same principle. When you click on a product, a redirect to the vendor’s website occurs. But search engines do not determine that this is a 301 redirect. And this site has no intermediate page.How do you achieve the same result?
If you look through the inspector, then my link looks like this:
href = "https://site.com / tovar / 11836 /"
Whereas the above site has links like this:
href = "/ p / 18962816 /? view = 5fd309347cfbe & src = image"
Forum: Plugins
In reply to: [WooCommerce Cloak Affiliate Links] Search engines swear at 301 redirectsI think you understood me correctly and directed me to find the right solution)
I did everything as in the proposed article. But nothing works, because I don’t know the code well and can’t correct it for my site.
But still, I want to thank you! You tried to help me solve my problem.
As a token of gratitude, I will write a good review for your plugin, as it really does a great job. Despite the fact that my problem is not solved, thank you again!
I had this attribute:
<param name="gender">None</param>
I made this code:
function my_map_data( $data ) { $map = array( 'gender' => 'Пол', 'None' => 'Не определено', 'In this' => 'Array' ); return ( array_key_exists( $data, $map ) ) ? $map[ $data ] : $data; }
It all worked out! Thank you very much!
I hope I did everything right =)
@pickplugins,
Not exactly. I moved the slider so that it doesn’t appear on the first screen when the page loads. But the problem still remains-slides are initially loaded into the column.Forum: Plugins
In reply to: [Product Slider for WooCommerce by PickPlugins] Change image size@pickplugins,
Thanks! It helped me.Forum: Plugins
In reply to: [Import any XML, CSV or Excel File to WordPress] Enumeration parameter@wpallimport,
Thanks! It helped me.Forum: Plugins
In reply to: [WooCommerce Cloak Affiliate Links] Search engines swear at 301 redirects@datafeedrcom,
I will try to explain to you) Since I am convinced that this is currently a necessity for search engines. When the search engine analyzes the page, it realizes that this is not a full page, but just a seal and lowers the position in the search results.
For example, I will give a site that implements the correct approach (https://shopsy.ru/). There is the same principle, when you click, you go to the page of the partner site. But search engines for some reason do not see that this is a 301 redirect.
I would like your plugin to have such an opportunity. It would be priceless)) Or is it somehow possible to implement it now?I added the script you suggested:
function my_get_cat( $description ) { $description = explode( ' ', $description ); return reset( $description ); }
And specified the following entry in the category input:
[my_get_cat({description[1]})]
It works. Thank you very much!