Forum Replies Created

Viewing 3 replies - 16 through 18 (of 18 total)
  • Thread Starter Mrmark

    (@mrmark)

    Thanks – that worked like a charm, and the reply was so speedy. That’s a very straightforward fix that I will learn more about when I get my first PHP book tomorrow.
    I was working off a post of yours from mid-2010 to assign different headers to pages, but I couldn’t make it work as hard as I tried. Thanks so much.

    Oops – an errant bracket where a closing comment (*/) should have been evidently fouled up the call. Watch those Ps and Qs! Now I’m back with properly styled single event and events list pages.

    I had the same problem.
    First I created the ‘events’ folder (to override the template files – see author documentation).
    Then in the three php files in there I added: <?php get_sidebar(); ?>
    putting it between the closing of the content div and the closing php tag (bear with my terminology…I’m a novice):

    </div><!– tec-content –>
    <?php get_sidebar(); ?>
    <?php

    BUt that squeezed the sidebar down because the content width is set to 670px (the author assigns a class “tec-event widecolumn” in the php – ‘wide’ intentionally for whatever reason.

    So I changed the width from percentage to 570 px and importantly changed position from relative to absolute (and some other tweaks):

    #tec-content {font-size: 1.0em;} /*from 1.2*/
    .tec-event .post {
    position:absolute; /*was relative – absolute brings sidebar up*/
    width: 570px;
    padding: 0 40px;
    }
    I made similar changes to the top of the style sheet for the events-category list to properly format the page too (this is all in the twenty eleven theme, btw – your mileage may vary).

    HERE”S THE STUMPER:
    Somewhere along the way my events list single.php file (in the events folder in my theme) stopped calling the style sheet, thus defaulting the single event page to the theme’s style.css… and skipping the format changes I made in my events folder to the single.php.

    Now, the theme AND the plugin both use single.php files, FWIW, But I can’t figure out why the style sheet is not getting called when it was getting called just fine before I moved on to format the other events list php files.

    Any ideas?
    http://betterbike.org/

Viewing 3 replies - 16 through 18 (of 18 total)