Weird issues with my HTML code - need help

mrhonimrhoni Registered Users Posts: 173 Major grins
edited March 18, 2014 in SmugMug Customization
Something seems to be going a bit weird with my HTML code. I keep the master code in Evernote on my computer, modify it was needed, copy and then paste into the HTML code on my Smugmug pages.

I've been making a few changes recently and I am getting code identified in red and the code is not working as expected, so I cancel and let the original code stay in place.

Here is just one of my examples. I have one or 2 others that are causing my similar issues.

This is the HTML from the page itself. On the first link for "Contact", I entered target="_blank" directly into the pages HTML because my updated master code won't paste in without error.

<div class="pageTitle">
<b><br />Who is "MrHoni"?</b><br /><br />
</div>
<div class="boxBottom">
<div class="myPhotoLinks">
<img src="http://mrhoni-photography.smugmug.com/photos/i-7rBtZhg/0/M/i-7rBtZhg-M.jpg&quot; alt="image" />
</div>
<div class="myTextLinks">


MrHoni (pronounced Mister Honey) is my nickname and came about after marrying my wife Diane, over 20 years ago. When speaking to each other, we only use "Honey" and not each others names. Surprised looks appear on our faces if we were to call each other by our first names. Diane inherited the nickname of "MrsHoni" the same time I inherited my nickname. This is what our friends lovingly call us.<br /><br />

My background is in technology and being a tech gadget guy, when the first consumer digital cameras came to market, I loved the instant gratification they provided and thus began my interest in photography. Many of my photos during the years have been of our dogs, which have varied from 2 to 6 furry kids. I cherish the thousands of photos I have of them with their goofy, cute and funny personalities. <br /><br />

From my portfolio, its obvious that I gravitate towards pet photography, but I also love the satisfaction of capturing beautiful images of families, high school seniors, kids and couples.<br /><br />

Many pets are not very good at taking direction and it takes patience to capture their personality. People are much more cooperative and have a vested interest in having themselves look their best. while the little ones can be quite a challenge as all parents know, and those pets are even more of a handful to wrangle with (at least my kiddies). <br /><br />

Please <a href="http://www.mrhoni-photography.com/Contact&quot; target="_blank" style="color:#ffffff;font-size:14pt">contact </a>me with any questions or to book a photo session.<br /><br />
Click <a href="http://www.mrhoni-photography.com/About-MrHonis-dogs&quot; target="_blank" style="color:#ffffff;font-size:14pt"> here </a>to read about MrHoni's Dogs

<div class="myPhotoLinks"><br /><br />
<img src="http://mrhoni-photography.smugmug.com/photos/i-5ndXZ2G/4/S/i-5ndXZ2G-S.jpg&quot; alt="image" />
<img src="http://mrhoni-photography.smugmug.com/photos/i-mH8nLn2/4/S/i-mH8nLn2-S.jpg&quot; alt="image" />

</div>
</div>
</div>

This is the HTML code from Evernote. The only difference should be the use of target. I have marked in red to simulate what is being shown in red in the html box on the web page


<div class="pageTitle">
<b><br />Who is "MrHoni"?</b><br /><br />
</div>
<div class="boxBottom">
<div class="myPhotoLinks">
<img src="http://mrhoni-photography.smugmug.com/photos/i-7rBtZhg/0/M/i-7rBtZhg-M.jpg"&gt;
</div>
<div class="myTextLinks">


MrHoni (pronounced Mister Honey) is my nickname and came about after marrying my wife Diane, over 20 years ago. When speaking to each other, we only use "Honey" and not each others names. Surprised looks appear on our faces if we were to call each other by our first names. Diane inherited the nickname of "MrsHoni" the same time I inherited my nickname. This is what our friends lovingly call us.<br /><br />

My background is in technology and being a tech gadget guy, when the first consumer digital cameras came to market, I loved the instant gratification they provided and thus began my interest in photography. Many of my photos during the years have been of our dogs, which have varied from 2 to 6 furry kids. I cherish the thousands of photos I have of them with their goofy, cute and funny personalities. <br /><br />

From my portfolio, its obvious that I gravitate towards pet photography, but I also love the satisfaction of capturing beautiful images of families, high school seniors, kids and couples.<br /><br />

Many pets are not very good at taking direction and it takes patience to capture their personality. People are much more cooperative and have a vested interest in having themselves look their best. while the little ones can be quite a challenge as all parents know, and those pets are even more of a handful to wrangle with (at least my kiddies). <br /><br />

Please <a href="http://www.mrhoni-photography.com/Contact” target=“_blank” style="color:#ffffff;font-size:14pt">contact </a>me with any questions or to book a photo session.<br /><br />
Click <a href="http://www.mrhoni-photography.com/About-MrHonis-dogs&quot; style="color:#ffffff;font-size:14pt"> here </a>to read about MrHoni's Dogs

<div class="myPhotoLinks"><br /><br />
<img src="http://mrhoni-photography.smugmug.com/photos/i-5ndXZ2G/4/S/i-5ndXZ2G-S.jpg"&gt;
<img src="http://mrhoni-photography.smugmug.com/photos/i-mH8nLn2/4/S/i-mH8nLn2-S.jpg"&gt;

</div>
</div>
</div>

Comments

  • AllenAllen Registered Users Posts: 10,013 Major grins
    edited March 18, 2014
    If you see red there is an error close before the red.
    In this case it's probably illegal characters. “ and ” vs "

    ...Contacttarget=_blank ...

    Processors sometimes use these.
    Al - Just a volunteer here having fun
    My Website index | My Blog
  • tomoscotttomoscott Registered Users Posts: 92 Big grins
    edited March 18, 2014
    It looks to me like you have some "intelligent quotes" in that code - right around [target="blank"]. That is guaranteed to throw everything off. Whenever you store HTML, CSS, or any other code, be sure to use a plain text program. Otherwise, debugging will become a real pain in the rear.

    haha - great minds think alike.
  • AllenAllen Registered Users Posts: 10,013 Major grins
    edited March 18, 2014
    Always use a pure text editor for your html like notepad.
    Al - Just a volunteer here having fun
    My Website index | My Blog
  • mrhonimrhoni Registered Users Posts: 173 Major grins
    edited March 18, 2014
    Thanks guys. I spent so many hours trying to figure it out.

    Those quotes was exactly the problem. I found where I could update Smart Quotes setting in my System Preferences (Language-Keyboard Preferences-Text) to make the curly quotes, straight quotes. Once this was done and I replaced the curlies with straights all new quotes were entered as straight.
Sign In or Register to comment.