1
yingzhao
How do I modify the 2.3 default theme pick up my own css style sheet
  • 2009/4/13 1:45

  • yingzhao

  • Just popping in

  • Posts: 45

  • Since: 2008/5/12


I have a tabs.css defined to display the href links as tabs. How do I add it to the default theme to change the links as tabs? The content of this css is as below.

.tabZ{
padding: 3px 0;
margin-left: 0;
font: bold 12px Trebuchet MS ;
text-align: left;
border-bottom: 1px solid gray;
list-style-type: none;

}

.tabZ li{
display: inline;
margin: 0;
}

.tabZ li a{
text-decoration: none;
padding: 3px 7px;
margin-right: 3px;
border: 1px solid gray;
border-bottom: none;
background-color: #FDEAFD;
color: #2d2b2b;
}

.tabZ li a:visited{
color: #2d2b2b;
}

.tabZ li a:hover{
background-color: #FF8AFF;
color: black;
}

.tabZ li a:active{
color: black;
}

.tabZ li.selected a{/*selected tab*/

position: relative;
top: 1px;
padding-top: 4px;
background-color: #FF8AFF;
color: black;
}

2
Catzwolf
Re: How do I modify the 2.3 default theme pick up my own css style sheet
  • 2009/4/13 3:20

  • Catzwolf

  • Home away from home

  • Posts: 1392

  • Since: 2007/9/30


#Which file would you call it from. Because you can use a cople of methods of adding javascript or css

if $xoTheme is in the global scope you could use:

Quote:
$xoTheme->addStylesheet( "path to css file" );


Or you could do this with $xoopsTpl (again, this has to be in the global Scope)


Use this right after XOOPS_ROOT_PATH.'/header.php'; or as close to after is as possible.
Quote:

$xoopsTpl->assign( 'xoops_module_header','<link rel="stylesheet" type="text/css" href="link to css file" />');

Hope this helps

3
ghia
Re: How do I modify the 2.3 default theme pick up my own css style sheet
  • 2009/4/13 10:18

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


And you can enter it also by editing /themes/default/theme.html

4
yingzhao
Re: How do I modify the 2.3 default theme pick up my own css style sheet
  • 2009/4/13 18:08

  • yingzhao

  • Just popping in

  • Posts: 45

  • Since: 2008/5/12


Thank you. I modified the theme.html and it worked.

Login

Who's Online

197 user(s) are online (119 user(s) are browsing Support Forums)


Members: 0


Guests: 197


more...

Donat-O-Meter

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

Latest GitHub Commits