test
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • sobe Friend
    #201999

    Is there a way to add a Page Heading to a “List All Categories” page without changing the layout of the page?

    I would like the page to keep the following rectangular layout, but when a Page Heading is added all the squares move to the right side and are morphed into a bigger square.

    chavan Friend
    #552628

    can you please add the page heading there, so I can see the issue and provide the right solution.

    sobe Friend
    #554268

    Hi Chavan,
    I’ve done as you’ve asked, and since provided you my admin details. Do you have any suggestions on the right solution?

    Eragon H Friend
    #555076

    Can you provide the screenshot with description of how you want to achieve, it would be easier for me to provide the suggestion

    sobe Friend
    #555294

    Please see attached image, and the example title “PAGE HEADING”.


    1. Page-Heading-List-All-Categories
    Eragon H Friend
    #555424

    <em>@sobe 453187 wrote:</em><blockquote>
    Please see attached image, and the example title “PAGE HEADING”.</blockquote>

    Thank for your information.

    I’m currently out of office. I will reply your question as soon as I’m back

    Eragon H Friend
    #555752

    1. You can change the code in file root/templates/ja_fixel/html/com_content/categories/default.php

    FROM >> http://prntscr.com/57w26l

    <div class="fixel-grid-wrapper">
    <div id="fixel-grid" class="fixel-grid categories-list<?php echo $this->pageclass_sfx;?>">

    <?php if ($this->params->get('show_page_heading')) : ?>
    <div class="items grid-2x2 no-repeat pageheading">
    <article>
    <h2><?php echo $this->escape($this->params->get('page_heading')); ?></h2>
    <?php if($this->params->get('jpage_desc')) : ?>
    <div><?php echo $this->escape($this->params->get('jpage_desc')); ?></div>
    <?php endif ?>
    </article>
    </div>
    <?php endif; ?>

    <?php if ($this->params->get('show_base_description')) : ?>
    <?php //If there is a description in the menu parameters use that; ?>
    <?php if ($this->params->get('categories_description')) : ?>
    <?php echo JHtml::_('content.prepare', $this->params->get('categories_description'), '', 'com_content.categories'); ?>
    <?php else: ?>
    <?php //Otherwise get one from the database if it exists. ?>
    <?php if ($this->parent->description) : ?>
    <div class="category-desc">
    <?php echo JHtml::_('content.prepare', $this->parent->description, '', 'com_content.categories'); ?>
    </div>
    <?php endif; ?>
    <?php endif; ?>
    <?php endif; ?>

    <?php echo $this->loadTemplate('items'); ?>
    </div>
    </div>

    TO >> http://prntscr.com/57w33d

    <?php if ($this->params->get('show_page_heading')) : ?>
    <div class="items grid-2x2 no-repeat pageheading">
    <article>
    <h2><?php echo $this->escape($this->params->get('page_heading')); ?></h2>
    <?php if($this->params->get('jpage_desc')) : ?>
    <div><?php echo $this->escape($this->params->get('jpage_desc')); ?></div>
    <?php endif ?>
    </article>
    </div>
    <?php endif; ?>

    <div class="fixel-grid-wrapper">
    <div id="fixel-grid" class="fixel-grid categories-list<?php echo $this->pageclass_sfx;?>">
    <?php if ($this->params->get('show_base_description')) : ?>
    <?php //If there is a description in the menu parameters use that; ?>
    <?php if ($this->params->get('categories_description')) : ?>
    <?php echo JHtml::_('content.prepare', $this->params->get('categories_description'), '', 'com_content.categories'); ?>
    <?php else: ?>
    <?php //Otherwise get one from the database if it exists. ?>
    <?php if ($this->parent->description) : ?>
    <div class="category-desc">
    <?php echo JHtml::_('content.prepare', $this->parent->description, '', 'com_content.categories'); ?>
    </div>
    <?php endif; ?>
    <?php endif; ?>
    <?php endif; ?>

    <?php echo $this->loadTemplate('items'); ?>
    </div>
    </div>

    2. Add this code to the file root/templates/ja_fixel/css/custom.css to style the page heading. You can change the value to meet your need.

    .pageheading article {
    background: #e67e22
    color: #fff
    font-size: 17px;
    line-height: 1.8;
    padding: 80px;
    }

    Result >> http://prntscr.com/57w2rv

    sobe Friend
    #555910

    Hi Eragon,
    I was able to create the heading, but the image still clustered into a square to the right side on the screen (instead of being vertical rectangles)

    Eragon H Friend
    #555916

    Have you follow my instruction?

    Can you provide your site URL, temporary admin account and the direct link to that page. I can have a look

    sobe Friend
    #555950

    Yes, I’ll send you a PM shortly. Thanks for the assistance.

    Eragon H Friend
    #556024

    You forget to remove/comment out the code lines that you copied to above >> http://prntscr.com/58hiw5

    Result : http://prntscr.com/58hjco

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

This topic contains 11 replies, has 3 voices, and was last updated by  Eragon H 10 years, 1 month ago.

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