Forum Replies Created
-
AuthorPosts
-
February 13, 2021 at 4:10 AM in reply to: ✅Settings page not showing in top level, only as submenu #24434
David Kraljic
ParticipantHere is a fresh screenshot of the issue
https://share.getcloudapp.com/xQunnDYnFebruary 13, 2021 at 4:09 AM in reply to: ✅Settings page not showing in top level, only as submenu #24433David Kraljic
Participant<?php add_filter( 'mb_settings_pages', 'your_prefix_function_name' ); function your_prefix_function_name( $settings_pages ) { $settings_pages[] = [ 'menu_title' => __( 'Pencil 2', 'your-text-domain' ), 'id' => 'pencil-2', 'option_name' => 'Pencil2', 'position' => 90, 'submenu_title' => 'test', 'parent' => 'options-general.php', 'columns' => 1, 'help_tabs' => __( 'Here is help content - where does it show up?', 'your-text-domain' ), 'customizer' => true, 'icon_url' => 'editor-paste-text', ]; return $settings_pages; }February 9, 2021 at 8:24 PM in reply to: ✅Customizer settings panel disappears after page load #24406David Kraljic
ParticipantAlso, a question about settings pages when created through code/php. They don't show up as items in the site settings list. Is that expected behavior? If so, is there a way to make them show up there?
February 9, 2021 at 8:22 PM in reply to: ✅Settings page not showing in top level, only as submenu #24405David Kraljic
ParticipantThanks. I just tried and it didn't make the page appear. https://share.getcloudapp.com/kpu75lAR
February 9, 2021 at 6:01 PM in reply to: ✅Customizer settings panel disappears after page load #24403David Kraljic
ParticipantFound out that the customizer section is set to display none. How do we remove that so it appears? https://share.getcloudapp.com/X6u9oQBD
February 9, 2021 at 5:57 PM in reply to: ✅Settings page not showing in top level, only as submenu #24402David Kraljic
ParticipantWe created a settings page via code (not UI controls). The settings page does show in the admin UI as expected. However, it doesn't show in the Metabox settings page list. Is there a way to have it appear there as well?
David Kraljic
Participantnevermind - got it. 🙂
David Kraljic
Participantthank you. When placing this on let's say - the home page - what would the object id be? The home page's post id? If so, how would you use the setting shortcode in something like a footer where the object id is different everytime?
David Kraljic
ParticipantI wonder, since post id is optional - if post id is not included then it uses the current post. Since this is data from the setting page it wouldn't be present in a post. So for data from a settings page there must be some other parameter to pass in the shortcode which tells to grab data from settings not post?
David Kraljic
ParticipantEddyPiV - how did you resolve it?
-
AuthorPosts