New Landing How can we help? Themeforest Theme Support Dante change default value for one page nav

Viewing 7 posts - 1 through 7 (of 7 total)
  • Posted in: Dante
  • #204011
    Steve
    Member
    Post count: 54

    hej swiftideas.

    i’d like to change the default value for the one-page-nav (sf_enable_one_page_nav).
    if possible i’d like to do that update resistant in my child theme.

    thanks in advance for your help!

    best,
    s

    #204036
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please explain it in detail to know the issue exactly.
    Thanks
    Mohammad

    #204042
    Steve
    Member
    Post count: 54

    hej mohammad.

    i guess it’s not an issue; i’d just like to have the one page nave activated all over the place without filling in checkboxes on each page.

    second i use custom post types and as you know i managed to bring in the field (sf_enable_one_page_nav). now i’d like to have it activated on each page (just as i told before).

    any idea to set the value?

    i found …

    // REMOVE PROMO BAR
    array(
    'name' => __('Enable One Page Navigation', $text_domain), // File type: checkbox
    'id' => "{$prefix}enable_one_page_nav",
    'type' => 'checkbox',
    'desc' => __('Enable the one page nav which appears on the right of the page.', $text_domain),
    'std' => 0,
    ),

    … in swift-framework/meta-boxes.php and changed the std to 1 – without success. (and of course it would have been overwritten with next update.)

    besides: are you sure the comment right above is in the right place? instead of the promo bar i would have expected something dealing with the one-page-nav. (but comments are not my topic here.)

    best,
    s

    #204497
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    My colleague will assist you shortly.
    Thanks
    Mohammad

    #204646
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi @Steve

    Changing the value in meta-boxes.php simply sets the default value for new posts. header.php line 94 is what enables it on each page – https://www.dropbox.com/s/w2f3khdx4qwc3kd/Screenshot%202015-08-17%2016.07.24.png?dl=0

    You can override the header file and manually set that if you’d prefer.

    – Ed

    #204672
    Steve
    Member
    Post count: 54

    hej ed,

    thanks for your screenshot. i’m about to understand the one_page_nav more and more! 😉

    so meta-boxes.php was the right place, but that’s just working for new pages posts and it’s bringing up 2 questions …

    1.) if i’d like to keep that change of meta-boxes.php, is there an update resistent filter/hook? maybe i should ask you for a new feature at default meta options > always enable one page nav

    2.) i am dealing much more with well segmented but quite long project pages (custom post type with wp-types) where the one-page-nav really helps. i took over your sf_enable_one_page_nav with wp-types and now i could enter the ‘1’ each time of course, but not having to that would be much more convenient. any ideas?

    best,
    s

    #205109
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Ok – if you want it on every page, without having to set it, just add the attached file to your child theme (unzip first). http://d.pr/f/13Azb/30ohLSQu

    – Ed

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.