Title: squidstack's Replies | WordPress.org

---

# squidstack

  [  ](https://wordpress.org/support/users/squidstack/)

 *   [Profile](https://wordpress.org/support/users/squidstack/)
 *   [Topics Started](https://wordpress.org/support/users/squidstack/topics/)
 *   [Replies Created](https://wordpress.org/support/users/squidstack/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/squidstack/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/squidstack/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/squidstack/engagements/)
 *   [Favorites](https://wordpress.org/support/users/squidstack/favorites/)

 Search replies:

## Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)

 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Activello] Error Loading Resource](https://wordpress.org/support/topic/error-loading-resource/)
 *  Thread Starter [squidstack](https://wordpress.org/support/users/squidstack/)
 * (@squidstack)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/error-loading-resource/#post-7631016)
 * The source map has an error in safari. Is this a known bootstrap css preprocessor
   error?
 * Think bootstrap 4 will fix it?
 * I removed the line:
    `/*# sourceMappingURL=bootstrap.css.map */`
 * from the min and regular css file to get the error to stop.
 * Are the css warnings that safari encounters because of safari’s lack of support
   for certain css methods? such as this one:
 * `*vertical-align: middle; /* Improves appearance and consistency in all browsers*/`
 * The wild card within the brackets is invalid for CSS in safari. This css issue
   is probably another thread but just something I was thinking about.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Activello] Error Loading Resource](https://wordpress.org/support/topic/error-loading-resource/)
 *  Thread Starter [squidstack](https://wordpress.org/support/users/squidstack/)
 * (@squidstack)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/error-loading-resource/#post-7630964)
 * Vinod –
 * The theme is ‘working’ perfectly, that is not the issue. The issue is with the
   error in the console log. See this photo:
 * > [View post on imgur.com](https://imgur.com/fHkgLAw)
 * The warning are also from the theme but aren’t an issue.
 * site:
    squidstack.com
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Output primary nav with wp_nav_menu()](https://wordpress.org/support/topic/output-primary-nav-with-wp_nav_menu/)
 *  Thread Starter [squidstack](https://wordpress.org/support/users/squidstack/)
 * (@squidstack)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/output-primary-nav-with-wp_nav_menu/#post-7619528)
 * After some more testing I found that even though I would get all the locations
   with the previous code I could get duplicates if the menus were used in more 
   than one location. This solved that:
 *     ```
       function menuFindOutput(){
           $menuItemLocations = get_nav_menu_locations();
           $dchecked = array();
           $valCheck = array();
           foreach($menuItemLocations as $key => $value) {
                $valCheck[] = $value;
       		foreach($valCheck as $curVal) {
       			if (in_array($curVal, $dchecked)) {
       			}
       			else {
       				$dchecked[] = $curVal;
       				wp_nav_menu(array('theme_location' => $key));
       			}
       		}
       	}
       }
       ```
   
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Output primary nav with wp_nav_menu()](https://wordpress.org/support/topic/output-primary-nav-with-wp_nav_menu/)
 *  Thread Starter [squidstack](https://wordpress.org/support/users/squidstack/)
 * (@squidstack)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/output-primary-nav-with-wp_nav_menu/#post-7619450)
 * that’s great info, still learning wordpress’ inner workings.
 * I can get all the locations and their menus output with this:
 *     ```
       $menuItemLocations = get_nav_menu_locations();
       foreach ($menuItemLocations as $key => $value){
           wp_nav_menu(array('theme_location' => $key));
       };
       ```
   
 * thanks bcworkz!
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Output primary nav with wp_nav_menu()](https://wordpress.org/support/topic/output-primary-nav-with-wp_nav_menu/)
 *  Thread Starter [squidstack](https://wordpress.org/support/users/squidstack/)
 * (@squidstack)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/output-primary-nav-with-wp_nav_menu/#post-7619369)
 * I think this solved it, it has in a few of my testing sites. Does this look like
   a universal way to alway display the primary menu:
 * `echo wp_nav_menu(array('theme_location' => 'primary'))`

Viewing 5 replies - 1 through 5 (of 5 total)