Skip to content

Manipulate the head via Custom Theme #4581

Closed
@ikabod

Description

@ikabod

Attempted Debugging

  • I have read the debugging page

Searched GitHub Issues

  • I have searched GitHub for the issue.

Describe the Scenario

Hi,

I want to add my own JavaScript and CSS to the head section via PHP.

Reason: I prefer to have all customization files under my custom theme folder. The current approach is, to read the content of my files from the folder "/themes/my-theme/js/" and create the file in "/themes/my-theme/common/custom-head.blade.php". Not yet programmed, but should work.

This seems to me an ugly solution - is there a way to achieve this via a theme event too?

Thanks,
Peter

Exact BookStack Version

BookStack v23.08.3

Log Content

No response

Hosting Environment

php 8.2.10 on localhost (Apache on Manjaro)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions