Giter Site home page Giter Site logo

Theme Review Guidlines about jumpstart HOT 4 CLOSED

grappler avatar grappler commented on August 28, 2024
Theme Review Guidlines

from jumpstart.

Comments (4)

elimc avatar elimc commented on August 28, 2024

Thanks for the review. I am not particularly interested in going through the WP.org theme review, because this is not for the public. It is only for developers.

I'm not sure what you mean about the register_nav_function() issue. I am having that being called after_theme_setup in functions.php. Am I doing this wrong?

from jumpstart.

grappler avatar grappler commented on August 28, 2024

That is fine. It is just important that it is clear.

(I would still recommend placing the features in a site specific plugin that can easily be managed without the theme being involved.)

I don't think it is https://github.com/elimc/jumpstart/blob/master/lib/inc/custom-template-tags.php#L10
This is how it should be

function jumpstart_menu() {
    // This theme uses wp_nav_menu() in one location.
    register_nav_menus( array(
        'primary' => __( 'Primary Menu', '_s' ),
    ) );

}
add_action( 'after_setup_theme', 'jumpstart_menu' );

from jumpstart.

elimc avatar elimc commented on August 28, 2024

I am loading the bootstrap file from functions.php. In that file is where the add_action functionality takes place. This means that my menu is working fine when I load the theme. I have tested it.

I may consider moving modular functionality into a plugin later on. For now, it seems like things are working ok, and I will keep improving the theme.

from jumpstart.

grappler avatar grappler commented on August 28, 2024

The menu will work but adding by hooks is better. This is what Justin Tadlock says:

By adding everything from a hook, your functions file becomes much more organized and allows users to remove things using the remove_action() or remove_filter() functions. It also makes sure that things are loaded at their proper point in the WordPress flow.

http://justintadlock.com/archives/2010/12/30/wordpress-theme-function-files

I will close this issue as you are working on it. 😄

from jumpstart.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.