Results 1 to 2 of 2

Thread: install.php - Menu Item Hard Coded Title

  1. #1
    Thread Starter
    Expired Customer jjcrook's Avatar
    Join Date
    Jan 2016
    Posts
    3
    Thanks
    2
    Thanked 2 Times in 1 Post

    install.php - Menu Item Hard Coded Title

    Hi,

    In the install.php you have a function that hard codes the menu items for Freelancer and Project.

    How can we edit this title after the installation?

    thanks

    John

    wp_update_nav_menu_item( $menu_id, 0, array(
    'menu-item-position' => 2,
    'menu-item-title' => esc_attr( __( 'Find Project', APP_TD ) ),
    'menu-item-url' => esc_url( get_post_type_archive_link( HRB_PROJECTS_PTYPE ) ),
    'menu-item-status' => 'publish'
    ) );

    wp_update_nav_menu_item( $menu_id, 0, array(
    'menu-item-position' => 3,
    'menu-item-title' => esc_attr( __( 'Find Freelancer', APP_TD ) ),
    'menu-item-url' => esc_url( get_the_hrb_users_base_url() ),
    'menu-item-status' => 'publish'
    ) );

  2. #2
    dimitris's Avatar
    Join Date
    Oct 2011
    Location
    Earth
    Posts
    20,617
    Thanks
    222
    Thanked 1,873 Times in 1,770 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Menu issue li.current-menu-item not showing for home page
    By korrigan in forum Vantage General Discussion (Legacy)
    Replies: 2
    Last Post: October 2nd, 2013, 06:36 PM
  2. Hard coded:    
    By frcamp in forum ClassiPress General Discussion
    Replies: 0
    Last Post: September 22nd, 2013, 12:53 AM
  3. Menu issue li.current-menu-item not showing for home page
    By korrigan in forum Vantage General Discussion (Legacy)
    Replies: 1
    Last Post: November 26th, 2012, 05:31 PM
  4. hard coded css styles
    By numediaweb in forum Report ClassiPress Bugs
    Replies: 1
    Last Post: April 12th, 2012, 10:18 AM