[SOLVED] Thumb Shadow and Post Thumb BUG ?
Hello,
Just started work on my new site employing Montezuma 1.1.9. WP 3.8.1 No Plugins. Ran W3C Validation result: passed. :) Created 2 posts, one with no image in post & one with an image in post. Re-run W3C validation result: failed :confused: 2 Errors with reason being "Bad Value" as follows: Error Code:
<div class="thumb-shadow"><div class="post-thumb"><a href="http://www.katydiggtest.com/wordpress/testimage/"><img src="http://www.katydiggtest.com/wp-content/uploads/testimage-620x 180-1.jpg" width="620" height=" 180" alt="My Test Image for Montezuma 1.1.9"/></a></div></div> Correct Code:
<div class="thumb-shadow post-thumb"><a href="http://www.katydiggtest.com/wordpress/testimage/"><img src="http://www.katydiggtest.com/wp-content/uploads/testimage-620x%20180-1.jpg" width="620" height=" 180" alt="My Test Image for Montezuma 1.1.9"></a></div> Kind regards, Katy :) |
If you run the code thru 4 different validators, you will most likely get 4 different results. I personally don't pay attention to validators. Run some big name sites thru the validator and see what happened.
The code is valid HTML, a div with in a div, the validator just doesn't know how to handle it, but all the browsers do…. if you want to fix it, go into the virtual subtemplate postformat and change it. |
Hi Juggledad,
With all due respect, we've discussed W3C validation previously, and it is important (as per web design and development training and associated web standards). Flynn makes mention of W3C validation in the formal introduction to Montezuma Theme. With regard to the "Bug" error problem - occurs upon uploading image to post and only occurs with Montezuma. i.e I switched theme to WP Default Twenty Fourteen and ran W3C validation and it did not occur (passed). I am referring to the exact same problem as this 2013 thread http://forum.bytesforall.com/showthread.php?t=20248. Montezuma adds -620x 180-1 (note the WHITE SPACE) to the end of img src url string. Code:
<img src="http://www.katydiggtest.com/wp-content/uploads/testimage-620x 180-1.jpg" width="620" Katy :) |
Hi again,
Just created this test site, and uploaded a small image to a test post. Run W3C Validator and the result is as follows: Code:
Once again -620x 180-1.png (note WHITE SPACE which could create a 404 error) is added to img src url string. As mentioned in previous posting, this has been questioned previously here http://forum.bytesforall.com/showthread.php?t=20248. Many thanks, Katy :) |
Quote:
You can get rid of the space by changing the bra_thumb in the virtual sub template 'postformat from HTML Code:
<?php bfa_thumb( 620, 180, true, '<div class="thumb-shadow"><div class="post-thumb">', '</div></div>' ); ?> HTML Code:
<?php bfa_thumb( 620,180, true, '<div class="thumb-shadow"><div class="post-thumb">', '</div></div>' ); ?> btw, go validate 'wordpress.org' and see what results |
Hi Juggledad,
Quote:
Quote:
Thank you for you help, Juggledad, I shall send a donation to you, and also to Flynn, by way of "Thank You" for Montezuma Theme ... superb to work with. :) Hope you have a lovely weekend. Many thanks, Katy :) |
just to let you know, I have found where the issue comes from. If you want to change the code: edit parse_php.php and after line 165, which should be
HTML Code:
$php_string = str_replace( array( "\r", "\n", "\t" ), "", $php_string ); HTML Code:
$php_string = str_replace( ", ", ",", $php_string ); |
All times are GMT -6. The time now is 11:00 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.