Hi,
In the BP default theme, forum posts alternate between grey and white backgrounds, making it easier to navigate. Social theme does not do this, but can I edit it to do so? Thanks
Hi,
In the BP default theme, forum posts alternate between grey and white backgrounds, making it easier to navigate. Social theme does not do this, but can I edit it to do so? Thanks
@footybible: You'd want to use firebug on the default theme grab the classes then plonk them into a child.css that should nail it.
Hi @tammie I'm having some issues with this. Looking at the default scheme it seems to be 'ul#topic-post-list li.alt' which renders every other post a different color. But putting this into my style.css doesn't do anything. Do I need to edit something else?
Thanks
@footybible: Can you add to that class using firebug and it work? As in add the edit you want to do directly into firebug as a test.
Hi @tammie I've tried pasting:
ul#topic-post-list li.alt {
background: #fff;
}
Into the firebug css sheet and it doesn't do anything.
@footybible: Not sure about that class but in the attached screenshot you can see the class I'd suggest using and what happens when I made the change using firebug.
[attachments are only viewable by logged in members]
@tammie sorry I think I am being unclear - it is the actual posts themselves I am trying to edit rather than the topic table. I have attached a screenshot.
[attachments are only viewable by logged in members]
@footybible: Whilst I hate suggesting using !important try this as think it's a quick method of achieving what you want - there are more elegant ones but this should give you a start:
#forum-topic-form .alt .post-content{
background: #111111 !important;
}
Hi @tammie still no luck. When I add:
#forum-topic-form .post-content {
background: #fff !important;
}
It changes the colors.
However, as soon as I add .alt it is not recognised and the element doesn't even show up in a firebug inspection.
@footybible: Well I tested my code before handed to you so not sure. Are you doing exactly as I wrote?
Hi @tammie. Yes exactly as you described - I've attached a screenshot to illustrate.
[attachments are only viewable by logged in members]
@footybible: Copy my exact code please you are not writing CSS correctly in what you just wrote.
@tammie I did copy it exactly, just changing the color. I think I just cut off the edge in that screen shot. You can check it here, I have pasted in exactly what you gave me:
http://www.footybible.com/groups/coaching-fitness/forum/topic/test/
@footybible: Attached is a copy of the screenshot you put up that is not the code I put up. I never had scroll or other calls.
[attachments are only viewable by logged in members]
Hi @tammie, I'm not sure how I ended putting with those calls in, sorry about that. But I now have exactly what you recommended and its not picking up:
http://www.footybible.com/groups/coaching-fitness/forum/topic/test/
I've been searching around for how the .alt class works but no luck.
Right starting to get very confused with this. Attached are my images as you can see I can't even 'see' an alt on your site. Have you added any plugins or have you added anything that could have changed that?
Hi @tammie I can't see any images attached to your previous post, but the 'alt' is definitely there, as part of the code you suggested at the bottom of the style.css sheet. Believe me I'm also confused! I will experiment with switching off different plugins and see if that makes a difference.
Trying image upload again - apologies.
[attachments are only viewable by logged in members] [attachments are only viewable by logged in members]
Hi @tammie, no worries, I appreciate your patience and help on this one.
That is exactly the same as I'm seeing. I know the code is pulling through, because if I click on the firebug tab and scroll to the bottom it is there. Its just not connecting up with the element for some bizarre reason.
I'm just trying some different things and will get back to you with the results. Thanks.
OK tammie, here is what I tried.
I switched to my social parent theme, added the code in firebug and had exactly the same problem. However, when I switched to the default theme and added the code you gave me in firebug it worked (see the attached screenshot).
As you have verified that the code works with a clean version of social, this means there must be an error with a change I have made to the parent version.
I de-activated all the plugins apart from buddypress and the error persists, so it is not clashing to any of these. This leaves the following:
1) It may be an edit I made to pluggable.php to change the ‘from’ name in my e-mail address
2) It could be the changes I made to navigation.php:
http://buddydress.com/forums/topic/home-tab-stays-highlighted#post-587
3) It could be the fact I deleted the BBpress ‘register’ code
4) It could be I changed my register slug in wp-config to /getinvolved
5) It could be changes I made to my .htaccess mod:
# BEGIN ANTISPAMBLOG REGISTRATION
RewriteEngine On
RewriteCond %{REQUEST_METHOD} POST
RewriteCond %{REQUEST_URI} .getinvolved
RewriteCond %{HTTP_REFERER} !.footybible.com. [OR]
RewriteCond %{HTTP_USER_AGENT} ^$
RewriteRule (.*) http://die-spammers.com/ [R=301,L]
# END ANTISPAMBLOG REGISTRATION
6) It could be in top-header.php I moved
<div id="optionsbar"> to below <?php if (is_user_logged_in()) { ?>
7) It may be a social theme compatibility issue with wordpress 3.0 and/or buddypress 1.2.5.2....? (I don't know what versions you trialled your code with?)
Do any of these look vaguely guilty to you???
[attachments are only viewable by logged in members]
@footybible: I'm testing using 1.2.5.2 and 3.0 so it can't be that. As for the other things goodness only knows but none strike me as incredibly guilty - moving things and changing code though can always end up with what I call the 'jenga' factor. But where are you putting the changes you see I worry something is coming after that is setting that CSS back. Have you tried in the header linking it in as CSS after every single thing before the closing head tag?
Hi tammie, sorry, not sure I follow - do you mean in firebug? If so where?
I've been looking around and there do seem to have been some issues with BP being inconsistent with alternate highlighting:
@footybilble: Yeah firebug would show you if there was extra or too few divs. Hmm interesting maybe that ticket is what is going on seeing as I can't replicate on my system. Hang on what browser are you viewing it in as that bit about child selectors isn't a bug that's Internet Explorer behaviour.
Hmmm @tammie what you've described might be a bit beyond my firebug abilities... Is there any chance you could break out for me what you mean?
I'm using firefox and IE and its showing up the same in both
@footybible just open and close sections and highlight by moving your mouse over them to see divs - that way you can see if sidebars are closed and so on.
Hi @tammie I'm extremely pleased to report that, with a large dose of help from the BP forums, I've sorted this out.
It was related to the issues above. I had to make the changes set out to the BP-default theme here:
http://trac.buddypress.org/changeset/3111/branches
to social. The only difference was in global.JS. Instead of:
jq('body#bp-default table.zebra tbody tr:odd').addClass('alt');
I used:
jq(‘body#bp-default table.zebra tbody tr:odd, ul#topic-post-list > li:odd’).addClass(‘alt’);
And finally saw those changes materialise. So relieved :-)
@footybible: Cool still a bit puzzling how worked for me but hey it works now that's good. Some of our themes do indeed have that fix already in and Social should also get that updated very soon. I'll make sure that becomes part of the update.
You must log in to post.