• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Genesis Author Pro missing comment section/hook

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Genesis Author Pro missing comment section/hook

This topic is: not resolved

Tagged: comments, genesis hooks, single book

  • This topic has 2 replies, 3 voices, and was last updated 5 years, 1 month ago by jameslawther.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • July 1, 2017 at 8:56 am #208561
    Andrea Barghigiani
    Member

    Hi all,
    I am writing just to understand what's happening. I was studying the code of my pages and I noticed that on my single book page there is no comment section.

    I know that Genesis and WordPress have several settings that will let me activate/deactivate the comment section even in the CPT, and I've checked them and everything looks fine.

    For example, I am able to see the comment sections on my single post page, but that's not happening for my books...

    I've also noticed that inside the page of the single book is missing the genesis_comments hook.

    I've tried to look inside the plugin folder and I've noticed the template/ folder. Inside there is the single-book.php page but it seems ok, there is no remove_action at all...

    Anyone of you has ever noticed something like it?

    How did you solve?

    Thank you in advance and all the best,
    Andrea


    SkillsAndMore: the italian go to resource for web development.

    http://mariopescatoriscrittore.com/book/agosto/
    July 1, 2017 at 9:48 am #208563
    Victor Font
    Moderator

    You're talking about the Genesis Author Pro plugin and not the theme? The plugin creates the CPTs, not the child theme. The Author Pro plugin removes all default Genesis actions in /functions/template.php.

    To restore the comments for book CPTs, add this to functions.php:

    add_action('pre_get_posts', 'restore_comments');
    function restore_comments() {
        add_action( 'genesis_after_entry', 'genesis_get_comments_template' );
    }

    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    October 13, 2020 at 12:11 pm #501431
    jameslawther
    Participant

    I'd like to be able to add something to the genesis_after_entry_content hook.

    Presumably, I need to do something very similar to add those content hooks back?

    I'd be very grateful if somebody could tell me what.

    Thank you very much

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble