Joomla fix: News table layout

Joomla news layout can be adjusted through CSS and code changes.
This is how you can change the fixed column width in content category table display (which you get when you create a menu for table-content category).

Go to Components > Com_content > content.html.php to find around line number 238 the following code:


    if ( $params->get( 'headings' ) ) {
                ?>
                <tr>
                    <?php
                    if ( $params->get( 'date' ) ) {
                        ?>
                        <td class="sectiontableheader<?php echo $params->get( 'pageclass_sfx' ); ?>" width="25%">
                            <?php echo _DATE; ?>
                        </td>
                        <?php
                    }
                    if ( $params->get( 'title' ) ) {
                        ?>
                        <td class="sectiontableheader<?php echo $params->get( 'pageclass_sfx' ); ?>">
                            <?php echo _HEADER_TITLE; ?>
                        </td>
                        <?php
                    }
                    if ( $params->get( 'author' ) ) {..............

and change the width parameters for each column.

Also change row 176
from

<table width="100%" border="0" cellspacing="0" cellpadding="0">

to

<table width="100%" border="0" cellspacing="0" cellpadding="0" class="contentcategory">


Tags:

Leave a Reply


© Busyboo. All rights reserved.Entries (RSS)and Comments (RSS) | Our partner sites: Convertible Baby Cribs, Designer Diaper Bags , Wine Gift Baskets & wine related gifts, Shine Custom Website Design, Stellina d'oro Diamond Engagement Rings, Pets Trends Dog Beds & Pet Carriers, Best Brand Binoculars