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

Option to edit default background image for pages on root network #250

Open
lgumb opened this issue Jul 11, 2019 · 2 comments
Open

Option to edit default background image for pages on root network #250

lgumb opened this issue Jul 11, 2019 · 2 comments

Comments

@lgumb
Copy link

lgumb commented Jul 11, 2019

Feature Description

It would be great if network managers had the ability to change/customize the background image for pages on the root network. Currently, we can only change header images on the network homepage.

Feature Use Case

Currently, network managers are unable to change the background image for pages on the root network without using custom CSS. I can imagine that many super admins for their university PressbooksEDU networks are librarians like myself and without any CSS skills. This would be really helpful to those of us wanting to change the background image. Thanks!

@SteelWagstaff
Copy link
Member

I propose that we do two things:

  1. Add a customizer option for Aldine that allows network managers to use a header image which would replace https://github.com/pressbooks/pressbooks-aldine/blob/dev/dist/images/catalog-header.jpg for the catalog and other child (i.e. not-main/home) pages on the root site (in much the same way that Header Image replaces https://github.com/pressbooks/pressbooks-aldine/blob/dev/dist/images/header.jpg if it has been set:

    if ( is_front_page() ) {
    if ( has_header_image() ) {
    echo( get_header_image() );
    } else {
    echo get_template_directory_uri() . '/dist/images/header.jpg';
    }
    } else {
    echo get_template_directory_uri() . '/dist/images/catalog-header.jpg';
    ). When doing this we may wish to change the name of the current 'Header Image' option to say 'Home Page Header Image' and this second option to say 'Child Page Header Image' or something to that effect.

  2. On the edit page menu for individual pages on the site root we should add a small button that allows the user to set a custom header image for that page. It would look/function much like the featured image function for core WordPress.
    Screenshot from 2019-11-03 15-40-28

When a page has a custom header/featured image, that image would display as the page's header background image instead of the theme default.

@SteelWagstaff
Copy link
Member

See also #189

@SteelWagstaff SteelWagstaff transferred this issue from pressbooks/ideas Jun 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants