• 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

I'm having a conceptual problem

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 › General Discussion › I'm having a conceptual problem

This topic is: not resolved
  • This topic has 4 replies, 5 voices, and was last updated 10 years, 4 months ago by noxbane.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • November 20, 2012 at 2:14 pm #932
    theMikeD
    Participant

    I'm new to genesis and I admit I'm having what I think is a conceptual problem with hooks and so on. Let me try to explain.

    Lets say for example that I want to programatically remove the comments from a post. Google tells me that to do this I need to add this
    remove_action( 'genesis_after_post', 'genesis_get_comments_template' );
    before calling genesis(); Fine. But how would I know this if not for google?

    The reason I ask is that there are many many hooks listed in the hooks guide, but none of them list the actions they use.

    For example, from the hook guide:

    genesis_after_post
    This hook executes after each post in all loop blocks (outside the post_class() div).

    Thats an accurate description. But where do I find a list of the actions that are used in this section, such as genesis_get_comments_template?

    Without this information, it's impossible to target the bits I want to modify or turn off, because the remove_action fails without any form of error; if the action I'm trying to turn of doesn't exist, nothing happens.

    Another example: google tells me that to remove the post meta I add the following line:
    remove_action( 'genesis_after_post_content', 'genesis_post_meta' );
    How would I be able to determine something like this for myself? I'm happy to look through the genesis code but I need to know what I'm looking for.

    If anyone can describe how I can go about finding this information, I would be very grateful.

    …Mike

    November 20, 2012 at 2:20 pm #934
    SoZo
    Member

    I recommend starting off by reading through Nick's Genesis Explained series of posts.


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    November 20, 2012 at 8:11 pm #1023
    nickthegeek
    Member

    I was going to recommend that same series. I try to break it down and follow more or less the same path I took as I learned Genesis with an emphasis on learning how to use the files to find things like that.

    November 21, 2012 at 7:43 am #1103
    netviper
    Member

    I have an issue with that stuff too.  I haven't found anywhere - other than some of nicks stuff - that explains how to use any of the hooks and filters.  It is very different even for people that have used WP for years that have never before needed to do that.

    November 21, 2012 at 10:15 am #1130
    noxbane
    Member

    Although it doesn't list the actions on each hook (which would be great) the Genesis Visual Hook Guide is a good resource for seeing where certain hooks happen in the page structure.   But a listing of each action that takes place on each hook would be a great resource.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘General Discussion’ 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

© 2023 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