Support Forum

"Most recent topics" popup showing up behind my navigation bar

LI lisalew
lisalew
Member

Where would I set the z-index for the “most recent topics with unread posts” popup box?  Or is there something else I can do?  My navigation bar runs right through the popup box.

6 Answers

New Answer

LH Lee H
Lee H
Member

Try:

#sforum .sfmessagestrip select.sfquicklinks {
    z-index:99999;
}

set the z-index to whatever number works for you.

HTH

LI lisalew
lisalew
Member

Sorry for my ignorance – do you know where I would need to add this css?

LH Lee H
Lee H
Member

Not ignorant at all 🙂

Not sure the exact location for your case as I can’t view your site 🙂

The “correct” way would be to add it to your forums css, but I’d guess that would be a pain as your probably running the compressed version that’s not so easy to edit.

“I” would chicken out and add it to the bottom of your WP theme’s css file. There’s a good chance your new setting would work there. Since the z-index issue is related to your current WP theme, it’s likely if and when you switch themes, you would leave that problem behind and losing the new setting wouldn’t matter.

LH Lee H
Lee H
Member

@lisalew…

I totally screwed up. embarassed

I didn’t notice this post was in the SP5 section. The above code and info I gave you works for SP4.xx

If you are using the “Default” theme that comes with v5, go to your themes folder and open default/styles/default.php

At or near line 2052 find this:

#spMainContainer .ui-selectmenu-menu-dropdown {
    border: <?php echo($alt2SectionBorder); ?>;
    background: <?php echo($alt2SectionBackGround); ?>;
    color: <?php echo($alt2SectionColor); ?>;
    padding: 10px;
    margin: 10px;
    z-index: 100 !important;
}

and change 100 to a much higher number in the z-index line. Not sure how savy you are with css so bear with me. Depending on how high the z-index is on your menu, you may need a huge number such as 99999 to get the dropdown to be show above it.

Also a reminder. You WILL lose this change on upgrade if this is the default theme you are using. Better to copy the theme and make it your own.

LI lisalew
lisalew
Member

Thanks, Lee!  I was going to apply this change now, so you caught me before I got confused 🙂

MP Mr Papa
Mr Papa
Member

danger Will Robinson… oh oh, showing my age… cool

be careful about modifying the default or iforum theme during the alpha and beta periods… if we make changes to the themes, since we are still in development, it will overwrite your changes…

now, and even after release, its still better to make a copy of the theme and create your own theme and modify…