diff --git a/inc/admin/dashboard/main.php b/inc/admin/dashboard/main.php index 87bdc11114..3c281527ac 100755 --- a/inc/admin/dashboard/main.php +++ b/inc/admin/dashboard/main.php @@ -742,7 +742,8 @@ private function get_external_plugins_data() { */ public function render_custom_layout_header() { $screen = get_current_screen(); - if ( ! $screen || $screen->id !== 'edit-neve_custom_layouts' ) { + + if ( ! $screen || ! ( $screen->id === 'edit-neve_custom_layouts' || $screen->id === 'neve_page_neve-custom-layout-upsell' ) ) { return; } diff --git a/inc/admin/hooks_upsells.php b/inc/admin/hooks_upsells.php index 3027fdb635..1e16135980 100644 --- a/inc/admin/hooks_upsells.php +++ b/inc/admin/hooks_upsells.php @@ -241,7 +241,8 @@ public function register_custom_layout_upsell_page( $theme_page, $capability ) { __( 'Custom Layouts', 'neve' ), __( 'Custom Layouts', 'neve' ), $capability, - 'edit.php?post_type=neve_custom_layouts' // TODO: make a dummy page. + 'neve-custom-layout-upsell', + array( $this, 'render_custom_layout_page' ) ); } @@ -457,4 +458,48 @@ public function render_custom_layouts_upsell_modal() { +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
+

+ +

+
+
+ render_custom_layouts_upsell_modal(); ?> +
+