WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] how to find or edit or modify menu in ktai style theme plugin (8 posts)

  1. trs.julian
    Member
    Posted 1 year ago #

    i use eclipse to trace a menu text in ktai style but i did not see the text menu to edit.
    All folder i got but no one will appear text about that menu this is the code in footer.php [the ks_pages_menu is the main function to show the navigation menu in footer] where can i find the text of menu and what folder ? please help me if any one knows about this ..

    ?php ks_pages_menu(' | ', '<div>', $ks_settings['list_pages']);
    ?> | <?php ks_ordered_link('', $max, ks_blogurl(KTAI_NOT_ECHO) . '?menu=months', __('Blog'));
    ks_admin_link(' | '); ks_login_link(' | '); ?>
    </div>
    <div style="margin: 25px auto 10px;font-size: 14px; line-height: 17px" align="center">All content Copyright
    株式会社デジログ|DIGILOG Co.,Ltd<?php ks_switch_pc_view(); ?></div>
    <?php ks_wp_footer(KTAI_NONE_PC_HEAD); ?>
    </body></html>

  2. Andrew
    Forum Moderator
    Posted 1 year ago #

    The text of the menu is generated automatically, it cannot be found constant within files.

  3. trs.julian
    Member
    Posted 1 year ago #

    if generated automatically, their's any way to control about navigation menu that I want to show...
    what fucntion i can make the statement or code i put to control the menu i want to show. please give me some idea about this.

  4. Andrew
    Forum Moderator
    Posted 1 year ago #

    It looks like this function

    ks_pages_menu(' | ', '<div>', $ks_settings['list_pages']);
  5. trs.julian
    Member
    Posted 1 year ago #

    i try to edit that function but nothing happen even if i remove the inside statement only ks_pages_menu will hold the function.. i want to remove one of the navigation menu in ktai page because it is not use but the problem is. i cannot remove it... i try to condition or make a code or statement in that page but nothing happen.. and i want to know what is the reference so i can redirect that menu or make if statement so it cannot be show. hope you have an idea..... almost 2 weeks i search it... but no one answer

  6. Andrew
    Forum Moderator
    Posted 1 year ago #

    You shouldn't modify the theme's functions, but instead use a Child Theme.
    Anyway can't you just hide one page element using jQuery? It won't hide it from the HTML but using the .hide() function, the item will not be visible website-wise.

  7. trs.julian
    Member
    Posted 1 year ago #

    ok Thank you so much for the idea i get it..

  8. trs.julian
    Member
    Posted 1 year ago #

    <?php ks_pages_menu(' | ', '<div>', $ks_settings['list_pages'],'sort_column=menu_order,post_title&exclude=406,559'); i solve my problem true this if they have page id. if default in ktai like all pages navigation this folder inc/template-tags.php remove the inside condition of thsi statement[[[[[if ($has_children) {
    $menu[] = '' . $a_open . $r['all_page_anchor'] . $a_close . '';
    }]]]]]

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags