Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • ovdemonz Developer
    #201173

    Already follow the guide to change

    <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; ?>>

    in
    /public_html/essenshealth/modules/mod_jamasshead/tmpl/default.php

    my setting as follows:

    [Masshead Itemid="525" background="/images/mass-head/essenshealthaffilliateprogram.png"][/Masshead]

    Firebug output:

    http://prntscr.com/4l33ei

    Pankaj Sharma Moderator
    #548801

    Hello the image is coming from the css .
    do this
    add this css code in your custom.css file

    .t3-masshead {

    background: url("/images/mass-head/essenshealthaffilliateprogram.png") no-repeat left top;

    }

    It will change the image that you want to add .>>>> /images/mass-head/essenshealthaffilliateprogram.png

    >>>> http://prntscr.com/4l3j83

    Hope it helps you

    ovdemonz Developer
    #548839

    thanks for your input.

    If i use css it will change all masshead image in every article to use that image. it should be control by JA Masshead configuration as shown below

    http://prntscr.com/4l4v4y

    Pankaj Sharma Moderator
    #548840

    Hello can you give me the link , of the doc file , where i can see the changes in the code as i can see in your 1st post .
    you changed some php codes for it .
    JA Mashead will work with item id (Menu id ) so i am not sure it will work with multiple bg for different articles
    Also take a backup of your site . and PM me your admin details with me . i will have a closer look

    ovdemonz Developer
    #548899

    thanks for your kind assistance

    <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; ?>>

    change made in > /modules/mod_jamasshead/tmpl/default.php refer below for the complete file content

    <?php
    /**
    * ------------------------------------------------------------------------
    * JA Masshead Module for J25 & J33
    * ------------------------------------------------------------------------
    * Copyright (C) 2004-2011 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
    * @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
    * Author: J.O.O.M Solutions Co., Ltd
    * Websites: http://www.joomlart.com - http://www.joomlancers.com
    * ------------------------------------------------------------------------
    */

    defined('_JEXEC') or die('Restricted access');
    ?>
    <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; ?>>
    <h3 class="jamasshead-title"><?php echo $masshead['title']; ?></h3>
    <div class="jamasshead-description"><?php echo $masshead['description']; ?></div>
    </div>

    Documentation reference >> http://www.joomlart.com/documentation/joomla-module/ja-masshead

    Excerpt from JA Mass Head Documentation wrt to this matter

    http://prntscr.com/4l8dim

    ovdemonz Developer
    #549109

    any update?

    Ninja Lead Moderator
    #549113

    @ovdemonz: This way will help you to fix this bug

    Open templates/ja_hawkstore/css/custom.css file and add new rule


    .t3-masshead .jamasshead {
    height: 160px;
    }

    Let me know if it helps

    ovdemonz Developer
    #549194

    <em>@Ninja Lead 445259 wrote:</em><blockquote>@ovdemonz: This way will help you to fix this bug

    Open templates/ja_hawkstore/css/custom.css file and add new rule


    .t3-masshead .jamasshead {
    height: 160px;
    }

    Let me know if it helps</blockquote>

    What kind of magic this is. Tq it solve the problem. 😉

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

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

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