Code wont work for me

by 4 replies
5
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
#website design #code #work
  • 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
  • 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.
  • 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" 
    rel="wp-video-lightbox" title=""><img 
    src="http://example.com/images/thumbnails/youtube.jpg" 
    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.
    • [1] reply
    • 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.

Next Topics on Trending Feed

  • 5

    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