Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more filters to header #707

Merged
merged 2 commits into from
Feb 27, 2024
Merged

Add more filters to header #707

merged 2 commits into from
Feb 27, 2024

Conversation

crftwrk
Copy link
Member

@crftwrk crftwrk commented Feb 27, 2024

/*
 * Header position and bg
 */
function header_bg_class() {
  return "sticky-top bg-body shadow";
}
add_filter('bootscore/header_class', 'header_bg_class', 10, 2);
/*
 * Header buttons
 */
function header_button_class() {
  return "btn btn-link ps-2 pe-0 text-decoration-none text-body-secondary";
}
add_filter('bootscore/header_button_class', 'header_button_class', 10, 2);

@crftwrk crftwrk mentioned this pull request Feb 27, 2024
@crftwrk crftwrk merged commit b161d53 into v6.0.0-beta1 Feb 27, 2024
@crftwrk crftwrk deleted the Add-filters-to-header branch February 27, 2024 10:42
@justinkruit
Copy link
Member

Can you change the button class filter?

  • rename it to bootscore/header/toggler_class
  • add which button it is as extra argument

@crftwrk
Copy link
Member Author

crftwrk commented Feb 27, 2024

How do you mean this exactly? May you want quickly do a PR?

@justinkruit
Copy link
Member

Sure, I can do that when I get home

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants