Follow us on

Codestar Support Forum » WordPress Plugins » Codestar Framework

Submenu with no Panel, only Save Button

  1. Hi,
    I need to create another "Options Page", which will be Sub Menu under main menu.
    I want to show only Options Settings, not Top,Left,Bottom Panels. Only Save Button will be there.
    Example: http://i.prntscr.com/zp2vTmNqT3aVC756_mu_6Q.png
    Please help me to achieve this.
    Thanks

    Posted 2 years ago #

  2. Codestar
    Admin

    Hi,

    The screenshot doesn't open. It says "AccessDenied".

    Regards, Codestar

    Posted 2 years ago #
  3. Ahh, sorry the the link not working. I've been waiting for your answer. I am middle of something and need for your help.
    Example: https://prnt.sc/1131p92

    My working scenario is-
    1) I've a Menu with Blank options page. And I want to take advantage of Codestar Framework.
    2) Can I use CS Meta Boxes as Options page? If so, how do I save options data and retrieve them? I mean how "Save Button" will work.
    3) It's not Custom Post Type, It's just a Option Page. So, no title will be there. I don't want write more codes because I've CS framework and I like to use it.
    4) I think like my above Image If I can remove Topbar(without Save Button), Left sidebar and Footer then my target will fulfill.

    Hope you understand my scenario.
    Thanks

    Posted 2 years ago #

  4. Codestar
    Admin

    Hi,

    Why you do not use Custom CSS hide for removing ? for eg:

    CSF::createOptions( $prefix, array(
      'menu_title'      => 'CSF Demo',
      'menu_slug'       => 'csf-demo',
      'framework_class' => 'litonarefin', // add framework class paramter for custom css.
    ) );CopyCopied!

    then create your admin.css and copy-paste the below code.

    .litonarefin .csf-nav,
    .litonarefin .csf-search,
    .litonarefin .csf-footer,
    .litonarefin .csf-reset-all,
    .litonarefin .csf-expand-all,
    .litonarefin .csf-header-left,
    .litonarefin .csf-reset-section,
    .litonarefin .csf-nav-background{
      display: none !important;
    }
    
    .litonarefin .csf-nav-normal + .csf-content{
      margin-left: 0;
    }
    
    /* If needed for white top-bar */
    .litonarefin .csf-header-inner {
        background-color: #fafafa;
        border-bottom: 1px solid #f5f5f5;
    }CopyCopied!

    Regards, Codestar

    Posted 2 years ago #
  5. Now, another problem is facing. I've main menu which is build by CSF.
    I need a sub menu with options above. But I can't do it.
    Can you please help me with it?

    Posted 2 years ago #
  6. Got the solution, Thanks

    Posted 2 years ago #

  7. Codestar
    Admin

    You're welcome

    Posted 2 years ago #