Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter jminton66

    (@jminton66)

    p.s. the slideshow is currently working, because I’ve disabled the above code until I get the issue fixed.

    Thread Starter jminton66

    (@jminton66)

    P.s. I’ll call this one resolved.

    Hi Antonio, I had the same issue and the way I recall getting rid of that menu (it’s called the “secondary menu”) was to comment out the code pertaining to it in the header.php file. I’m not sure how fluent you are in php, html, etc., so I’ll be fairly basic here.

    Warning: you may first want to back up the file you’re about to edit, or create a child theme to do your work in, so you don’t inadvertently mess up anything in the header file (which is a pretty crucial one).

    Go to the Editor under Appearance, and click on the header.php file. Search for the word “secondary” and you should come up with this piece of code:

    <?php if ( $settings['elements']['secondary-menu']['show'] || is_super_admin() ) { ?>
    		<div class="hd-right lzblock" <?php if (!$settings['elements']['secondary-menu']['show']&&is_super_admin()) echo 'style="display:none"'; ?> data-block="secondary-menu">
    		<?php wp_nav_menu( array( 'theme_location' => 'header-menu2',
    'container'       => 'div',
    	'container_class' => 'nav-menu',
    	'container_id'    => 'secondary-menu',
    	'fallback_cb'=>'theme_secondary_menu'
    	) ); ?>
    		</div>
    		<?php } ?>

    All I did was add comment code to either side of it: <!-- at the beginning, and --> at the end, and that removed the menu entirely. So ultimately that line of code should appear as

    <!--<?php if ( $settings['elements']['secondary-menu']['show'] || is_super_admin() ) { ?>
    		<div class="hd-right lzblock" <?php if (!$settings['elements']['secondary-menu']['show']&&is_super_admin()) echo 'style="display:none"'; ?> data-block="secondary-menu">
    		<?php wp_nav_menu( array( 'theme_location' => 'header-menu2',
    'container'       => 'div',
    	'container_class' => 'nav-menu',
    	'container_id'    => 'secondary-menu',
    	'fallback_cb'=>'theme_secondary_menu'
    	) ); ?>
    		</div>
    		<?php } ?>-->

    Let me know how it works for you.

    –JM

    Thread Starter jminton66

    (@jminton66)

    Yeah … I know I shouldn’t be complaining about a free product — theirs was a very good base design, visually, that I was able to adapt to my needs. But coding-wise, the implementation is a mess. I ended up having to comment out large sections of it and replace it with my own code, to just to get it to mimic some of the functionality this theme claims to offer. I can only imagine WP novices attempting to use this theme will encounter many hours of frustration, and help requests to fora like this one.

    Oh well, I’ve learned a few things in the process.

    Thread Starter jminton66

    (@jminton66)

    Further research has led me to understand that the absence of a doctype declaration at the beginning of my header.php was what’s been triggering quirks mode. Adding one has fixed the problem.

    The question for me now is, why would the Frau theme developers have omitted this important bit of code? I did substantial modifications to their theme, but (without denying the possibility) I seriously doubt I did anything to remove it myself.

    Whatever the case, thanks — seriously frustrating problem solved.

    –JM

    Thread Starter jminton66

    (@jminton66)

    I’m gonna have to thank you profusely for this answer. I did indeed have my IE browser set to “quirks” mode, though I honestly know nothing about it, and when I changed over everything came up correctly. I was disconcerted, though, to see the same bizarre display variations when checking the site in netrenderer.com, as well as on a lab computer yesterday — all the same issues were present.

    Am I to assume all those computers / renderers were set to quirks mode and thus rendering incorrectly? And what does that mean for the average IE user? Without messing with their settings, are they seeing the site as I intended, or is quirks mode something that comes up by default?

    FYI, I’m a mac user, so IE testing involves either pulling out an old macbook running vmware, or using netrenderer. Not very familiar with how IE is set up for most people.

    Thanks again, Andrew.

    -JM

Viewing 6 replies - 1 through 6 (of 6 total)