Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • infib Friend
    #202403

    Hello Joomlart!

    I want the masshead module to show different images on different pages.
    I searched the forum and found this thread:

    http://www.joomlart.com/forums/topic/ja-masshead-how-to/

    But on step 3, I can’t see what code I should replace. Tried to just add the ” style=”background-image: url()” >” code anyways in the default.php file, but it didn’t work.

    Thanks in advance,
    Infib

    Eragon H Friend
    #554059

    On the step 3

    Replace the code in the file “root/templates/ja_appolio/html/mod_jamasshead/default.php”
    FROM: http://prntscr.com/52u4vq

    <div class="jamasshead<?php echo $params->get('moduleclass_sfx','')?>">

    TO:

    <div class="jamasshead<?php echo $params->get('moduleclass_sfx','')?>" <?php if(isset($masshead['params']['background'])): ?> style="background-image: url(<?php echo $masshead['params']['background'] ?>)" <?php endif; ?>>

    Result: http://prntscr.com/52u4pg

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

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

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