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.
),
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.
Thanks for your reply. I didn’t realize that Underscores already included support for some Jetpack features. Everything’s good now.