Welcome to PressWork!

Want to ask a question or join the discussion? Great! Join now.

In this Discussion

Sidebar in Internet Explorer
  • I checked the other posts on this topic, but none of the resolutions worked for me. In IE, the sidebar is appearing at the bottom of the page if my content margin is larger than 0. I am not having a problem in FireFox or Chrome.

    PressWork 1.0.4.2
    WordPress 3.3.2
    IE 8

    Here is what I have tried:
    I deactivated all of my plug-ins.
    I tested changing the sizes of the primary content and the sidebars.
    I added this to the CSS .lt-ie8 #firstsidebar { width: 200px; }

    Thanks!
  • It is most likely due to the box-sizing setting so things get pushed out in IE.
    image Senior Developer & Co-Founder of PressWork
  • Thanks, cbavota. How would I fix that?
  • I don't have any dev tools for IE since I never use it. And we really don't promote PW as being 100% IE friendly since IE does not conform to any current web standards and even IE7 is better in some respects compared to IE8.
    image Senior Developer & Co-Founder of PressWork
  • OK, I understand, but we have too many web visitors using IE to abandon it. I'll just use another template. Thanks-
  • edit file

    wp-content/themes/presswork/admin/inc/stylesheet.php set

    insert after the

    if(pw_theme_option('content_width')) {
    bla-bla-bla
    ...
    bla-bla-bla
    }

    line

    $pw_site = $pw_site+3;


    an all will be ok

    may be better is

    $pw_site = $pw_site+5;




  • I tried it, but it doesn't seem to be working for me. I inserted the new line immediately after the else statement. Is that right?
  • sergsencsergsenc
    This answer was Accepted.
    there is a casual construction
    if(pw_theme_option('content_width')) {
    bla-bla-bla
    ...
    bla-bla-bla
    } else {
    bla-bla-bla
    ...
    }

    INSERT HERE

    then next line

    if(!function_exists('pw_header_css')):
  • It worked! Thank you!
  • So here is my code... I cant figure out where/what you mean to change... or it isnt working. Please let me know what I should have in there. Thank you!

    <?php<br />/**
    * This is where the CSS is set up based on the theme options
    *
    * @since PressWork 1.0
    */
    if(pw_theme_option('content_width')) {
    $pw_content_width = pw_theme_option('content_width');
    $pw_first_sidebar = pw_theme_option('first_sidebar_width');
    $pw_second_sidebar = pw_theme_option('second_sidebar_width');
    $pw_body_margins = pw_theme_option('body_margins');
    $pw_margins = pw_theme_option('content_margins');

    $loc2 = strpos(pw_theme_option('layout_option'), "secondsidebar");
    $loc = strpos(pw_theme_option('layout_option'), "firstsidebar");
    $pw_site = $pw_content_width;
    if($pw_first_sidebar>0 && $loc !== false) {
    $pw_site = $pw_site + $pw_first_sidebar + $pw_margins;
    }
    if($pw_second_sidebar>0 && $loc2 !== false) {
    $pw_site = $pw_site + $pw_second_sidebar + $pw_margins;
    }
    } else {
    $pw_content_width = 600;
    $pw_first_sidebar = 300;
    $pw_content = 900;
    $pw_margins = 30;
    $pw_site = $pw_content_width + $pw_first_sidebar + $pw_margins;
    }
    if(!function_exists('pw_header_css')):
    function pw_header_css() {
    global $pw_content_width, $pw_first_sidebar, $pw_second_sidebar, $pw_body_margins, $pw_margins, $pw_site;
    $fullsite = $pw_site;
    $mainlineheight = round(pw_theme_option('main_size')*1.4);
    $right_col_padding = get_option('thumbnail_size_w') + 15;
    ?>

    >
    body { font-family: <?php echo pw_theme_option("body_font"); ?>; font-size: <?php echo pw_theme_option("body_font_size"); ?>px; }
    h1, h2, h3, h4, h5, h6, h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { font-family: <?php echo pw_theme_option("headers_font"); ?>; }
    #body-wrapper { color: <?php echo pw_theme_option('main_text_color'); ?>; width: <?php echo $pw_site; ?>px; padding: <?php echo $pw_body_margins; ?>px; background-color: <?php echo pw_theme_option('page_background_color'); ?>; }
    #headerbanner, #footer { width: <?php echo $pw_site; ?>px; }
    #headerbanner li.mainl#header_image { background-size: <?php echo $pw_site; ?>px; }
    #main-wrapper > li { margin: 0 <?php echo $pw_margins/2; ?>px; }
    #main-wrapper .el3 { *margin-left: <?php echo $pw_margins; ?>px; }
    #firstsidebar { width: <?php echo $pw_first_sidebar; ?>px; }
    #secondsidebar { width: <?php echo $pw_second_sidebar; ?>px; }
    #maincontent { width: <?php echo $pw_content_width; ?>px; }
    body.fullwidth #maincontent { width: <?php echo $fullsite; ?>px; }
    .siteheader a { color: <?php echo pw_theme_option('siteheader_color'); ?>; }
    .siteheader a:hover { color: <?php echo pw_theme_option('siteheader_color_hover'); ?>; }
    #description { color: <?php echo pw_theme_option('description_color'); ?>; }
    a { color: <?php echo pw_theme_option('a_color'); ?>; }
    a:hover { color: <?php echo pw_theme_option('a_color_hover'); ?>; }
    #nav nav ul { background: <?php echo pw_theme_option('nav_background_color'); ?>; }
    #nav nav a { color: <?php echo pw_theme_option('nav_color'); ?> }
    #nav nav a:hover, #nav nav .sub-menu li, #nav nav li:hover { color: <?php echo pw_theme_option('nav_color_hover'); ?>; background: <?php echo pw_theme_option('nav_background_color_hover') ; ?>; }
    #subnav nav ul { background: <?php echo pw_theme_option('subnav_background_color'); ?>; }
    #subnav nav a { color: <?php echo pw_theme_option('subnav_color'); ?> }
    #subnav nav a:hover, #subnav nav .sub-menu li, #subnav nav li:hover { color: <?php echo pw_theme_option('subnav_color_hover'); ?>; background: <?php echo pw_theme_option('subnav_background_color_hover') ; ?>; }
    #footer nav ul { background: <?php echo pw_theme_option('footernav_background_color'); ?>; }
    #footer nav a { color: <?php echo pw_theme_option('footernav_color'); ?> }
    #footer nav a:hover, #footer nav .sub-menu li, #footer nav li:hover { color: <?php echo pw_theme_option('footernav_color_hover'); ?>; background: <?php echo pw_theme_option('footernav_background_color_hover') ; ?>; }
    h1.catheader { color: <?php echo pw_theme_option('category_header_color'); ?>; }
    article .meta { color: <?php echo pw_theme_option('post_meta_color'); ?>; }
    article .posttitle, article .posttitle a { color: <?php echo pw_theme_option('post_title_color'); ?>; }
    article .posttitle a:hover { color: <?php echo pw_theme_option('post_title_color_hover'); ?>; }
    article .content-col { padding-left: <?php echo $right_col_padding; ?>px; }
    <?php do_action("pw_media_queries"); ?>



    <?php<br /> }
    endif;