[wp-hackers] checking if post has shortcode, before header is output?

Glenn Ansley glenn at glennansley.com
Mon Oct 26 19:16:09 UTC 2009


For valid CSS, f you're not worried about accessibility just add
additional the stylesheet with jQuery on page load if it meets some
sort of condition that you place in the source (put the JS in the
footer like the others have suggested).

Glenn Ansley
http://fullthrottledevelopment.com

On Mon, Oct 26, 2009 at 3:13 PM, Aaron D. Campbell <aaron at xavisys.com> wrote:
> That's true, and the best I can come up with for that is to do the CSS
> inline or put the <style> element in the body by outputting it from your
> shortcode handler (keeping track of when you output it so you don't output
> it more than once).
>
> Austin Matzko wrote:
>>
>> That's probably the best way for JavaScript, but valid CSS <style>
>> elements are supposed to be in <head>
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list