Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
themes-topic
Custum overlay - border question
Avatar
Meztli
Sweden
Member
sp_UserOfflineSmall Offline
Oct 2, 2015 - 6:59 am

Hi guys,

I started to create a costum overlay, but i can not find out how to change the color of the border that surrounds the subforum. Please take a look at the submited image.

Would appricate if you could point me in the right direction.

Thanks in advance!border.jpgImage Enlarger

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Oct 2, 2015 - 9:08 am

Hey Meztli,

You can remove the sub forum row border in the overlay by changing the value of $inRowSubsBorder. You can assign it an independent colour, or remove it completely using 'none'.

Remember, if you ever need to find out what to change, inspect the element in your browser, copy the classes of what you want to change (in this case #spMainContainer .spInRowSubForums), find that in your stylesheet and it will show which variables from the overlay need changing.

Hope that helps!

Avatar
Meztli
Sweden
Member
sp_UserOfflineSmall Offline
Oct 2, 2015 - 9:17 am

Thanks Ike.

I did accually inspect the element before posting, but i am not very familiar with the tool which is the reason i did not find $inRowSubsBorder.

Whish you a nice weekend!

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Oct 2, 2015 - 9:23 am

No problem, same to you! 🙂

Avatar
Meztli
Sweden
Member
sp_UserOfflineSmall Offline
Oct 2, 2015 - 10:07 am

By the way, is it possible to make $inRowSubsBorder create only a top-border?

At the moment $inRowSubsBorder do circle the entire sub-row.

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Oct 2, 2015 - 12:00 pm

Unfortunately not just using the overlay. The rule for the border is in the stylesheet, all that's in the overly is the thickness and colour. If you wanted to change it, just add the following to your child themes stylesheet:

#spMainContainer .spInRowSubForums {
    border: none;
    border-top: <?php echo($inRowSubsBorder); ?>;
}

The reason it has border: none is because it's overwriting the parent themes rules. Since border-top is a different rule to border altogether you'd end up running both border and border top. Border none get's rid of the border and border-top re-applies it to the top.

Avatar
Meztli
Sweden
Member
sp_UserOfflineSmall Offline
Oct 2, 2015 - 1:18 pm

Thanks Ike,

I am fine with using the stylesheet as well.

The submited code does remove the borders, but it do not add a top-border.

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Oct 2, 2015 - 1:34 pm

Strange, works just fine for me..

Have you already changed the value of $inRowSubsBorder to 'none' or a different colour?

Avatar
Meztli
Sweden
Member
sp_UserOfflineSmall Offline
Oct 3, 2015 - 3:49 am

Ike said
Have you already changed the value of $inRowSubsBorder to 'none' or a different colour?

Yes in my child theme overlay i did change the color of $inRowSubsBorder. But before getting back to you, i removed my costum overlay and tried all of the original SP overlays and it´s not working with them either.

This is my current child theme css:

#spMainContainer {
    background: #F8F8F8;
}


#spMainContainer .spInRowSubForums {
    border: none;
    border-top: ;
}
Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Oct 3, 2015 - 4:49 am

Sorry Meztli, been a while since I have used child themes obviously!

The standard child theme stylesheet is a .css file, so PHP won't work. You can either specify a border with a hex colour like:

#spMainContainer .spInRowSubForums {
    border: none;
    border-top: 1px solid #FFFFFFF;
}

Or you can keep the variable as above and just rename your stylesheet to change the extension to .php i.e reboot-child.php..

Again, sorry for not realizing this yesterday!

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626