WordPress.org

Ready to get started?Download WordPress

Forums

Easy FancyBox
[resolved] Get rid of image border and 'X' simbol (8 posts)

  1. alvaro05
    Member
    Posted 3 years ago #

    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/

  2. RavanH
    Member
    Plugin Author

    Posted 3 years ago #

    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...

  3. alvaro05
    Member
    Posted 3 years ago #

    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.

  4. RavanH
    Member
    Plugin Author

    Posted 3 years ago #

    yep, you're right... after the echo is a much better spot for it :)

  5. RavanH
    Member
    Plugin Author

    Posted 3 years ago #

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

  6. RavanH
    Member
    Plugin Author

    Posted 3 years ago #

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

  7. machination
    Member
    Posted 3 years ago #

    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.

  8. RavanH
    Member
    Plugin Author

    Posted 3 years ago #

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

    Easy ;)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic