Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Philip Arthur Moore

    (@philiparthurmoore)

    Hi Bert,

    You can disable subtitles in whatever views you like. You can read the FAQ on how to do that here.

    Thanks.

    Thread Starter bertkrus

    (@bertkrus)

    Thanks, but where do i need to paste that script? In which file?

    And how do I change is_archive in frontpage?

    Plugin Author Philip Arthur Moore

    (@philiparthurmoore)

    You will need to put that in your theme’s functions.php file or similar. Just change is_archive to is_front_page and you should be good to go.

    Thread Starter bertkrus

    (@bertkrus)

    Ok, I did like you told but now they also dissapeared from single posts? I used this in functions.php

    /**
    * Disable Subtitles in frontpage views.
    *
    * @uses function is_archive
    * @uses function in_the_loop
    */
    function subtitles_mod_supported_views() {
    // Ditch subtitles in archives.
    if ( is_front_page() ) {
    return false;
    }

    // Default in The Loop behavior from Subtitles.
    if ( in_the_loop() ) {
    return true;
    }
    } // end function subtitles_mod_supported_views
    add_filter( ‘subtitle_view_supported’, ‘subtitles_mod_supported_views’ );

    Plugin Author Philip Arthur Moore

    (@philiparthurmoore)

    If you give me specific links I could take a look. All that does is turn the plugin off on your home page entirely. It doesn’t touch your single posts at all. Thanks.

    Thread Starter bertkrus

    (@bertkrus)

    Plugin Author Philip Arthur Moore

    (@philiparthurmoore)

    I see subtitles on your single post. This is what you want right?

    Thread Starter bertkrus

    (@bertkrus)

    Yes I want that, but I would like to know if they can be disabled on front page?

    Plugin Author Philip Arthur Moore

    (@philiparthurmoore)

    Try is_home.

    Thread Starter bertkrus

    (@bertkrus)

    No doesnt work…well, the owner is the site is happy with subtitles at frontpage, so i leave it for now, but if you have any suggestions, please let me know?

    Best regards, Bert

    Plugin Author Philip Arthur Moore

    (@philiparthurmoore)

    Honestly those are the only two functions that you should need. Any additional digging into this would require some time. If you suspect that this is a bug in the plugin then you can file a ticket in GitHub; otherwise you might want to contact the theme makers to see if there’s a theme conflict happening. Thanks.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘disable on front page’ is closed to new replies.