Forum Replies Created
-
AuthorPosts
-
November 12, 2015 at 7:58 pm in reply to: Lazy load / Infinite Scroll for Woocommerce Shop pages #535058
Hi Andy,
Yes I am aware of that, however they only allow paying costumers to submit tickets, and since I haven’t purchased anything from WooThemes until now, I am unable to do so.
Regards,
José
November 10, 2015 at 7:45 pm in reply to: Lazy load / Infinite Scroll for Woocommerce Shop pages #533625Hi Elliot,
I have opened a thread here , but from what I gathered, WooThemes usually only provides support to their paying costumers (which I am not) so I don’t have high hopes of getting an answer there.
The weirdest thing is I have previosuly developed another similar site with Enfold, also using the ‘sorting by newness’ option and I’ve never encountered any repeating products.
I recently even went back to that site and managed to implement the infinite scroll feature I had been discussing in this post and it is working without a problem there ( http://www.creativemary.com.pt ), which leads me to believe something went quite wrong with just this site, but I am not being able to figure out what, or how to fix it.The last thing I want is having to rebuild the entire site just because of this weird bug, but I am reaching a point where I’m not seeing any other solution, so if anyone can help me figure out what’s wrong here I’ll be forever grateful.
Best regards,
José AlmeidaNovember 9, 2015 at 2:35 pm in reply to: Lazy load / Infinite Scroll for Woocommerce Shop pages #532594Hi again,
Thanks for your suggestions.
I will go with your advice and stick to “hiding with CSS” as that seems to be the cleanest and most future-proof solution available.However, I am still struggling with the issue of having some products showing up more than once in my ‘shop’ page, although I think I have gathered some more information on the problem.
It seems to be a problem with WooCommerce itself, as I have tried totally deactivating the infinite scroll functionality, and even switching themes between Enfold and Storefront (WooCommerce default theme) and I still get some products showing duplicates (on different pages).
It seems to be related to the ‘sorting options’ in WooCommerce because I don’t see any duplicate products if I choose the ‘Default Sorting’ or if I ‘sort by average rating’, but I always get duplicate products if I ‘sort by popularity’ or ‘sort by newness’ / most recent (which is the sorting I want to use).I still have the development version available in case you want to do some tests on it, the credentials for access are still the ones provided on my OP.
I’m going to try and reach Woothemes support as well, since I believe this problem to be with their plugin, but any help you might be able to provide on this will be very much appreciated.
Best regards,
JoséOctober 29, 2015 at 6:38 pm in reply to: Lazy load / Infinite Scroll for Woocommerce Shop pages #527072Yes, I had already implemented that CSS ‘fix’, I was just wondering if there was a ‘cleaner’ way of preventing
avia_pagination
from loading on my shop archives, and without ‘hacking’ the theme’s parent files.But if there isn’t, this solution should be good enough, thanks for the support anyway!
EDIT: Ok now all of a sudden I am getting repeated products again with my lazy load. Now I’m even doubting if I ever had it fixed but just wasn’t spotting the duplicates. Once again I’m completely out of ideas on how to troubleshoot this, so any help in getting to the bottom of this would be hugely appreciated.
Best regards,
José- This reply was modified 9 years, 1 month ago by dZ_EB.
October 27, 2015 at 5:27 pm in reply to: Lazy load / Infinite Scroll for Woocommerce Shop pages #525654I have been fiddling around some more and I think I may have found a reasonable solution.
In my child-theme functions.php I added:
add_action( ‘woocommerce_pagination’, ‘woocommerce_pagination’, 9 );
add_action( ‘woocommerce_after_shop_loop’, ‘woocommerce_pagination’, 9 ); //add woo pagination again
I also tried adding:
remove_action( ‘woocommerce_after_shop_loop’, ‘avia_woocommerce_after_shop_loop’, 10);
add_action( ‘woocommerce_after_shop_loop’, ‘dz_woocommerce_after_shop_loop’, 10);function dz_woocommerce_after_shop_loop()
{
echo “</div></main>”; //end content
}with the intention of removing
avia_pagination
which became redundant, while still properly closing the content container, but somehow theavia_woocommerce_after_shop_loop
function is still being loaded and it was messing up my HTML structure (trying to close the content container twice), so I ended up removing that second block of code for now, and I think I’ll end up just hidingavia_pagination
through CSS.Any suggestions to improve this solution will be much appreciated.
EDIT:
As I have been doing some further testing to this, I came across some weird behaviour: if I’m using woocommerce’s default ordering for my products, the lazy load seems to work properly, however when I’m sorting my products by “Most Recent” (which is what I have to use for the production site), some products are being loaded more than once. I am currently at a complete loss as to how I can troubleshoot this problem so, again, any insight on this will be greatly appreciated.EDIT 2:
So this morning I gave it another go, tried changing my ‘Container Selector’ from.products
tomain.template-shop
and suddenly I no longer have repeating products, so I think that fixed my latest and biggest problem. Now I’d just like to know if there is a way to prevent avia_pagination from being loaded for the shop pages in my child-theme, but I can live with having it hidden through CSS.Best regards,
José- This reply was modified 9 years, 1 month ago by dZ_EB. Reason: found solution for issue from first edit
October 27, 2015 at 4:38 pm in reply to: Lazy load / Infinite Scroll for Woocommerce Shop pages #525582Hi Elliot,
First of all thank you for the quick reply.
I had already come across those lines in the code and thought something like that would work, but I am working with a child-theme so I can freely update my Enfold parent theme, and I tried copying that file over to the child-theme and do those changes there, but apparently I’m not able to override those config files like I normally do with child themes.
Meanwhile I’ve also tried doing those changes straight to Enfold’s parent files, and it does indeed work that way, although it needed some minor changes.
If I just comment out line 691, the ‘content container around the shop loop’ is no longer properly closed and as such, the sidebar gets moved to the bottom of the page, after the pagination, so I just commented out line 697 instead:
if(isset($avia_config['overview'] )) echo avia_pagination('', 'nav');
and I changed line 691 to
add_action( 'woocommerce_after_shop_loop', 'avia_woocommerce_after_shop_loop', 11);
so that the content container is closed after the inclusion of woocommerce’s default pagination.Now if you could help me find a way to do these changes for the child-theme only, this solution would be perfect for what I’m trying to achieve.
Best regards,
JoséOctober 14, 2015 at 5:05 pm in reply to: Duplicate terms / titles in the breadcrumb for news/blog posts #518815Hi Ismael!
I was having trouble opening that link, but I quickly found out it’s publishing settings had changed to scheduled and it was saying it had missed schedule, but I just had to change its status back to published and it got back to normal.
I saw your snippet did exactly what I wanted, and that you just had to change
unset($trail[1]);
tounset($trail[2]);
.Thank you very much for the help!
Best regards,
JoséHi Rikard,
I think I can say I got this problem fixed, as I believe it was all just a misunderstanding on my part, of the difference between the behavior of the Fullscreen Slider and the Fullwidth Easy Slider.
But just to make sure I have now understood correctly, on the Fullscreen Slider the images are always ‘scaled’ so they cover the whole screen in the browser (minus the header), and in some resolutions that forces them to not fit in their entirety (having part of its sides overflowing/hidden), right?
Other than that minor doubt, I think you can mark this issue as resolved.
Best regards!
Ok so in the meantime I have been fiddling a bit more with the sliders and I think I’m realizing that I was getting the fullscreen slider’s correct behaviour, and I either have to give some ‘safe margins’ to the text in my images so it won’t get cut, or use the fullwidth easy slider instead, which will always keep my images’ proportion but won’t always fit so nicely on the screen, depending on resolution.
For now I’ll be using the fullwidth easy slider , at least until we can get new images done for it.
Hello,
I think I am having a similar problem, so instead of opening a separate thread I thought it might be better if I joined this one.
I’m also using a fullscreen slider for my homepage, and I uploaded images with a size of 1903×714, hoping they would cover most of the screen as you enter the site (fitting from the bottom of the header to the bottom of the browser window, before the user scrolls).
I am using the plugin ‘Simple Image Sizes’ to manage the available sizes of images for my site, but none of the sizes I create shows up in Fullscreen Slider’s options, under ‘Slideshow Image Size’, so I ended up choosing ‘No Scaling (Original Width X Original Height)’.Now my problem is that my images only seem to fit properly on the native resolution of the laptop I’m working with (which is 1366×768), and when I open the site on a 1920×1080 (FullHD) screen, it is scaling the images on my slider to have a height of 800px, and not showing their ‘full width’, and thus there are bits of text on my images getting cut/hidden.
What I would like is for my images to show in their original proportion for every resolution, even if they don’t fit so well in terms of height, I’d really like to avoid having parts of my images ending up ‘hidden’.
October 12, 2015 at 12:16 pm in reply to: Duplicate terms / titles in the breadcrumb for news/blog posts #517294Hi again,
I have set up a ‘test copy’ of my site so there’s no problem with changing stuff there, and I’m providing a link to a post with the issue on the ‘Private Content’ of this reply (although the issue happens with all posts).
I tried adding that snippet you provided to my functions.php but it didn’t solve my issue (I suppose that is because it was just meant as an example and would need adjustment for my specific case).
- This reply was modified 9 years, 2 months ago by dZ_EB. Reason: forgot to mention testing of the suggested code snippet
October 9, 2015 at 6:45 pm in reply to: Duplicate terms / titles in the breadcrumb for news/blog posts #516629Hey Andy,
Thank you for the suggestion, but apparently I didn’t get it to work.
I tried copying the full content of the class-breadcrumb.php file into the bottom of my functions.php, but that ended up causing the following Fatal Error:
“Fatal error: Cannot redeclare avia_breadcrumbs() (previously declared in D:\xampp\htdocs\malabar\wp-content\themes\enfold-child\functions.php:769) in D:\xampp\htdocs\malabar\wp-content\themes\enfold\framework\php\class-breadcrumb.php on line 521”
(I am trying these changes in a local development version of another site I’m building with enfold, in order to avoid problems on my ‘live’ site, hence the local file paths.)
Best regards,
JoséOctober 8, 2015 at 5:49 pm in reply to: Duplicate terms / titles in the breadcrumb for news/blog posts #516022Hi Andy,
Thanks for the support!
The solution you linked to does what I wanted, but only if I do that change directly in the main theme files.
I am using a child-theme for most of my customizations, and I tried doing that change in the child-theme (replicating that part of the theme’s folder structure on my child theme and duplicating the class-breadcrumb.php file into it) so it would be a bit more ‘update proof’, but I guess that logic of working with child-themes only works for template files and such, as it doesn’t seem to be working with this file.
Would it be possible to do this change in a more ‘child-theme friendly’ way?
Best regards,
JoséOctober 7, 2015 at 12:44 pm in reply to: Duplicate terms / titles in the breadcrumb for news/blog posts #515121Hello,
Sorry if my explanation wasn’t clear enough.
I think the item you (and your code) are referring to seems to be for the default post title, which I want to keep, at least for now.My problem is with the breadcrumb construction for single posts, I am attaching a screenshot of the actual item I want to remove, highlighted on DevTools:
https://www.dropbox.com/s/8uf7eqqjys9grc3/Screenshot%202015-10-07%2011.29.08.pngBest regards,
José- This reply was modified 9 years, 2 months ago by dZ_EB. Reason: correcting image attachment
October 6, 2015 at 6:09 pm in reply to: Lightbox in WooCommerce Product Pages loading unwanted youtube video #514656Thank you very much for such a quick reply!
I hadn’t noticed the video’s link was in the footer, as I was under the impression that the facebook feed widget I have in the footer only linked to the facebook posts themselves.
I followed your suggestion of wrapping the facebook feed’s shortcode in that footer widget, with the snippet you gave me and the problem is solved.
Again, thank you very much.
I will now open another thread for the breadcrumb issue.
August 14, 2015 at 3:34 pm in reply to: Remove "prettyPhoto" tags from woocommerce config to avoid conflicts #487805Hey, thanks for the quick reply.
Yes I prefer to keep using Magnific Popup as the lightbox for my product images, so I already added some code to my functions.php to dequeue prettyPhoto’s scripts.
I’m leaving my code for that here as reference in case someone else runs into a similar issue:
// Dequeue prettyPhoto function prettyphoto_dequeue_script() { wp_dequeue_script('prettyPhoto'); wp_dequeue_script('prettyPhoto-init'); } add_action('wp_print_scripts', 'prettyphoto_dequeue_script', 100);
Best regards,
José Almeida -
AuthorPosts