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
Hm… he did not take the code-part to my post.
If i insert this: the sidebar is deeper.
full-mann
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
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
@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
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
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