Hi
Ich habe ein kleines Problem mit dem ReadMoreRightHere Script.
Die Umsetzung des AutoLightbox funktioniert für den erweiterten Text nicht.
Im Netzt hab ich folgendes entdeckt:
ZitatAlles anzeigenA little fix for those using the plugin in conjunction with the “Read More Right Here”-plugin. That plugin fetches the posts’ content after “read more” via JS and inserts it directly on the current page. The automatic lightboxification doesn’t work there, because wp_head is never executed (only the ‘the_content’ filter).
Before:
add_action(’wp_head’, ‘lightbox_display_hook’);
function lightbox_display_hook($content=”) {
…
if ($contitionals['is_automatic']) {
add_filter(’the_content’, ‘lightbox_auto’);
add_filter(’the_excerpt’, ‘lightbox_auto’);
}
$content .=lightbox_wp_head();
}
return $content;
}
After:
add_action(’wp_head’, ‘lightbox_display_hook’);
function lightbox_display_hook($content=”) {
…
$content .=lightbox_wp_head();
}
return $content;
}
if ($lightbox_contitionals['is_automatic']) {
add_filter(’the_content’, ‘lightbox_auto’);
add_filter(’the_excerpt’, ‘lightbox_auto’);
}
—
This fix may generally be a good idea for 2.0.3 – especially as lightboxyfication is quite unobtrusive even if javascript is somehow not present.
Wie und wo das umgesetzt werden muss, kann ich mir selbst jedoch nicht erklären.
Weiss jemand Rat?
Freundliche Grüsse Markus