ThemeShaper Forums » Thematic

[closed]

Menu in main

(12 posts)
  • Started 1 year ago by boerenooi
  • Latest reply from helgatheviking
  • This topic is not resolved
  1. boerenooi
    Member

    Hi

    I require that my menu sit inside my main container. How can I achieve this?

    Thanks
    B
    xxx

    Posted 1 year ago #
  2. boerenooi
    Member

    I also need to add content NEXT to my header image, like a widget. One widget.

    Posted 1 year ago #
  3. boerenooi
    Member

    Hi helgatheviking, thanks. I sorted out my new widget, but can't seem to find the answer in your thread for the menu. I need the menu to look at be at the same place like this website, http://bit.ly/JhkEWl

    Hope this makes sense.

    This is my current site http://bit.ly/JhkJtd and not having much luck with the menu. :/

    Also, I see, al the changes that I'm making is not compatible with IE8 and under.

    Posted 1 year ago #
  4. boerenooi
    Member

    Is there an easy way with thematic to create a separate IE style sheet?

    Posted 1 year ago #
  5. bogh
    Member

    1. Create a new stylesheet called ie_styles.css in your child theme's folder.
    2. Add the following code in style.css:

    /* Apply IE Styles */
    @import url('ie_styles.css');

    OR if you want the "ie_styles.css" to be loaded just when in IE you can add the following code into functions.php :

    global $is_IE;
    if($is_IE){
    wp_enqueue_style( 'ie_styles', get_stylesheet_directory_uri() . '/ie_styles.css', false, 1.1, 'screen' );
    }

    I hope is easy enough :)

    Posted 1 year ago #
  6. bogh
    Member

    To place the menu where you want I think you can place the widget "Custom Menu" in "Page Top", "Single Top", "Index Top".

    OR Add this into your functions.php

    // Remove the standard Thematic menu
    function remove_menu() {
    	remove_action('thematic_header','thematic_access',9);
    }
    add_action('init', 'remove_menu');
    
    // Add the new menu
    add_action('thematic_abovecontent','thematic_access',1);

    This was written already here: http://forums.themeshaper.com/topic/thematic-menus-demystified-1
    You should google better next time ;)

    Posted 1 year ago #
  7. please don't mix thread topics... makes it harder for future people to find stuff.

    and as bogh and i both mentioned... how to move a menu is already covered in the thread we have BOTH now linked to. please read it. if you are having troubles for some reason, then tell us specifically what you've tried, and what you are experiencing versus what you are expecting. basically prove you are trying to work it out and don't just want us to do it for free.

    @bogh - you should enqueue stylesheets by adding a function to the wp_enqueue_scripts hook. that's current theme review policy so it is best practice. for IE though, i'd probably implement the html5 boilerplate conditional classes (http://forums.themeshaper.com/topic/html5-boilerplate-header-with-thematic) then you can target IE like so:

    .ie8 body {background: pink;}
    Posted 1 year ago #
  8. bogh
    Member

    You are right about wp_enqueue_scripts hook, I've forgot to add it, even if I use it.

    For @boerenooi :

    function my_scripts() {
    global $is_IE;
    if($is_IE){
    wp_enqueue_style( 'ie_styles', get_stylesheet_directory_uri() . '/ie_styles.css', false, 1.1, 'screen' );
    }
    }
    add_action('wp_enqueue_scripts', 'my_scripts');

    I prefer html5 boilerplate conditional classes too, but in some cases a different stylesheet might be needed, when we are talking about "many IE fixes" = "many KBs", I would not want that IE code to be loaded in other browsers except IE.
    But if you want to make just few IE fixes don't bother to add a new stylesheet.

    Posted 1 year ago #
  9. personally i think something must be wrong if you have so many IE fixes that you'd consider a separate stylesheet. but then, i am a devotee of leaving IE behind... which is the nicer way of saying what i'd rather say. (which closely resembles "$*@# you IE!" )

    http://jonikorpi.com/leaving-old-IE-behind/

    Posted 1 year ago #
  10. bogh
    Member

    You might be right about that something must be wrong if you have too many IE fixes.
    I have done a theme that in my opinion is kind of overcomplicated, and I don't see anything to fix in IE8, and in IE7 the fixes are not too many, but for now I am not sure if I am going to support IE7, I think I will follow your suggestion and I will leave it behind.

    Posted 1 year ago #
  11. i never expect ie7 it be nice, passable is more than good enough. i am going to be starting to fully implement the above idea of serving ie8 and lower a single column/mobile style site. upgrade already!

    Posted 1 year ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.