Since this is a stylistic change, and not looking to reorder the DOM for semantic reasons, I think the js solution wouldn’t be the best approach. Better to keep it in CSS, keeping the markup intact.
Two ways to do it:
Flexbox:
#generalinfo{
display: flex;
flex-direction: column-reverse;
}
CSS Grid:
#generalinfo{
display: grid;
}
.cat{
grid-row: 2;
}
Related Posts:
- How do i style the current menu anchor link’s parent anchor link? [closed]
- How to insert custom code into wp_nav_menu structure?
- Grey out nav buttons unless is_user_logged_in()
- Static page to one page- menu inactive items highlighted
- How Do I Add Images To Main Navigation Menu
- display menu as table layout
- Menu Arrow for Child Element
- How to buid wordpress menu with auto width sub-menu items in dropdown menu without any items sharing one line [closed]
- How to add css to single navigation text? [closed]
- Odd spacing in Navigation Bar [closed]
- wp_nav_menu container style args
- Add/remove image from navigation bar
- Additional CSS for the nav menu
- Disable Top Nav Bar on Mobile
- Active page link not getting class assigned
- individual images as navigation design TwentyTen
- How to add or remove borders in navigation menu?
- Site navigation sits unstyled for a second on page reload [closed]
- Programmatically add a Navigation menu and menu items
- Dynamically exclude menu items from wp_nav_menu
- Split up wp_nav_menu with custom walker
- Is there an easy way to replace a custom menu link with a page or post?
- How to Add to Each Menu Link with link text to data-attr?
- Add Javascript to WordPress Menu
- Filter wp_nav_menu()
- How to modify navigation menu of the “My Account” page in WooCommerce
- Custom ID for certain menu item?
- Add data-icon input to WordPress custom menu links
- Show just one level of child pages, wp_list_pages woe
- Removing link ” from ” menu for some “links” without JS
- Show current navigation path from menu
- Call custom field into menu item
- Use navigation path from menu for permalink
- Exclude Private, Draft pages from Primary Nav when using custom menu
- add span class inside wp_nav_menu link anchor tag
- wp_nav_menu always falls back to a menu
- wp_get_nav_menu_items how to exclude sub level menu items?
- Multi Level Bootstrap Navigation Menu in WordPress
- How to set limit only on top levels of wp_nav_menu?
- Determine if a navigation item has children
- Bootstrap dropdown nav pills not working with wp_nav_menu()
- Show only 2nd level of navigation depending on active navigation
- How to get a different mobile menu than desktop menu in the twentytwelve child theme
- Add custom attributes to menu items without plugin
- Add Page ID class to nav menu items
- How to apply a class to the second word in menu list item?
- How to highlight the right item in the navbar
- HTML Bootstrap navigation menu to WordPress menu using wp_nav_menu
- How to manually add an item to a submenu in a menu generated by wp_nav_menu?
- WordPress Export Import Site Navigation Menu
- Using Image Links in WordPress Navigation Menus Instead Of Text Links
- Links open only on new tab or window
- Not able to get current menu ID
- Bar separated navigation by extending Walker_Nav_Menu
- Add class to active top level (grandparent) menu item
- Override custom menu widget
- Bar separated navigation by extending Walker_Page
- Disguise Multi-Page site as Single Page
- Replace menu tag with tag
- Styling child custom menu pages
- How to Create a Custom WordPress Navigation Menu with the Code?
- Custom Nav Walker sub-menu HTML construct
- How to get Menu Navigation Labels to output HTML
- custom menu not found
- How to style current page menu item when using a walker
- Adding different classes to anchor in navigation menu
- Number of items in a menu
- wp_nav_menu doesn’t generate parent/ancestor classes
- When at / ( or “home”) my menu doesn’t get a current-menu-item class
- Add Bootstrap dropdown class to a nav menu
- How to add text before WordPress menu item href
- how to automatically generate hierarchical menus from hierarchy of pages?
- Search box as a menu item in the nav menu output by wp_nav_menu?
- Add an extra field to the navigation menu box?
- Why is ‘nav_menu_item_args’ filter’s $item argument empty?
- How do I prevent the text overflow in menu?
- WordPress wp_nav_menu with a nav tag
- How to change Twenty Seventeen theme’s navigation bar location?
- Add class to menu ul with active child
- How can I put two menus in the same div?
- Does the menu item ID ever change?
- Add sidebars to navigation menu?
- Make compatible custom menu widget for Twitter Bootstrap
- Custom Post type menu highlighted in the archive/post
- Hide and show menu subpages
- BuddyPress – How to add logout in nav menu
- Second nav is merged with the first in mobile
- How to add a parameter to links in the nav menu?
- `start_el` depth argument in custom nav walker always evaluates to zero
- Benefits of using Nav Walker?
- WordPress – site with 2 stylesheets and more…
- Add nav menu CSS class to body
- Use walker for specific menu, or avoid use of walker
- Change where navigation bar links?
- How to display dynamic content in start_lvl function
- Programmatically set current-menu-item using wp_nav_menu
- Nav Walker current menu item not displaying
- Vertical Sidebar Menu Parent and Child not displaying correctly [closed]
- Using Shortcodes in WP-Menus in WP 3.1 (via nav_menu_objects)?
- Add custom text to menu