emperorkoala - 1 week ago

I'm new to using PyroCMS (just started learning last week). I decided to try creating a theme, but I was wondering if there is a way to use existing Bootstrap templates as part of the theme. For example, I want to replace the default generated navbar with this one (https://startbootstrap.com/template-overviews/scrolling-nav/), but I can't figure out how to properly replace it. Any help?

ryanthompson - 1 week ago

If this is a public theme - you can do whatever you like (php artisan make:addon foo.theme.example and go from there).

For the admin theme though you can override the view either in a service provider or publishing the theme: https://pyrocms.com/help/developer-tools/extending-pyrocms

If you're trying to simply override. But again for an admin theme too you can do whatever you want. The navigation markup is 100% up to you. Here's how I do it: https://github.com/pyrocms/accelerant-theme/blob/1.0/resources/views/partials/menu.twig