Before you ask please READ THIS

turn off "pop up" feature in work

in FatMoon Posts: 136
Hi Guys,
Where can I turn off the "large image" pop up feature like when you click on an image.

see link and attachment.
http://bumsch.com/work/book-mockup-2/
644b7e25eba385530b441929c0b9c5.png
2352 x 1494 - 3M

Comments

  • AirAir
    Posts: 10,970
    Hello:-)

    First thing: why you would want that?
    General answer would be to disable lightbox http://apollo13.eu/docs/apollo13_framework_theme/#!/theme_lightbox

    But solution depends on what you need.

    With kind regards.
  • Posts: 136
    Hi Air,

    I went to: Customise -> General settings -> lightbox settings and turned of lightbox settings.

    elas that didn't help. :) please advise.

    Thx! Vincent
  • AirAir
    edited October 2016 Posts: 10,970
    Sorry, my bad. I didn't notice it is from Visual Composer. You can reverse this change.

    I see you used here media grid element from VC, and it doesn't have option to disable it. You can try this solution however http://stackoverflow.com/questions/37179025/disable-prettyphoto-wordpress-visual-composer

    Or instead of media grid use single images.

    With kind regards.
    Post edited by Air on
  • Posts: 136
    Hi Air,
    Thanks for the offered solution.

    When I stick below piece of code in my (Fatmoon) functions.php (overwritten via ftp) my site won't load anymore.
    Should I be patient? is that a server thing? Or did I not use the right code?

    function remove_vc_prettyphoto(){
    wp_dequeue_script( 'prettyphoto' );
    wp_deregister_script( 'prettyphoto' );
    wp_dequeue_style( 'prettyphoto' );
    wp_deregister_style( 'prettyphoto' );
    }
    add_action( 'wp_enqueue_scripts', 'remove_vc_prettyphoto', 9999 );

  • AirAir
    Posts: 10,970
    I believe it produced PHP error. Please show me screen shot of source of function.php
  • Posts: 136
    Hi here you go.
    Screen Shot 2016-10-21 at 10.50.33 .png
    1700 x 1134 - 263K
  • Posts: 136
    and this is where it is placed
    Screen Shot 2016-10-21 at 10.51.55 .png
    1236 x 1234 - 316K
  • AirAir
    Posts: 10,970
    Well code looks good for me, it might be different conflict. Please enable debug mode https://codex.wordpress.org/WP_DEBUG
    Next add this code again, and come back to me with error that you will see when opening your page :-)

    With kind regards.
  • Posts: 136
    Thanks so much for your patience!

    after debug tweak it says...

    Parse error: syntax error, unexpected '}' in /home/vhosting/f/vhost0029702/domains/bumsch.com/htdocs/www/wp-content/themes/fatmoon/functions.php on line 21
  • AirAir
    Posts: 10,970
    O yeah, debugger is right :-) Remove this } from line 21

    With kind regards.
  • Posts: 136
    Cool. I just did that and now the site does load but it still shows me a pop up. (this time without the frame around it)
    http://bumsch.com/work/book-mockup-2/

    Any ideas?

    Don't worry almost weekend. ;)
  • Posts: 136
    visible when you click on an image
  • AirAir
    Posts: 10,970
    Lightbox is disabled like you wanted(it now opens image in browser), but:
    Air said: First thing: why you would want that?
    You didn't answer me that so I didn't know if you want to disable lightbox or disable option of it being link.

    As removing link from here is not possible without editing VC code I will cite my post ;-)
    Air said: I see you used here media grid element from VC, and it doesn't have option to disable it.
    ...
    Or instead of media grid use single images.
    See ya on Monday.

    With kind regards.

  • Posts: 136
    Hi Air,
    Thx!

    that's a pity. I used media grid because I couldn't load multiple images at once and I wasn't able to place pictures side by side. Or is there a way to adjust?

  • AirAir
    Posts: 10,970
    If you want to put them side by side, you will have to place it in different columns for example.
    Unfortunately I don't have control over what VC implements, so we have to use what they give ;-)

    With kind regards.
  • Posts: 136
    Okay that's clear will have a look.

    Thank you!
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!