Wordpress Coding Problem Please HELP!!!

Discussion in 'WordPress' started by thehotbusinesses@hotmail., Jun 11, 2012.

  1. #1
    Hey everyone,

    I have a blog that is on the Presswork theme. I am having trouble with the format in IE. Only in IE does the sidebar on the right side of my site only show up at the bottum of my blog. This is a known problem for this theme, and a fix has been discovered, but I am not good with code. I dont understand what these people are tlaking about. Can someone take a look here... http://support.presswork.me/discussion/675/sidebar-in-ie-cant-figure-it-out.#Item_2 and see if they can answer my question? It would be greaaaatly appreciated. Thank you very much!!! +rep for anyone who tries to help!
     
  2. bfairo

    bfairo Well-Known Member

    Messages:
    121
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #2
    I don't know anything about this theme but judging by what they say on the forum it looks like this: Place this line: $pw_site = $pw_site+3;
    Directly above this line: if(!function_exists('pw_header_css')):
    If that don't work try using : $pw_site = $pw_site+5;

    Hope you get it figured out!
     
    bfairo, Jun 11, 2012 IP
  3. thehotbusinesses@hotmail.

    thehotbusinesses@hotmail. Active Member

    Messages:
    428
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #3
    Here is my code where do I put $pw_site = $pw_site+3; ? Wherever I put it, it doesnt change or makes the site not run...

    <?php
    /**
    * 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;
    ?>
    <!-- PressWork Theme Option CSS -->
    <style type="text/css"<?php if(pw_theme_option('toolbox')=="on" && current_user_can( "edit_theme_options" )) echo ' id="pw_style_preview"'; ?>>
    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"); ?>

    </style>
    <!-- eof PressWork Theme Option CSS -->
    <?php
    }
    endif;
     
    Last edited: Jun 11, 2012
  4. locke815

    locke815 Peon

    Messages:
    480
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I think it'll be great if you post this at the Wordpress.org forums. Plenty of wordpress community over there that will be able to assist you.
     
    locke815, Jun 11, 2012 IP
  5. Blue Star Ent.

    Blue Star Ent. Well-Known Member

    Messages:
    1,989
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    160
    #5
    Be careful with horizontal padding. They are rendered differently for browsers.
     
    Blue Star Ent., Jun 12, 2012 IP
  6. thehotbusinesses@hotmail.

    thehotbusinesses@hotmail. Active Member

    Messages:
    428
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #6
    The people who made this theme must not like IE!