fob
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: gallery shortcode doesn’t add alt text pages fail validationThanks for your information. That`s funny. ??
I have tried to figure out where the opening <p> tag would come from on my test domain. I could not find and delete it – so I addeded a closing </p> at the end of the code.
You can delete the closing </p> within the plugin.
Whatever you change there will override the defaults.Find this line at the end of the plugin code:
$output .= "<br class='clear' /></p></div>";
and change it like this:
$output .= "<br class='clear' /></div>";
So my <p> must have been written into the database while saving the gallery post. Will try to fix that today.
Thanks and best regards
OliverForum: Fixing WordPress
In reply to: gallery shortcode doesn’t add alt text pages fail validationYou`re welcome. I also hate invalid pages. But people making use of a valid system normally do not need very much time to fill their system with lots of invalid codes. Shit happens… ??
Forum: Fixing WordPress
In reply to: gallery shortcode no alt tag and script inside body tagHi Monika
I put your answer here. (“Dort wartet ein Plugin auf Dich.”) ??
Forum: Fixing WordPress
In reply to: gallery shortcode doesn’t add alt text pages fail validationHi. I have had the same problem and wrote a quick solution (plugin) to solve it:
Please feel free to download my WordPress 2.5 Gallery Validation Plugin to get rid of the funny codes. You can change the plugin as well as the attached CSS if you like. It will override (filter) the funny shortcode of your media.php as long as needed.
Additionally you might want to change the alt things within your media.php:
Line 99 (use this):
$html = '<img src="'.attribute_escape($img_src).'" alt="'.attribute_escape($alt).'" '.$hwstring.'class="align'.attribute_escape($align).' size-'.attribute_escape($size).' wp-image-'.$id.'" />';
line 327 (modify like this):
$html = '<img src="'.attribute_escape($src).'" alt="" '.$hwstring.'class="attachment-'.attribute_escape($size).'" />';
Unfortunatelly I couldn′t load title or alt attributes to the second one. May be someone else knows the trick?
The plugin and these two changes will make your theme valid. You can see this solution in action here. But don`t talk about it. This is a test domain, valid but not ready for official use. ??
Tip: The Gallery Validation Plugin comes with two files. You could make use of the plugin code within your functions.php (theme folder) and put the css stuff in your own stylesheet as well. There should be no reason to do it – but if you want, you can.
Best regards
OliverForum: Plugins
In reply to: Simple Tagging Tag Pages 404Same problem, no answer. I can use Simple Tagging for posts but not for pages.
No matter if you make use of Jerome s Keywords Plugin or the Simple Tagging Plugin. Both show 404 errors if you click on page tags since upgrading to WordPress 2.1.3. I heard that it also does not work with UTW.
I tried to modify the plugin already but it seems to have something to do with internal rewrite rules of WordPress, depending on the permalink structure you are using. May be it only doesn`t work for pages if you set them up in root?
Forum: Fixing WordPress
In reply to: One Home PageThis is just a template problem. Within your header id there is more than one request for the home link. One for the home page and one for the current page.
You might want to exclude the current page link from your script making use of !is_home() ("if not is home") …
<?php if (!is_home() || !is_page(5)) { ?>
— your script —<?php } else { ?>
… (the links that should be shown on your home page) …
<?php } ?>
I saw that on your home page it looks like this:
ul li li /li /li /ul. May be you need to be careful how to change these tags depending on your CSS.Forum: Plugins
In reply to: Nofollow Plugin for CommentsThanks for this link. Very interesting.
In my opinion nofollow is a great tool to protect yourself against “hand made” spam. Since I let everybody know that I have a tool against spam and a sharp eye on it I defenetely have no problem anymore.
Let the people know that they waste their time with blog spamming and they will stop doing such things. The only thing you have to do is: “Be consequent and let them know about that!” ??
Regarding follow or nofollow: It is never a good idea to make a decision between black and white. It`s always better to stay more flexible. If you are not sure what to do with a link (delete it or not) add nofollow. Otherwise delete the link or keep it alive.
Regarding MSN and A9: Within Germany we are able to ignore them by now because Google serves around 90 percent of the search engine results. ??
Forum: Fixing WordPress
In reply to: Two home pages in WP 2.1I had a quick look into your source code. It looks like this:
<li class=\"\"><a href=\"https://spinalalignment.com\">Home</a></li> <li class=' current' ><a href='https://spinalalignment.com' title='Home'>Home</a></li>
One of these lines should be enough.
May be it helps to uncomment the first line for testing purposes like this:
<?php /* <li>...<li> */ ?>
I never had a look into this theme but may be it helps because the function “wp_andreas09_nav” seems to insert a “home” link already.
If it helps you can delete the uncommented line.