Viewing 3 reply threads
  • Author
    • #322

      This is probably another bug.

      I create a Setting page called “Home Page” and put it not as a sub-menu but directly as a menu.

      I would like to have the same icon as the “Pages” section so I code like this:

      * Piklist Settings page

      /* Home page */

      add_filter( 'piklist_admin_pages' , 'katt_piklist_theme_setting_page' );

      function katt_piklist_theme_setting_page($pages) {
      $pages[] = array(
      'page_title' => 'Home Page' // Title of page
      ,'menu_title' => 'Home Page' // Title of menu link
      ,'capability' => 'manage_options' // Minimum capability to see this page
      ,'menu_slug' => 'piklist-theme-fields' // Menu slug
      ,'setting' => 'katt-home-page' // The settings name
      ,'icon' => 'edit-pages' // Menu/Page Icon
      ,'save' => true // true = show save button / false = hide save button
      ,'default_tab'=> 'Header' // Set a default tab
      ,'position' => '21'

      return $pages;

      The page icon change but not the menu icon. I would like to have the “double sheet” icon for both.

      See this screenshot

    • #331

      I think I was wrong, this is not a Piklist bug but just how WordPress Works.

      If somebody know how to achieve this, I’m interesting 🙂

    • #332

      @kattagami– In class-piklist-setting.php we use both ICON and ICON_URL for the menu and page icons. That may help.

    • #333

      Thank you @Steve, ICON_URL seems to be what I need for my icon menu.

Viewing 3 reply threads
  • You must be logged in to reply to this topic.