Skip to content

[Bug] Call to undefined function views_path() WHEN STTING NEW CUSTOM THEME #5694

Closed
Laravel-Backpack/docs
#611
@azeddine-hf

Description

@azeddine-hf

in documentation :
The my-cool-theme/inc/theme_styles.blade.php file should hold all custom CSS that your theme needs. For example:

{{-- You can load files directly from CDNs, they will get cached and loaded from local --}}
@basset('https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css')

{{-- You can also load files from any place in your application directories --}}
@basset(views_path('my-cool-theme/assets/css/extra.css'))

{{-- You can also write inline CSS blocks --}}
@bassetBlock('my-cool-theme/custom-styling')

<style> .something { border: 1px solid red; } </style>

@endBassetBlock
but in usage shows an error : Call to undefined function views_path()

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions