Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • ciwebmarketing Friend
    #202903

    Why is the component set to 66%, irrespective of the settings for sidebar 1 and 2. If I publish a featured article it occupies 66% of the front page, right-aligned. If I publish something to sidebar 1 it comes out of that 66%, and publishing sidebar1 and 2 reduces the front page component area to about 20%, with a big pile of white down the lhs.

    template settings: responsive layout>default

    Thanks.
    Richard

    chavan Friend
    #555867

    I have fixed it for you

    I made a change in this file: /templates/yourtheme/html/com_content/featured/default_item.php

    Replaced this code

    [PHP]<div class=”col-sm-4″>
    <?php echo JLayoutHelper::render(‘joomla.content.intro_image’, $this->item); ?></div>
    <div class=”col-sm-8″>[/PHP]

    with

    [PHP]<?php if(trim(JLayoutHelper::render(‘joomla.content.intro_image’, $this->item)) ==”){
    ?>
    <div class=”col-sm-12″>
    <?php

    }else{ ?>
    <div class=”col-sm-4″>
    <?php echo JLayoutHelper::render(‘joomla.content.intro_image’, $this->item); ?></div>
    <div class=”col-sm-8″>
    <?php } ?>[/PHP]

    ciwebmarketing Friend
    #555878

    Great! That fixed it. Brilliant service.

    Cheers

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

This topic contains 3 replies, has 2 voices, and was last updated by  ciwebmarketing 10 years ago.

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