• Resolved stephencottontail

    (@stephencottontail)


    I’m developing a theme that uses Jetpack’s Content Options. However, because this theme doesn’t display a comment link anywhere nor does it display featured images on archive views, it doesn’t make sense to have those options available. I can’t figure out how to remove them, though. I set 'comment' => false in the post-details array, but that didn’t seem to do anything. Can I remove just those options and leave the rest?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,

    As I understand, you’re trying to use this feature
    https://jetpack.com/support/content-options/

    Based on the code here https://github.com/Automattic/jetpack/blob/5.7.1/modules/theme-tools/content-options/customizer.php#L208 , you can leave the comment is empty or simply not include it in the array.

    I’ve tested the following code for the post-details array and it works.

        'post-details'       => array(
            'stylesheet'      => 'themeslug-style', // name of the theme's stylesheet.
            'date'            => '.posted-on', // a CSS selector matching the elements that display the post date.
            'categories'      => '.cat-links', // a CSS selector matching the elements that display the post categories.
            'tags'            => '.tags-links', // a CSS selector matching the elements that display the post tags.
            'author'          => '.byline', // a CSS selector matching the elements that display the post author.
            // comment out this line 'comment'         => '.comments-link', // a CSS selector matching the elements that display the comment link.
        ),
    Thread Starter stephencottontail

    (@stephencottontail)

    Thanks for your reply, but it didn’t seem to work for me.

    Are the options stored in a transient or cached in some weird way? Even after clearing cookies, emptying caches, and trying from a different browser, I still didn’t see any changes. I even tried deleting my code and copy-and-pasting the code from https://jetpack.com/support/content-options/ (and clearing cookies and emptying caches, etc.), and I didn’t see any changes.

    Hi,

    It’s working for me immediately. I am using a default theme – Twenty Fifteen.

    Is there any chance that your current theme is having the same filter?

    Please try to disable other plugins except for Jetpack, and switch to a default theme. Let us know if the issue is still there.

    Thread Starter stephencottontail

    (@stephencottontail)

    Thanks for your reply. I didn’t realize that Underscores already included support for some Jetpack features. Everything’s good now.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Turning off Content Options support?’ is closed to new replies.