hugodebe
Forum Replies Created
-
Forum: Plugins
In reply to: [W3 Total Cache] Minify HTML breaking the wp video playlist /*<!–[CDATA[*/Hi francesdath, thanks for sharing.
That’s exactly the setup I have.
I would love to be able to minify html. It used to work in a recent past…
It has been more than a month now without this great feature… Any update from Google? Thanks in advance
Forum: Themes and Templates
In reply to: [Pinnacle] Deliver the correct size for image galleryHi Ben, If I disable the theme gallery, the lightbox is disabled as well.
As I want to keep the theme lightbox, I made a custom version of the Toolkit Plugin where I replaced “400” by “230” (gallery.php line 152). I’m sure you don’t recommend to do so, but I now have what I wanted.
<img class="light-dropshaddow" title="..." alt="..." height="230" width="230" sizes="(max-width: 230px) 100vw, 230px" > src="http://example.com/wp-content/uploads/2016/10/image-230x230.jpg" srcset=" http://example.com/wp-content/uploads/2016/10/image-230x230.jpg 230w, http://example.com/wp-content/uploads/2016/10/image-60x60.jpg 60w, http://example.com/wp-content/uploads/2016/10/image-230x230@2x.jpg 460w" >Both the 400×400 and 400×400@2x image sizes are not anymore generated when uploading. The 230×230@2x size images are automatically created for all my old images. It sounds perfect!
I will have a deeper look to bulk delete the old 400×400 thumbnails, to save space.
Many thanks Kadence for the support.
Forum: Themes and Templates
In reply to: [Pinnacle] Deliver the correct size for image galleryI’m working around something like this to override the sizes attribute:
function my_attachment_image_attributes( $attr, $attachment, $size ) { if ( $size === 'thumbnail' ) { $attr['sizes'] = '(max-width: 230px) 100vw, 230px'; } return $attr; } add_filter( 'wp_get_attachment_image_attributes', 'my_attachment_image_attributes', 10, 3 );Without success for now…
Forum: Themes and Templates
In reply to: [Pinnacle] Deliver the correct size for image galleryHello Kevin, thanks for the plugin! It took few hours as the website has more than 3000 images. All the images have now a 230×230 thumbnail, but the browser continue choosing the 400×400 option.
The code is the same :
<img class="light-dropshaddow" alt="" src=" http://example.com/wp-content/uploads/2016/10/image-400x400.jpg" srcset=" http://example.com/wp-content/uploads/2016/10/image-230x230.jpg 230w, http://example.com/wp-content/uploads/2016/10/image-60x60.jpg 60w, http://example.com/wp-content/uploads/2016/10/image-400x400.jpg 400w" sizes="(max-width: 400px) 100vw, 400px" height="400" width="400" >I had some readings about responsive images in wp, but I’m not sure how to modify the src and sizes attributes to 230px instead of 400px.
1/ Is the 400px parameter set by the theme and can I edit the template in my child theme?
2/ Do I need a filter to redefine the src and sizes attributes?
3/ To go further, is it recommended to unset the 400×400 thumbnails and bulk delete them to save space?
Thanks in advance for any help
Forum: Plugins
In reply to: [W3 Total Cache] Minify HTML breaking the wp video playlist /*<!–[CDATA[*/Hi, I added [CDATA to the ignored comments and I tried all the possible configurations available in the HTML & XML section, but I continue having the same problem. The same with CDATA or [CDATA[…
Please, let me know if there is something else I could try.
I’m thinking about duplicating the website in another server to downgrade the plugin and/or wp to try to find when this problem happened.
Forum: Themes and Templates
In reply to: [Virtue] Translate virtue portfolio_linkThanks for this information.
If my understanding is right, in Premium the solution would be to create a parent type for each language. Don’t you think the portfolio navigation buttons could act, by default, the same as the post next/previous buttons. I mean going through the post list in the current language and be hidden, respectively, at the end or the bottom of the list? Could that be a feature request?
I am already a customer but I didn’t really want to install Virtue Premium on that specific project as I don’t need most of the features. I will reconsider that choice or maybe stop using the portfolio navigation for now.
Forum: Themes and Templates
In reply to: [Virtue] Translate virtue portfolio_linkThanks for the information. I’ve updated the theme and my child theme, and then I was able to set page id for each language into the the Polylang table.
But I still have a problem regarding the portfolionav previous and next buttons. The navigation goes through the portfolio posts in the current language, but at the end of the list, it continues through the portfolio posts in another language.
Is there a way to set the loop only for the posts in the current language?
Thanks in advance
Forum: Plugins
In reply to: [Polylang] Tracking visitor with google analyticsHi, I’m also looking for to set different properties in Google Analytics for each language.
Do you have any progress with this conditional syntax to set a GA tracking code by language/domain?
Forum: Themes and Templates
In reply to: [Virtue] Home Icon Menu translation strings missingI get it! Thanks a lot
Into Polylang, the strings appear now under the group
virtue_child.The only error I get from now in Google Search Console is regarding the Language Sitemap created by Yoast SEO.
domainlang1.com/language-sitemap.xml
As mentioned by interactivebonnier above:
each domain on a site should have its own sitemap.xml url
It looks to be problem to have several domains in the same sitemap.
To disable it, go to the Yoast SEO settings > XML Sitemaps section > Taxonomies tab and switch off Languages (language)
Yoast SEO and Polylang are working well together.
I also have a different domain for each languages and I automatically get a sitemap per domain/language:
domainlang1.com/sitemap_index.xml
domainlang2.com/sitemap_index.xmlForum: Themes and Templates
In reply to: [Virtue] Home Icon Menu translation strings missingYes, I use a child theme. Could you explain me a bit how to:
override the WPML config or manually add the strings to be available through the string translation.
I’m not familiar yet with WPML config, neither adding the strings manually, but I tried, adding something like this in function.php:
// Virtue Home Icon Menu translation pll_register_string('title',$virtue['icon_menu'],'virtue'); pll_register_string('description',$virtue['icon_menu'],'virtue');I can see 2 new strings in the Polylang table, but they are empty of text. What am I missing? Do I need to add something (like pll_) into icon-menu.php into my child theme?
Thanks in advance
Thanks pavloborysenko for your feedback and video. I’m happy you replicated the problem I have.
I will consider choosing one plugin, but it’s difficult as both are very important to my customers.
Please, could you recommend compatible plugins for discounts, with a free version if possible?
–
The main feature I’m looking for is BUY 3 GET 4.
More exactly: BUY X GET X+1 (where X is the minumum product quantity set to get the offer on a selected product or category, for example 3 units). Then the logic continue that way BUY X+1 GET X+1, Buy X+2 Get X+1, etc. Until we get to BUY 2X GET X+2. And then BUY 2x+1 GET X+2, etc.
Thanks for your feedback.
I’m actually trying to make it multilingual with the Polylang plugin.
Any idea?
Here is my thread: https://wordpress.org/support/topic/multilingual-integration-with-polylang-wc-product-stock-alert-plugin