I have pages and posts on a WordPress site.
The pages have various layouts. Parent pages are following a 2-column (maincontent + right sidebar) layout while child pages have a one-column layout (no sidebar).
I want to display a JavaScript code on one-column layout, and a different JavaScript code on 2-column layout.
Must also add that one-colum has a custom field "one-col" and 2-column is the default layout. Not sure if it's possible to add codes based on custom fields.
Theme: WooThemes, Canvas.
Really appreciate your help.