• If a mbm_book_grid shortcode is used to insert a book grid on a page, and the grid is set to group books by series, the heading on each series section is an h2.

    When the grid is already below a heading on the form, we may want to insert a grid that has series headings of h3 or higher.

    Can you please add this as an option in the shortcode arguments?

    I’m aware I can control the appearance of these headings with CSS, but to conform with accessibility guidelines, headings have to reflect the actual outline structure of the page, not simply look right for sighted users.

    My specific use case is that I want to insert two grids inside a tabbed UI to let users select the sort order. The tab labels should be h2, so section headings on the tab have to be h3.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author mooberrydreams

    (@mooberrydreams)

    I can consider a starting heading value. (If there are nested groups, the headers go higher in number).

    In the meantime, you can use this filter and search/replace the h2:
    apply_filters('mbdb_book_grid_post_heading_content', $content, $l, $label);

    Plugin Author mooberrydreams

    (@mooberrydreams)

    I just realized that while it’s not spelled out on the product page, the Advanced Grids extension does allow the user to sort the grid (among other things). Just throwing that out there in case that’s more cost-effective than the custom coding.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can’t control heading level on grids grouped by series’ is closed to new replies.