Results 1 to 9 of 9

Thread: Using Fancy Box... need help styling links

  1. #1
    Join Date
    Apr 2014
    Posts
    16
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default Using Fancy Box... need help styling links

    I understand basic HTML codes but I'm not great at it... anyway, I have a website I am trying to get a link to pop-up within the window, which I have successfully been able to do with Fancybox. But since it's using the fancybox class, it's overriding the styling for the links in that section.

    Here's my live demo: aprilwraps.com/test.html
    It's toward the bottom of the page, the first box and image with Nikki where it says "Read More" is the styling I want on the second box and image link. That link is working with the inner window, just not the styling I want.

    Basically:
    Click image for larger version. 

Name:	help.JPG 
Views:	213 
Size:	59.4 KB 
ID:	5416


    I don't want to have to set it individually for each link, I just don't understand where to edit in the fancybox script for it to have that styling. I'm not very familiar with javascript.

    I hope that makes sense. Please help me!

  2. #2
    Join Date
    Apr 2014
    Posts
    16
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Angry Need help with script - (was my other post removed?)

    I installed a fancybox script on my site so I could have a frame pop-up within the page. But now that the script is in I can't style the links anymore to match the rest of the site. Also, I just noticed that my script for the slider at the top of my page (was a banner taht would cycle thru images) is no longer working.
    I posted a link in my first post but I think the post was removed and maybe that's why... so I'm going to ask my question again without the link.

    Can anyone help me?

  3. #3
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    Your original post (this one too) was automatically moderated by the forum's anti-spam software. It happens once-in-a-while; just be patient. I've approved both posts and combined them into this single thread.

  4. #4
    Join Date
    Apr 2014
    Posts
    16
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    got it! Thanks I'm trying to work around my baby's schedule so was in a hurry to get it done. Sorry, I will try to be more patient next time.

  5. #5
    Join Date
    Apr 2014
    Posts
    16
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    Back to original question- can anyone help me out?

  6. #6
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    Looking a the other links/buttons, it just looks like you've removed the class of "button" from the link when you added the fancybox classes - put that back in and the styling returns.

    As for the slider script not working anymore, the first thing I notice is that you're loading 2 jQuery libraries, which might be conflicting - you only need one, so take one.

    I'd also move all the links to external JavaScript files up above the $(document).ready(function(){ part(s).

    Also try condensing both script calls, for slider and fancybox into one $(document).ready(function(){
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  7. #7
    Join Date
    Apr 2014
    Posts
    16
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    Thank you, I will try that! So I can have both the button and fancybox class? I've never had 2 on the same tag so wasn't sure.

  8. #8
    Join Date
    Apr 2014
    Posts
    16
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    so I tried adding the button class back in but I can only have one class attribute and the link doesn't work right without the fancybox one. Is there a way to add the attributes into the fancybox script itself?

  9. #9
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    Yes you can only have one class attribute to an element, but within it you can add multiple classes separated with a space. The example provided by fancybox is an example of this, so just add your button class in there too: http://webdesign.about.com/od/css/qt...smulticlas.htm
    Last edited by jscheuer1; 04-09-2014 at 01:11 PM. Reason: typo
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  10. The Following User Says Thank You to Beverleyh For This Useful Post:

    apriljoanne (04-09-2014)

Similar Threads

  1. fancy box
    By aqeel in forum Looking for such a script or service
    Replies: 1
    Last Post: 12-09-2011, 04:09 PM
  2. Want to make an fancy pop-up window: HELP
    By IgorV in forum Looking for such a script or service
    Replies: 6
    Last Post: 09-27-2009, 03:32 AM
  3. styling image links
    By rebelbwb in forum CSS
    Replies: 1
    Last Post: 04-17-2009, 06:07 AM
  4. BLM Menu: Styling items without links
    By dmwhipp in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 02-15-2009, 05:05 PM
  5. A combined fancy slideshow with music ???
    By sfv in forum Looking for such a script or service
    Replies: 1
    Last Post: 02-14-2008, 10:35 PM

Bookmarks

Posting Permissions

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