• HOME
    • PRODUCT
    • PRICING
    • ABOUT
    • COMMUNITY
    Menu
    • HOME
    • PRODUCT
    • PRICING
    • ABOUT
    • COMMUNITY
    Get in touch
    Get in touch
    Menu
    • HOME
    • PRODUCT
    • PRICING
    • ABOUT
    • COMMUNITY
    • Sign in
    • Start free trial
    • Get in touch
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags
    • Users
    • Groups
    • Documentation
      • Home
      • Read API
      • Write API
      • Plugin Development
    1. Home
    2. Tags
    3. themes beginner
    Log in to post
    • All categories
    • M

      Parent theme hooks in child theme
      Plugin Development • theme plugin.json plugin themes beginner • • Max 0

      2
      0
      Votes
      2
      Posts
      172
      Views

      M

      After some more code digging and experiments I can answer my own question. A theme is a normal plugin and as such does not inherit any behavior from other plugins.
      So you need to copy everything you need from the base theme library.js to your child theme. And of course, you need to declare client scripts explicitly.
      Loading of missing templates from base theme is the only link between the base and the child theme.

    • D

      New themes not display correctly
      Technical Support • themes beginner • • darrennickerson

      12
      0
      Votes
      12
      Posts
      4609
      Views

      strangebeer

      @julian, I've created a repo with my code:
      https://github.com/sanpatricio/nodebb-theme-capitol

    Get Started

    • Product
    • Pricing

    Resources

    • Demo Site
    • Answers
    • Docs
    • Bug Bounty

    Company

    • About
    • Blog
    • Contact
    Start Free Trial
    Github Facebook Instagram Twitter
    © 2014 – 2022 NodeBB, Inc. — Made in Canada.
    • Terms
    • Privacy
    • GDPR
    • DMCA
    • Contact
    Menu
    • Terms
    • Privacy
    • GDPR
    • DMCA
    • Contact