test
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • chrisjclay Friend
    #155670

    Hi,

    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:

    http://templates.joomlart.com/ja_sulfur/index.php?option=com_content&view=category&layout=blog&id=1&Itemid=50

    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


    1. sulfur_screencap
    aman204 Friend
    #360445

    Assuming 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>

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 2 replies, has 2 voices, and was last updated by  aman204 14 years, 2 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum