• Sarnico

    (@sarnico)


    Unfortunately on my site doesn’t work lihtbox. On the pahe products when I click on image same page is loaded again. With all other themes native Woocommece lightbox works well but with WP Forge theme no 🙁 Could you help me please with this issue.

Viewing 13 replies - 1 through 13 (of 13 total)
  • Theme Author ThemeAWESOME

    (@tsquez)

    Do you have a link to something I can see? I have never used Woocommerce and if I am not mistaken, Woocommerce is a plugin correct? It may be a conflict of some sorts.

    Thread Starter Sarnico

    (@sarnico)

    Yes you are right Tsquez, Woocommerce is one plugin for e-commerce. I develop website on my computer so it is not available on line 🙁

    Also seems to me like a conflict of some sorts but Firebug and DevTools do not warn me about any error or conflict.

    I think that this part of code, which is on page content-image.php, cause my problem:

    <code>
    <a class="entry-format" href="<?php echo esc_url( get_post_format_link( 'image' ) ); ?>" title="View all Image Posts"><span class="genericon genericon-picture"></span> <?php echo get_post_format_string( 'image' ); ?></a>
    </code>
    Thread Starter Sarnico

    (@sarnico)

    One more thing: when I change theme to Twenty Fifteen or Twenty Fourteen everything work fine.

    Theme Author ThemeAWESOME

    (@tsquez)

    Hi Sarnico,

    The reason why Twenty Fifteen and Twenty Fourteen work is because they do not have foundation mixed in the way WP-Forge does.

    Also firebug and dev tools would not tell you if there was a conflict of some kind between a plugin and theme.

    One way of seeing if there are any errors is to turn on debug mode. Do a search on how to turn on debug mode and let me know if you find anything.

    Theme Author ThemeAWESOME

    (@tsquez)

    Here is what you should add to your wp-config.php file:

    define('WP_DEBUG', true);
    define('WP_DEBUG_LOG', true);

    you should then be able to view the log by going into the wp-content folder and clicking on the file named debug.log

    Thread Starter Sarnico

    (@sarnico)

    First of all thank you very much Tsquez for your help!

    When I turned on WP_DEBUG, WP_DEBUG_LOG and also WP_DEBUG_DISPLAY there is no any message on the screen. Also there is no file debug.log inside of wp-content folder. There is file debug.log of Woocommerce but is absolutely empty. So I will try to explain you with more details.

    With you theme I like to develop one on line shop. Works like a charm an I like it so much. This is second time that I use Zurb Foundation and I have to tell you that I am very curious about this framework. First I did developed my own WP theme, based on ZF, but at the end I did decide to use yours because is obviously much better than mine.

    Sometimes my clients, who are already familiar with WordPress, ask me for the on line shop. Woocommerce seems to be right choice for them.

    There is only that “little obstacle”: when I click on the big image of product it does not open in lightbox.

    Seems that my problem is hidden in the function my_post_image. When I change this part of code:

    $html = '<a href="' . get_permalink( $post_id ) . '" title="' . esc_attr( get_the_title( $post_id ) ) . '">' . $html . '</a>';
    return $html;

    with:

    $large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'large');
    $html = '<a href="' . $large_image_url[0] . '" rel="lightbox" title="' . esc_attr( get_the_title( $post_id ) ) . '">' . $html . '</a>';
    return $html;

    big image of product, on single product page, opens in light box. But unfortunately not only big pictures. When I click on the small thumbnails, instead of open new page, pictures open in lightbox because link is broken.

    P.S.
    Sorry for my English.

    Theme Author ThemeAWESOME

    (@tsquez)

    Hey no need to ever apologize for trying to speak another language, especially if it is not your native language. At least you are trying and that is all that matters right? Besides I think you are doing very good 😉

    OK so let us see what we can do here. I am going to download the woocommerce plugin and see if I can figure out what is going on. Can you provide me with a link to the actual plugin you are using? I want to make sure I get the same one.

    Thread Starter Sarnico

    (@sarnico)

    Thanks Tsquez 🙂

    I use these two:
    – WooCommerce
    https://wordpress.org/plugins/woocommerce/

    – WooCommerce Admin Bar Addition
    https://wordpress.org/plugins/woocommerce-admin-bar-addition/

    Theme Author ThemeAWESOME

    (@tsquez)

    OK great I am going to download this and give it a spin. Unfortunately this may take me a few days as I am busy at work and do not have a lot of time when I get home.

    I also have another issue I need to take care of before I get to this one, so if possible, please be patient but know I am looking into it for you and will do my very best to provide a solution.

    Thread Starter Sarnico

    (@sarnico)

    It’s very kind of you.

    Thread Starter Sarnico

    (@sarnico)

    Ciao Thomas,

    I just want to remind you about this issue 🙂

    Theme Author ThemeAWESOME

    (@tsquez)

    Hey amigo,

    I know its been a few weeks, I have just been super busy. If possible, please zip up the the theme folder and email me the theme you are working on. The reason I ask is that this will have all of the modifications you have made and everything else will be in place.

    Use my contact form here http://themeawesome.com/contact/, select “converting a psd file” and drop the zip folder there. This way I can look at it locally and try to figure this out. Again sorry for the delay.

    Thread Starter Sarnico

    (@sarnico)

    Muchas gracias amigo 🙂

    I did it.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Lightbox doesn't work’ is closed to new replies.