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]
- Add data-icon input to WordPress custom menu links
- Show current navigation path from menu
- How to highlight the right item in the navbar
- HTML Bootstrap navigation menu to WordPress menu using wp_nav_menu
- Styling child custom menu pages
- Number of items in a menu
- Add an extra field to the navigation menu box?
- How do I prevent the text overflow in menu?
- Does the menu item ID ever change?
- Hide and show menu subpages
- BuddyPress – How to add logout in nav menu
- How to add a parameter to links in the nav menu?
- Nav Walker current menu item not displaying
- Page-Linking Structure
- Navigation (wp_nav_menu) refuses to nest within parent element
- Add custom menu item metabox in Navigation Settings
- Altering html structure and creating custom menus
- wp_nav_menu including Skype URL
- How to add class to and childs of sidebar widget – WordPress
- Highlight another nav item
- How to have two menus using Bootstrap nav walker?
- Hide Hamburger Menu On Specific Page (Front Page/Home Page)
- CSS for Created Menu “Active Selected” not working, everything else is!
- How do I add (css) class to a custom link to make it current_page_item
- Making a navigation header menu with bulma, need some advice
- Programmatically add existing pages and subpages to Appearance Menu
- walker – 0 level on submenu formatting
- Determine the last child of the parent menu WP Nav Walker
- Navigation doesn’t render when wp is hosted
- Remove nav menu item by script
- Make a navigation menu in the same post [duplicate]
- Does is_child() exist in wp 3.5.1?
- Get menus created with menu editor?
- Add span in top menu item with nested itens
- How to I know the class or ID of my theme?
- Highlight parent if item from submenu is active
- Missunderstanding of WordPress menus
- How to add schema.org SiteNavigationElement and property URL to navbar?
- Theme Location empty
- set certain item in nav walker to active when on archive pages or singles
- wp_nav_menu() | Outputting my own custom code using built in features
- Menu Custom Data Attributes
- The cart, checkout, and shop links not getting removed
- Make two bootstrap menus collapse into one dropdown
- Switch an entire nav menu if user is logged in
- How to modify mobile nav menu text in theme
- WordPress functions.php does not affect the theme menus
- Display Menu Navigation Label
- Menu is not displaying on the site navigation [closed]
- Drop Down menu expanded by default (on front page) [closed]
- Wp Nav Menu div containers
- Updated WordPress, now Navigation is Messed Up
- How do I add 3rd level of dropdowns to wp_nav_menu array?
- Possible to append class to nav menu added to widget area?
- Making the menu toggled open on mobile devices Illustratr theme
- need help in wordpress navbar setup
- Navbar is hidden behind carousel when using wp-boostrap-navwalker
- Active Current Menu – Adding class to child theme
- display cart information within li of cart menu item
- Add data-track to links in menu
- Is it possible to seperate wordpress menu by different div?
- How to add odd and even classes to all nav links through walker?
- Output sort number in wp menu list item?
- Add newsletter signup element to navigation bar
- Check in walker if current page is descendant
- Active menu item / category
- Customize Walker_nav_menu to show posts if item is category
- Menu not always using correct link
- Help with changing style of the extended menu drop down [closed]
- Where these arguments are defined?
- How do i keep my current page menu highlighted on pagination?
- Second tier sidebar navigation
- Add custom ID to wp_nav_menu list items
- Show All Children of WordPress Menu
- How to make an anchored page in a navigation menu tab
- Why is my hamburger menu not shown? [closed]
- Formatting WordPress Menus (without bullets, inline with text)
- How can I structure my pseudo footer nav code with wordpress codex code?
- Two Homes In Navigation Menu
- Adding padding above menu
- How to set menu Display location
- Twenty-Twenty-Two Child Theme Mega Menu