Skip to content

Commit

Permalink
Add acf-headerbar to layouts listing page
Browse files Browse the repository at this point in the history
ACF v6.x UI fix to have the "Add" button on the layout listing page
  • Loading branch information
barnemax-pilotin committed Nov 15, 2022
1 parent 50c68ad commit ff1e79e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 5 additions & 0 deletions assets/css/pilopress-admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,11 @@ body.admin_page_pip_styles_tailwind_module #publishing-action .spinner {

/* ACF v.6.0 UI revamp fixes */

/*Hide ACF toolbar on layouts list*/
.pip-admin-navigation + .acf-admin-toolbar {
display: none;
}

/* Hiding add field on headerbar actions */
.pip-builder .acf-headerbar-actions .add-field {
display: none;
Expand Down
3 changes: 0 additions & 3 deletions includes/classes/admin/class-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -441,9 +441,6 @@ public function pilopress_dashboard() {
*/
public function display_pip_navbar() {

// Hide ACF top navbar
add_filter( 'acf/admin/toolbar', '__return_false' );

// Get menu items
global $submenu;
$pilopress_menu = acf_maybe_get( $submenu, 'pilopress' );
Expand Down

0 comments on commit ff1e79e

Please sign in to comment.