drduinfu915094 2015-01-05 13:53
浏览 48

joomla中的网页CSS

I am new to web design. I use Joomla 3 to create a bookshop website. I have designed my homepage the way I like using CSS, the problem is that i want to style other web pages on the website but i cant.

I am using a self made barebones template that has an index.php file and a style.css file. The CSS code I used for the homepage is in the style.css file. I need to create another css file for pages such as "about page" of the website so i can style it the way i want but I don't know how to do this.

The main menu has the following links: home, about us, text books, literature books, stationary, etc

Below is a snapshot of my index.php file.

<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
$doc = JFactory::getDocument();
$doc->addStyleSheet($this->baseurl . '/media/jui/css/bootstrap.min.css'); /* to add bootstrap */
$doc->addStyleSheet($this->baseurl . '/media/jui/css/bootstrap-responsive.css'); /* to add     bootstrap responsiveness */
$doc->addStyleSheet('templates/' . $this->template . '/css/style.css');
$doc->addScript('/templates/' . $this->template . '/js/main.js', 'text/javascript');

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php     echo $this->language; ?>" >

<html>
<head>
<jdoc:include type="head" />

</head>

<body>
<div class='header'></div>
<!-- main container -->
<div class='main_container'> 

    <!-- Main Menu -->
        <div class='logo_main_menu'> 
            <div class='logo'> 
            </div>
            <div class='main_menu'> 
            <jdoc:include type="modules" name="position-7" style="well" />
            </div>
  • 写回答

2条回答 默认 最新

  • douli1306 2015-01-06 02:56
    关注

    There can be unique cases where you need/desire several templates running on one Joomla install. You could create an additional bare bones template, install, and then assign via template manager.

    In template manager, you can assign a different template on every single page of your website.

    So the solution you may be looking for would be to have a couple different templates to run your separate pages.

    评论

报告相同问题?

悬赏问题

  • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么
  • ¥15 banner广告展示设置多少时间不怎么会消耗用户价值
  • ¥16 mybatis的代理对象无法通过@Autowired装填
  • ¥15 可见光定位matlab仿真
  • ¥15 arduino 四自由度机械臂
  • ¥15 wordpress 产品图片 GIF 没法显示
  • ¥15 求三国群英传pl国战时间的修改方法
  • ¥15 matlab代码代写,需写出详细代码,代价私
  • ¥15 ROS系统搭建请教(跨境电商用途)
  • ¥15 AIC3204的示例代码有吗,想用AIC3204测量血氧,找不到相关的代码。