• Resolved alvaro05

    (@alvaro05)


    How can I get rid of the image border (or padding) of 10px that is used on images? I would like the plugin to show images like vimeo videos (just the video and the dark background.

    I’ve been changing the css file, then I realised the one which affects is the css.php file and tried with it but haven’t find the solution.

    Thanks!

    http://wordpress.org/extend/plugins/easy-fancybox/

Viewing 7 replies - 1 through 7 (of 7 total)
  • If you can wait a few days for the new version to arrive, you will find it in the options 🙂

    If you cannot wait, edit the code in easy-fancybox.php right below where it says $('a.fancybox').fancybox({. Add a new line there with 'padding' : 0, and you should no longer see the border…

    Thread Starter alvaro05

    (@alvaro05)

    It worked, thanks, although not exactly right below, here is where i put it:

    echo "
    	$('a.fancybox').fancybox({";
    	foreach ($easy_fancybox_array as $key => $values)
    		if('true'!=$values['hide'])
    			echo "
    	'padding' : 0,

    What about the ‘X’ button? If you click anywhere in the screen it closes so it really isn’t that usefull for me. Is there an “easy way” to get rid of it?

    Thanks again. I have to say that this is the fastest (& usefull) answer to a question I’ve recibed writing in this forum.

    I have a suggestion for the plugin and another question, I think I’ll create a new topic.

    yep, you’re right… after the echo is a much better spot for it 🙂

    For the close button, you can use 'showCloseButton' : false

    In fact, border and close button have become optional in the latest release 🙂

    That code isn’t in the easy-fancybox.php file anymore. Any idea how I could get rid of the border just for the image on the page (I still want to keep the border in the overlay though, if possible).

    Thanks.

    In the latest versions you can set Border 0 and remove the mark at Show the (X) close button.

    Easy 😉

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: Easy FancyBox] Get rid of image border and 'X' simbol’ is closed to new replies.