Sidebar on Single-Event Page

This topic contains 6 replies, has 3 voices, and was last updated by  full-mann 11 years, 11 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #2761

    Hai,
    i wrote this question in your old forum but did not get an answer or i did not find it.
    So maybe in the new one 😉

    Is it possible to insert the sidebar to the single-event.php?
    When i insert this:

    The sidebar is a little bit deeper as on all other sites.

    I use WordPress 3.5 and Event Organiser 1.6.1.
    Thanks a lot.

    full-mann
    #2763

    Hm… he did not take the code-part to my post.
    If i insert this: the sidebar is deeper.

    full-mann
    #2813

    Not sure what you mean by ‘is deeper’. Could you link to an example? It’s probably a simple CSS/mark-up issue and can be resolved by editing the default templates.

    Also the forums have now been updated so HTML should no longer be stripped (when contained within backtics or by leaving a blank line and indenting by 4 spaces.

    Stephen Harris
    #2870

    Hai,
    this is the link: http://wp10934199.wp291.webpack.hosteurope.de/termine/termine/test-2/
    the sidebar is shown, but under the text.

    do you know what i mean?

    thanks a lot.

    full-mann
    #2874

    @full-mann

    at the bottom of your single template file does it looks like this..

    <!-- Call template sidebar and footer -->
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    Have you changed any of the css in your theme? Is that the twenty twelve theme?

    Michael
    #2876

    Hi full-mann,

    The problem is your theme’s style.css file. Currently for home page (where you have a correctly displayed sidebar) you have:

    #primary {
    float: left;
    margin: 0 -26.4% 0 0;
    width: 100%;
    }
    #content {
    margin: 0 34% 0 7.6%;
    width: 58.4%;
    }
    

    But on the event page, the following rules are over-riding it:

    .singular #primary {
    margin: 0;
    }
    .singular #content, .left-sidebar.singular #content {
    margin: 0 7.6%;
    position: relative;
    width: auto;
    }
    

    You can add extra rules to over-ride that again – event pages have .single-event added to the body:

     .single-event #primary {
        margin: 0 -26.4% 0 0;
        }
      .single-event #content {
        margin: 0 34% 0 7.6%;
        width: 58.4%;
        }
    

    should do the trick

    Stephen Harris
    #2923

    now it works. thank you.
    @michael: It is Twenty Eleven.

    is it possible to config the single-event page like all other pages?
    the content on the single-event page doesn´t have the same width, is not at the top and a little bit more in the middle.

    i tried to do it, but i didn´t get it.

    full-mann
Viewing 7 posts - 1 through 7 (of 7 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.