1
dukehen
Where's the style in my theme?
  • 2004/5/14 14:36

  • dukehen

  • Just popping in

  • Posts: 91

  • Since: 2003/12/9


Hello, one thing that I am working on in my theme is the fact that virtually none of the styles that I have defined in my theme.html (and covered in my style.css) are taking effect.

For example, my left column code from theme.html is:

----------------


<{foreach item=block from=$xoops_lblocks}>
<{include file="cbone/theme_blockleft.html"}>
<{/foreach}>


----------------
And my relevant style.css section is:

td#leftcolumn {width: 205px; font-size:11px; background-color: #E4E4E4; color: #9F9F9F; padding:10px; vertical-align: top;}
td#leftcolumn th {background-color: #FFFFFF; color: #F98B41; vertical-align: middle;}
td#leftcolumn div.blockTitle {padding: 3px; background-color: #FFFFFF; color: #F98B41; font-weight: bold;border:1px solid #9F9F9F;}
td#leftcolumn div.blockContent {padding: 0px 0px 0px 10px; line-height: 120%;border:1px solid #9F9F9F;background-color: #FFFFFF;}
-------------------
However, I get a basic html page, with text and a white background. No colours, no nothing.

Any ideas? I am sure it is something simple.

Oh, and my style.css is uploaded, as is my other pages.

theme_blockleft.html obviously is online and working, otherwise I would get no content from the db as to user menus, etc.

2
tl
Re: Where's the style in my theme?
  • 2004/5/14 14:48

  • tl

  • Friend of XOOPS

  • Posts: 999

  • Since: 2002/6/23


It should be working as you've described. Make sure that "cbone" is the theme (directory name) that you are working on.

<{include file="cbone/theme_blockleft.html"}>

The file must be in the right place.

[edit] if you are using the default mainmenu. td#mainmenu should be the place to make changes. [/edit]

3
dukehen
Re: Where's the style in my theme?
  • 2004/5/14 15:58

  • dukehen

  • Just popping in

  • Posts: 91

  • Since: 2003/12/9


Yes, I have the theme within a directory called cbone, and I also have mainmenu set in my CSS as well:

---------------
td#mainmenu a {background-color: #F7F7F7; display: block; margin: 0; padding: 4px;}
td#mainmenu a:hover {background-color: #9EBFD0;}
td#mainmenu a.menuTop {padding-left: 3px;}
td#mainmenu a.menuMain {padding-left: 3px;}
td#mainmenu a.menuSub {padding-left: 9px; }
---------------

Hrm, I will keep looking!

4
studioC
Re: Where's the style in my theme?
  • 2004/5/14 16:04

  • studioC

  • Friend of XOOPS

  • Posts: 922

  • Since: 2003/12/7


can you give us a link ?

would be very helpful to see, perhaps error is on different place ?


michael

5
dukehen
Re: Where's the style in my theme?
  • 2004/5/14 16:07

  • dukehen

  • Just popping in

  • Posts: 91

  • Since: 2003/12/9


Sure, just had to turn the site back on...

http://www.paintballandstuff.net

6
studioC
Re: Where's the style in my theme?
  • 2004/5/14 16:10

  • studioC

  • Friend of XOOPS

  • Posts: 922

  • Since: 2003/12/7


look at the [rendered] source ...



...
what tool do you use ? frontpage ?
path to css isn't correct...


michael

7
dukehen
Re: Where's the style in my theme?
  • 2004/5/14 16:12

  • dukehen

  • Just popping in

  • Posts: 91

  • Since: 2003/12/9


Ahhh, you are amazing. I used a previous theme and forgot to make some changes.

Is there a db name I can use for the path, or should it be specific to my theme?

8
studioC
Re: Where's the style in my theme?
  • 2004/5/14 16:12

  • studioC

  • Friend of XOOPS

  • Posts: 922

  • Since: 2003/12/7


perhaps add manual...[hm..handish?]

http://www.paintballandstuff.net/themes/technicolor/style.css

michael

9
studioC
Re: Where's the style in my theme?
  • 2004/5/14 16:14

  • studioC

  • Friend of XOOPS

  • Posts: 922

  • Since: 2003/12/7


and,.. of course you can use...

<{$xoops_imageurl}>style.css

edit: to get path to actual theme....



michael

10
dukehen
Re: Where's the style in my theme?
  • 2004/5/14 16:17

  • dukehen

  • Just popping in

  • Posts: 91

  • Since: 2003/12/9


Thank you sir!

I can now fiddle around and actually try and make it look decent!


Login

Who's Online

349 user(s) are online (234 user(s) are browsing Support Forums)


Members: 0


Guests: 349


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits