Wordpress theme compatibility

Hi there,

First, thank you for a great plugin.
I am using an "unsuported" wordpress theme and I need some advice. The theme is photolux and it works fine except for the images that get loaded dinamically when I hit "Load More".

The images that originally show on the page get the Buy buttons, but the ones dinamically loaded don't.

I was wondering if you can point me in the right direction. I have also contacted the theme developer but so far I've got no answer. I can dable with JS and JQuery so basically I am not asking for a fix, but for some ideas..
The gallery is here:
http://www.arsphotographics.com/lands...
1 person has
this problem
+1
Reply
  • Hi Lucian,

    It sounds like you're on the right track - unless you have the web development resources available to make the theme work, contacting the developer is the best you can do to make an "unsupported" theme work.

    We would for Fotomoto to work with every WordPress theme under the sun, but we can't go it alone, as themes are fully-customizable, and we can't hope to support them all.

    So, my suggestion is to let the developer know about the benefits of having a Fotomoto-compatible theme, and have them contact us if they need any assistance, otherwise use one of the themes listed here.

    I hope that helps and kind regards,
    Derek
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated indifferent, undecided, unconcerned kidding, amused, unsure, silly happy, confident, thankful, excited

  • I found the solution and in case somebody else needs to get it fixed, here it is.
    Open the file photolux/js/grid_gallery.js

    Note: Since the actual function that needs to be modified is obfuscated (probably to compress the code) you will need to de-obfuscate it.
    The function can be found by looking at the end of the file for:

    * @author Pexeto
    * http://pexeto.com
    */
    /*
    eval(function(p,a,c,k,e,d){e=function(c){return..................................and so on

    Copy the eval function and paste it in a javascript beautifier, such as http://jsbeautifier.org/

    Comment out the previous eval and paste the "beautified" code.
    The instructions following refer to the modified photolux/js/grid_gallery.js

    In photolux/js/grid_gallery.js, find function: print items
    Around line 499 you will find the snippet:

    if (data.more && first) {
    $moreBtn.insertAfter($root);

    Then add right before the block above this line:
    Fotomoto.runInit();
    This should ask fotomoto to reevaluate the images on the page and find the new ones.

    The code should now look like this:
    Fotomoto.runInit();
    if (data.more && first) {
    $moreBtn.insertAfter($root);
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated indifferent, undecided, unconcerned kidding, amused, unsure, silly happy, confident, thankful, excited

  • Lucian, thank you very much for posting the solution that you found for the issue - that's exactly the kind of good community spirit we love to see on our boards!

    Kind regards, and we hope you enjoy using Fotomoto,
    Derek
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated indifferent, undecided, unconcerned kidding, amused, unsure, silly happy, confident, thankful, excited