• Resolved riemers

    (@riemers)


    If you encounter this problem with the “newsgamer” theme.

    Find: ./themes/newsgamer/framework/extend-menus.php

    then ofter line 302, insert the following snippet as suggested in the FAQ:

    <p class="field-description description description-wide">
      <label for="edit-menu-item-description-<?php echo $item_id; ?>">
        <?php _e( 'Description' ); ?><br />
        <textarea id="edit-menu-item-description-<?php echo $item_id; ?>" class="widefat edit-menu-item-description" rows="3" cols="20" name="menu-item-description[<?php echo $item_id; ?>]"><?php echo esc_html( $item->description ); // textarea_escaped ?></textarea>
        <span class="description"><?php _e('The description will be displayed in the menu if the current theme supports it.'); ?></span>
      </label>
    </p>
    
    <?php 
    // Add this directly after the description paragraph in the start_el() method
    do_action( 'wp_nav_menu_item_custom_fields', $item_id, $item, $depth, $args );
    // end added section 
    ?>

    Then it will work in this theme (got it from the author, was very helpfull too)

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘newsgamer theme issue’ is closed to new replies.