-
AuthorPosts
-
chrisjclay Friend
chrisjclay
- Join date:
- August 2010
- Posts:
- 26
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 17
- Thanked:
- 1 times in 1 posts
October 25, 2010 at 3:49 am #155670Hi,
I really like the way the page titles are displayed with this template. See Example 1 in the attached screen capture. These are created by the following code:
<h1 class=”componentheading”><span>Page Title Goes Here</span></h1>
Here’s an example on the official Sulfur demo:
However, if the page is generated by a component, they look different – see Example 2 in the screen capture. The code is a bit different:
<div class=”componentheading”>Page Title Goes Here</div>
Here’s a page on the Sulfur demo generated by the Weblinks component where you’ll see the difference:
http://templates.joomlart.com/ja_sulfur/index.php?option=com_weblinks&view=categories&Itemid=48
I’d like all of the page titles to have a consistent look… Any idea how I can make the titles not wrapped in “span” tags look the same?
Thanks!
Chris
aman204 Friendaman204
- Join date:
- January 2010
- Posts:
- 1945
- Downloads:
- 0
- Uploads:
- 43
- Thanks:
- 11
- Thanked:
- 418 times in 356 posts
October 25, 2010 at 10:51 am #360445Assuming you wish to change it for weblinks menu type as seen in attachment, Go to ::
components/com_weblinks/views/categories/tmpl/default.php
and change this::
<div class=”componentheading<?php echo $this->escape($this->params->get(‘pageclass_sfx’)); ?>”>
<?php echo $this->escape($this->params->get(‘page_title’)); ?>
</div>to
<h1 class=”componentheading<?php echo $this->escape($this->params->get(‘pageclass_sfx’)); ?>”>
<span>
<?php echo $this->escape($this->params->get(‘page_title’)); ?></span></h1>1 user says Thank You to aman204 for this useful post
AuthorPostsViewing 2 posts - 1 through 2 (of 2 total)This topic contains 2 replies, has 2 voices, and was last updated by aman204 14 years, 1 month ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Componentheading looks different on some pages
Viewing 2 posts - 1 through 2 (of 2 total)