Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Aug 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to add fancybox lightbox in wordpress theme without using a plugin ?

    I want my post images to open in a fancybox lightbox. I have two wordpress websites with two different themes. I am using this code for my images in the lightbox

    <div id="gallery-1" class="gallery galleryid-25830 gallery-columns-3 gallery-size-thumbnail">
    <img class="attachment-thumbnail alignleft" title="image-title" src="image-url" alt="" width="150" height="150" />
    </div>

    This code works in one theme, but in the other theme it goes to the image's url. I checked my theme files and found that there is no jquery or js file for fancybox. So I am wondering how I can add these files to my theme and what I should change in my CSS file. Please someone, help me. I am new to coding.
    I have fancybox folder in other theme, it contains some images and jquery.fancybox-1.3.4. can i use them? and if yes, then how? plz someone help

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,474
    Thanks
    6
    Thanked 980 Times in 953 Posts

  • #3
    New to the CF scene
    Join Date
    Aug 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    What to do there? I am not so much familiar with coding. So can u plz tell me step by step method


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •