Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter squidstack

    (@squidstack)

    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.

    Thread Starter squidstack

    (@squidstack)

    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

    The warning are also from the theme but aren’t an issue.

    site:
    squidstack.com

    Thread Starter squidstack

    (@squidstack)

    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));
    			}
    		}
    	}
    }

    Thread Starter squidstack

    (@squidstack)

    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!

    Thread Starter squidstack

    (@squidstack)

    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)