Support » Plugin: Conditionally display featured image on singular posts and pages » Does not work with Squarex Lite theme

  • Resolved Tyler Tork

    (@tylertork)


    Would you please make your plugin work with the Squarex Lite theme? The linked page is displaying featured image though I checked the box that it should not.

    Thanks.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author cyrillbolliger

    (@cyrillbolliger)

    Hi Tyler,

    Thanks for reaching out. I’ve just added a filter that lets you initialize the plugin early, so it will also work with the Squarex Lite theme. To activate early initialization add the following snippet to your themes function.php:

    
    

    function cybocfi_set_startup_hook() {
    return ‘get_header’;
    }

    add_filter( ‘cybocfi_startup_hook’, ‘cybocfi_set_startup_hook’ );`
    `

    Be aware, that this might have some side effects: e.g. it might also hide the featured image from plugins that would normally see it, like SEO plugins et al.

    I wish you an excellent week,
    Cyrill

Viewing 1 replies (of 1 total)
  • The topic ‘Does not work with Squarex Lite theme’ is closed to new replies.