Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • Dilum Jayawardhana Friend
    #931032

    Hello all,

    I’m using Purity III template, for a website. It’s still on the development stage. URL is: http://development.hearwomen.org/
    I’m using the featured article layout for the home menu item, and my client wants to move the image to top.
    So it would display like this:
    -Image,
    -title,
    -description.

    I tried doing this with template overrides, but when I changed the title position, whole homepage structure breaks. (Screenshot is attached, Please check. ). Can anyone check this please?

    Thanks.


    1. ScreenShot
    Pankaj Sharma Moderator
    #931039

    Hi
    If you want to move the image above title you need to move the intro image code from php file .
    As and example in featured layout go to /html/com_content/featured/default_item.php file /
    Cut the intro image code and move it above article title code like here : http://prntscr.com/b4m69y

    Hope it helps .

    Dilum Jayawardhana Friend
    #931053

    Hello Thanks for replying, I couldn’t find the exact structure, but I tried moving this above the title. But still it breaks. <?php if (isset($images->image_intro) && !empty($images->image_intro)) : ?> <?php $imgfloat = (empty($images->float_intro)) ? $params->get('float_intro') : $images->float_intro; ?> <div class="pull-<?php echo htmlspecialchars($imgfloat); ?> item-image"> <img <?php if ($images->image_intro_caption): echo 'class="caption"' . ' title="' . htmlspecialchars($images->image_intro_caption) . '"'; endif; ?> src="<?php echo htmlspecialchars($images->image_intro); ?>" alt="<?php echo htmlspecialchars($images->image_intro_alt); ?>"/> </div> <?php endif; ?>

    I will attach the original default_item.php file. https://drive.google.com/open?id=0B1OHwIZGXIALeDJZWklfX3FYYVk Thanks again.

    Dilum Jayawardhana Friend
    #931074

    I finally solved it, This was mainly due to a additional div class. Once I removed it the page layout is fine. Anyway thanks for helping.

    sandeep.nrtl Friend
    #1003509

    Could you please explain, how did you done ?…I’m also looking for the same.

    Pankaj Sharma Moderator
    #1003634

    Hi
    kindly check my suggestion given Here

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

This topic contains 5 replies, has 3 voices, and was last updated by  Pankaj Sharma 7 years, 3 months ago.

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