Results 1 to 2 of 2

Thread: Odd symbol in popup menu

  1. #1
    Join Date
    Nov 2010
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Odd symbol in popup menu

    I have popup menus on my site.

    On html pages, they show up correctly.

    However, on php pages there is a small box (IE) or a diamond with a ? in it (FF) to the left of each menu item.

    Examples:
    Correct: www.davidfranklin.net/about.html
    Incorrect:www.davidfranklin.net/davids-blog

    Thanks!

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    This has little to do with PHP other than the fact that something being done with PHP is bringing in content with a contradictory meta tag. This is probably an include() or an include like function.

    This block of code (highlighted and truncated) from the PHP page (seen by using the browser's 'view source' while viewing the page):

    Code:
    <div class="header" style="background-image: url(../../../../images/header_resources.jpg); background-repeat:none;"><a href="../../../../index.php"></a></div>
    <div class="content-blog">
    
    <div class="maintext">
    	<div class="maintext-content" align="justify">
    		<div class="maintext-title"><a href="http://davidfranklin.net/davids-blog">David's Blog</a></div>
    			<!DOCTYPE html>
    <html dir="ltr" lang="en-US">
    <head>
    <meta charset="UTF-8" />
    <title></title>
    <link rel="profile" href="http://gmpg.org/xfn/11" />
    <link rel="stylesheet" type="text/css" media="all" href="http://davidfranklin.net/davids-blog/wp-content/themes/twentyten/style.css" />
    <link rel="pingback" href="http://davidfranklin.net/davids-blog/xmlrpc.php" />
    <link rel="alternate" type="applica . . .
    
     . . . 						title="Semantic Personal Publishing Platform" rel="generator">
    					Proudly powered by WordPress.				</a>
    			</div><!-- #site-generator -->
    
    		</div><!-- #colophon -->
    	</div><!-- #footer -->
    
    </div><!-- #wrapper -->
    
    </body>
    </html>
    
    	</div>
    		
    		
    		<div class="sidebar-content">
    		<div class="sidebar-title"><a href="http://www.davidfranklin.net/davids-blog">Resources</a></div>
    			<div class="sidebar-link" style="padding-bottom:15px; border-bottom:1px solid gray;">
    				David's Blog<br />
    is probably an include of some sort and has the (red) meta tag that changes the character encoding. That's probably the problem.

    Fortunately this block of code is probably a separate file that you can edit. Ideally you would get rid of:

    Code:
    <!DOCTYPE html>
    <html dir="ltr" lang="en-US">
    <head>
    <meta charset="UTF-8" />
    <title></title>
    and:

    Code:
    </body>
    </html>
    from that file. But just getting rid of:

    Code:
    <meta charset="UTF-8" />
    should fix this problem.

    It's possible that the page that has that tag on it is also including other content or getting it from a database, so finding it might be a little tricky.

    Good luck!
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •