squidstack
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Activello] Error Loading ResourceThe 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
In reply to: [Activello] Error Loading ResourceVinod –
The theme is ‘working’ perfectly, that is not the issue. The issue is with the error in the console log. See this photo:
The warning are also from the theme but aren’t an issue.
site:
squidstack.comForum: Hacks
In reply to: Output primary nav with wp_nav_menu()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
In reply to: Output primary nav with wp_nav_menu()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
In reply to: Output primary nav with wp_nav_menu()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'))