html - Joomla - 样式类别博客文章内容

标签 html css joomla styling article

我正在尝试设计文章在类别博客中的布局方式,但一直坚持设计文章的实际内容。

我在类别博客上的第一篇文章的代码是这样的:

<div class="items-leading">

<div class="leading-0">

    <h2>
        <a href="/news/5-news-post-1">News Post 1</a>
    </h2>

    <dl class="article-info">

        <dt class="article-info-term">Details</dt>

        <dd class="published">2nd Mar 2013</dd>

    </dl>

    Lorem ipsum dolor sit amet etc...

    <div class="item-separator"></div>

</div>

我试图通过将它包装在某种标签中来设置 lorem ipsum 示例文本的样式,我不介意 div 或段落,因此我可以为其包装容器提供 div 和字体样式等。

这是指向其当前所在站点的链接:

http://test.studevent.co.uk/news

非常感谢任何帮助。

最佳答案

您想更改博客中文章项的默认模板吗? /components/com_content/views/category/tmpl/blog_item.php - 这是默认模板。将其复制到您的模板 (/templates/{your_template_name}/html/com_content/category/blog_item.php)。 之后,在第 137 行的副本中,您可以找到 <?php echo $this->item->introtext; ?> - 这是你的文本 'Lorem ipsum ...'

关于html - Joomla - 样式类别博客文章内容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15191694/

相关文章:

css - 如何在带有 url 背景的速记属性中使用 "background-size : contain"。?

html - 对齐 CSS 网格布局卡上的元素

url - Joomla 网址 : An article doesn't have a pretty URL by itself?

javascript - jQuery:在 <select> 元素中找到选定值的 <optgroup>

javascript - JS, "objects",这个那个。来自 python 这真的让我感到困惑。 (双关语)

html - 更改文本框高亮颜色

javascript - angularjs ngRepeat 有时我无法向下滚动

java - Gradle 3.0.0 的 Android 插件 : Could not find com. google.http-client :google-http-client-parent:1. 24.1

php - Facebook Open Graph,未提供类型为 'og:title' 的必需属性 'string'

css - 仅在主页应用 CSS 规则。 K2,龙门架,Joomla