function remove_ads_from_pages() { if (is_page('caroline') || is_page('page-slug-2') || is_page('page-slug-3')) { remove_action('wp_header', 'advanced_ads_placement_content'); } } add_action('wp_head', 'remove_ads_from_pages'); Maths Past Papers and Practice Papers - ExamSolutions Maths Past Papers and Practice Papers - ExamSolutions