The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

[resolved] please help me with my site (20 posts)

  1. WalterBreda
    Posted 3 years ago #

    Hello guys,

    I've been looking on the internet for 3 days now to fix my site problem. Hopefully anyone of you can and will help me with this.

    It's about viewing a normal layout (with working drop down menu etc) in internet explorer. I use the twenty eleven theme, which looks fine in chrome but absoluely worse in internet explorer 9.

    The site is: http://www.urbans.nl

    Does any of you have a solution for this problem? That would be great:)

  2. WalterBreda
    Posted 3 years ago #

    no one who knows anything about this? I've tried almost everything, but not a single improvement...

  3. Bea Cabrera
    Posted 3 years ago #

    I'm sorry but as I can't reproduce the error, I can't help. Perhaps a screenshot from IE could help...

    Good luck.

  4. keesiemeijer
    Posted 3 years ago #

    Did you edit the theme template files?
    You have some validation errors.

    You have some code before the The <!DOCTYPE> declaration. And the <!DOCTYPE> must be the very first thing in a HTML document.

    - deactivating all plugins to see if this resolves the problem? If this works, re-activate the plugins one by one until you find the problematic plugin(s).

  5. WalterBreda
    Posted 3 years ago #

    Hi Bea Cabrera, thanx for the reply.
    Here is a screenshot from IE9, perhaps that will help.


  6. WalterBreda
    Posted 3 years ago #

    Hi Keessiemeijer,

    Thanx for the help. I've made a child theme from twenty eleven, but I guess that is the right way to handle. I've deactivated all plugins but the problem still exists. Any other suggestions?

    Where can I find <!DOCTYPE>? In which file? style.css?

  7. keesiemeijer
    Posted 3 years ago #

    Where can I find <!DOCTYPE>? In which file? style.css?

    I can see it in the source code but do not now from which file it comes. http://www.wikihow.com/View-Source-Code


    Did you edit the header.php file in your child theme?
    If so, Can you paste and submit the code into a pastebin.com and post the link to it here? see the Forum Rules for posting code and using the pastebin.

  8. Bea Cabrera
    Posted 3 years ago #

    it is in the header.php. As keeslemeijer tells you, check that out.

  9. WalterBreda
    Posted 3 years ago #

    Thanx, your help is much apreciated.
    The extra code from your image is in my index file to fill in the meta tags etc and the analytics code.
    I did not edit the header in the child theme, only some pictures, but I did edit the index.php. Is that a problem?
    Do I need to copy the index.php code somewhere?

  10. keesiemeijer
    Posted 3 years ago #

    You can paste it (index.php) here if it's not that large.

  11. WalterBreda
    Posted 3 years ago #

    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    		<title>urbans.nl - herontwikkeling & bouwmanagement</title>
    		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    		<meta name="description" content="urbans.nl realiseert unieke woonwensen voor haar opdrachtgevers, enerzijds door bestaand vastgoed opnieuw te ontwikkelen (herontwikkeling) anderzijds door de bouwplannen te begeleiden (bouwmanagement)">
    		<meta name="keywords" content="advies, adviesbureau, Breda, breda, bouwmanagement, bouwmanagement, herontwikkeling, onderhoud, vastgoedadvies, CPO, collectief particulier opdrachtgeverschap,
    		bouw, projectontwikkeling, projectontwikkelaar, Walter, Loomans, woningbouwcorporatie, gemeente, woningbouwcorporaties, gemeenten, droomwonen, droomwonen Breda
    		<meta name="robots" content="index, follow">
    		<meta name="revisit-after" content="30 days">
    		<meta name="author" content="Walter Loomans">
    		<title>urbans.nl - adviesbureau voor herontwikkeling en bouwmanagement</title>
    		<!-- herontwikkeling, bouwmanagement -->
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-28921296-1']);
     (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
     * Front to the WordPress application. This file doesn't do anything, but loads
     * wp-blog-header.php which does and tells WordPress to load the theme.
     * @package WordPress
     * Tells WordPress to load the WordPress theme and output it.
     * @var bool
    define('WP_USE_THEMES', true);
    /** Loads the WordPress Environment and Template */

    This is my index.php code, hopefully that contains some errors.

    This is my index.php this is linked to

  12. keesiemeijer
    Posted 3 years ago #

    This is not your theme's index.php. this is the index file in the root of of a WordPress install. You shouldn't add code to core files. try removing your code and re-upload it to the root of your site.

    Your theme's index.php lives in /wp-content/themes/twentyeleven

    If you want to add stuff to the html <head> tag you do it in your theme's header.php. Copy it over to your child theme and make the changes.

    Did you edit this as well:

  13. WalterBreda
    Posted 3 years ago #

    Thanx, I understand, but I havent edited that index.
    Here is the code from that index:

     * The main template file.
     * This is the most generic template file in a WordPress theme
     * and one of the two required files for a theme (the other being style.css).
     * It is used to display a page when nothing more specific matches a query.
     * E.g., it puts together the home page when no home.php file exists.
     * Learn more: http://codex.wordpress.org/Template_Hierarchy
     * @package WordPress
     * @subpackage Twenty_Eleven
    get_header(); ?>
    		<div id="primary">
    			<div id="content" role="main">
    			<?php if ( have_posts() ) : ?>
    				<?php twentyeleven_content_nav( 'nav-above' ); ?>
    				<?php /* Start the Loop */ ?>
    				<?php while ( have_posts() ) : the_post(); ?>
    					<?php get_template_part( 'content', get_post_format() ); ?>
    				<?php endwhile; ?>
    				<?php twentyeleven_content_nav( 'nav-below' ); ?>
    			<?php else : ?>
    				<article id="post-0" class="post no-results not-found">
    					<header class="entry-header">
    						<h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1>
    					</header><!-- .entry-header -->
    					<div class="entry-content">
    						<p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven' ); ?></p>
    						<?php get_search_form(); ?>
    					</div><!-- .entry-content -->
    				</article><!-- #post-0 -->
    			<?php endif; ?>
    			</div><!-- #content -->
    		</div><!-- #primary -->
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    [Moderator Note: Please post code or markup snippets between backticks or use the code button. Or better still - use the pastebin. As it stands, your posted code may now have been permanently damaged/corrupted by the forum's parser.]

  14. WalterBreda
    Posted 3 years ago #

    I can remove the edited code from the index in the root, does that make a differece do you think?

  15. WalterBreda
    Posted 3 years ago #

    This sollution helps, I've removed the extra code in the header and now it looks like normal in IE9, thats great. But can I add the metatags to the header.php?

  16. keesiemeijer
    Posted 3 years ago #

    does that make a differece do you think?

    Yes, never edit core WordPress files.

    Remove the code and see if that makes any difference.

    After that you can add the code to your theme's header.php

    or better yet, use plugins for google analytics and your keywords and descriptions.

  17. WalterBreda
    Posted 3 years ago #

    I've tried but then the same errors occur. Any solutions to this? Where can I place metatags and the analytics script?
    Thanx for the former help keesiemeijer!!

  18. WalterBreda
    Posted 3 years ago #

    Thank you keesiemeijer, I will try it with plugins:)
    You have been very helpfull!!

  19. keesiemeijer
    Posted 3 years ago #

    You're welcome.

    One more thing. Did you edit this in your root index.php file:


    to this:


    Next time you update WordPress this file will be overwritten and cause trouble.

  20. WalterBreda
    Posted 3 years ago #

    Thank you! It is true I changed that to link to the right directory:)
    The nanalytics thing is done, but the metatags seems to be more difficult. i will have a look at it tonight..
    For now thanx!

Topic Closed

This topic has been closed to new replies.

About this Topic