Code wont work for me

4 replies
  • WEB DESIGN
  • |
Hi I'm trying to put a lightbox on my blog but it's not working.. :confused: please help! LOL

Here is a short screencast vid showing what the problem is. 2013-05-25_1159 - karrihull's library

Thanks so much in advance
#code #work
  • Profile picture of the author Patrick
    Try removing line breaks..... (in html mode)

    <a href="" rel=""> <- should be in one line or wp takes it as a line break and outputs....<br> in between
    {{ DiscussionBoard.errors[8110058].message }}
  • Profile picture of the author nikswf
    yes, needs to put all in 1 line and make sure space between the code is appropriate. Check all spacing and remove if it's double spaced.
    {{ DiscussionBoard.errors[8110115].message }}
  • Profile picture of the author David V
    It's been mentioned by schwarzes and nickswf but I want to clarify a little.
    If you go to your video to 0:46 you will see where you pasted the code.
    That's the issue.
    The problem is not understanding how WordPress works.

    So, for future reference, here it is:

    The Problem:
    Code:
    <a href+"http://www.youtube.com/watch?v=G&z74BvLWUg" Linebreak created
    rel="wp-video-lightbox" title=""><img Linebreak created
    src="http://example.com/images/thumbnails/youtube.jpg" Linebreak created
    alt="YouTube" width="60" /></a>
    How it should be:
    Code:
    <a href+"http://www.youtube.com/watch?v=G&z74BvLWUg" rel="wp-video-lightbox" title=""><img src="http://example.com/images/thumbnails/youtube.jpg" alt="YouTube" width="60" /></a>
    Everytime you see text on a new line and it's not being auto wrapped, it's creating a new line so it's breaking up your code.
    {{ DiscussionBoard.errors[8111084].message }}
    • Profile picture of the author nikswf
      Originally Posted by David V View Post

      It's been mentioned by schwarzes and nickswf but I want to clarify a little.
      If you go to your video to 0:46 you will see where you pasted the code.
      That's the issue.
      The problem is not understanding how WordPress works.

      So, for future reference, here it is:

      The Problem:
      Code:
      <a href+"http://www.youtube.com/watch?v=G&z74BvLWUg" Linebreak created
      rel="wp-video-lightbox" title=""><img Linebreak created
      src="http://example.com/images/thumbnails/youtube.jpg" Linebreak created
      alt="YouTube" width="60" /></a>
      How it should be:
      Code:
      <a href+"http://www.youtube.com/watch?v=G&z74BvLWUg" rel="wp-video-lightbox" title=""><img src="http://example.com/images/thumbnails/youtube.jpg" alt="YouTube" width="60" /></a>
      Everytime you see text on a new line and it's not being auto wrapped, it's creating a new line so it's breaking up your code.
      that's true. its is important to know how it does work and copy/paste code makes a line break in itself lots of time so have to keep in mind that it defined accurately, and remove single or multiple line breaks but make sure it does have space where it reuired.
      {{ DiscussionBoard.errors[8111618].message }}

Trending Topics