Functions.php not running properly in IE
-
My site is https://thedebutanteball.com
Okay, so I have the common problem where my nav menu (which has images and text below) shows up just fine in all other browsers except IE. I tested it on IE10.
I have narrowed down the problem to my Functions php file. I have a function written there that allows me to add text below the images in my nav bar. This is the code I have in my function.php:
<?php function md_nmi_custom_content( $content, $item_id, $original_content ) { $content = $content . '<br /><span class="page-title">' . $original_content . '</span>'; return $content; } add_filter( 'nmi_menu_item_content', 'md_nmi_custom_content', 10, 3 );
I have checked my site at http://validator.w3.org/ and everything is coming out A-OK without any errors. So why is the nav bar showing up all misaligned in IE?
My theme is a child theme based on Pachyderm. The images in the nav bar were put there with a plug-in called Nav Menu Images, which works just fine in IE as long as I don’t have the function.php code above in there. But if I take out that code, then I can’t put any text below the images. I am pulling my hair out over this.
- The topic ‘Functions.php not running properly in IE’ is closed to new replies.