Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • fwrut Friend
    #193491

    Hi to all,

    i want to configure the param background in the Masshead module.
    Therefor i’ve added

    <div class=”jamasshead” <?php if(isset($masshead[‘params’][‘background’])): ?> style=”background-image: url(<?php echo $masshead[‘params’][‘background’] ?>)” <?php endif; ?>>

    in the default.php of the module but the images will not be shown.
    I try to call the image with

    [Masshead Itemid=”103″ title=”Test for background” background=”images/masshead/test.jpg”] Test Description [/Masshead]

    Only the written titel and description is shown.

    Could you please help me?

    Thanks in advance.

    TomC Moderator
    #517405

    How exactly are you wanting your masshead element to display?

    Can you, perhaps, provide a screenshot mock-up of the look you’re going for?

    ariunaab Friend
    #517492

    I have same problem. I put following in Configuration Conditions field:
    [Masshead Itemid=”1″ title=”Using Format 2r” background=”/images/joomlart/stories/s1.png”]Display Masshead in defined page id = 1 and 2[/Masshead]
    No image is displayed. WHY?
    Thank you for quicker answer

    fwrut Friend
    #517509

    Hello Tom,

    after try different positions in default.php i found out, that the param has to be added at the beginning of the source code.
    Now i get the image but only in the high of titel and description. I made a screenshot and attached it.
    I want to add the masshead below the mainmenue /mainnav without a empty space like on the page http://demo.joomlart.com/joomla-extensions/ja-masshead

    Thank you in advance.


    1. masshead
    Ninja Lead Moderator
    #517515

    If you want to display background image, workaround below will help:

    1) Create templates/t3_blank/html/mod_jamasshead/default.php file
    2) Open default.php file and copy and paste snippets below into whole file.


    <?php
    defined('_JEXEC') or die('Restricted access');
    ?>
    <div class="ja-masshead" <?php if(isset($masshead['params']['background'])): ?> style="background-image: url(<?php echo $masshead['params']['background'] ?>)" <?php endif; ?>>
    <h3 class="ja-masshead-title"><span><?php echo $masshead['title']; ?></span></h3>
    <div class="ja-masshead-desc"><span><?php echo $masshead['description']; ?></span></div>
    </div>

    Let me know if it helps.

    fwrut Friend
    #517522

    Hi,

    thanks for your hint but i get the same result like in post 4 written.
    Do you have any idea what i should edit?

    Maybe i have to edit the *.less files?

    Ninja Lead Moderator
    #517617

    Please try alternative tweak below:

    – Create …templates/t3_blank/css/custom.css file and add following CSS style:

    .ja-masshead {
    height: 120px;
    text-align: center;
    }

    You can adjust height equal to the background image size.

    fwrut Friend
    #518591

    …perfect!
    It work’s. Thank you!
    Do you know how i can change the beginning from the titel, too?

    Ninja Lead Moderator
    #518616

    <em>@fwrut 406089 wrote:</em><blockquote>Do you know how i can change the beginning from the titel, too?</blockquote>

    I am sorry for not getting your question. It would be best if you can send me a screenshot clarifying what you would like to achieve. I will help you out.

    mykenzy00 Friend
    #525910

    I’m trying to add Masshead to Muzic but this work around does not work on this template. The background will not stretch to the top or the full width of the page.

    Thanks in advance

    Ninja Lead Moderator
    #526043

    Have you tried this tweak?

    If it does not help, you can pm me URL, admin and FTP credentials of your site, I will help you out.

    mykenzy00 Friend
    #526332

    I sent PM.

    Thanks

    Ninja Lead Moderator
    #526445

    <em>@mykenzy00 415880 wrote:</em><blockquote>I sent PM.

    Thanks</blockquote>

    I have fixed full width of JA Masshead module in this templates/ja_muzic/tpls/blocks/mainbody-sidebar.php file.

    Change

    <div class="container">
    <jdoc:include type="modules" name="<?php $this->_p('home-1') ?>" style="T3xHtml" />
    </div>

    To

    <!--div class="container"-->
    <jdoc:include type="modules" name="<?php $this->_p('home-1') ?>" style="T3xHtml" />
    <!--/div-->

    Please check your site again, let me know if it helps.

    mykenzy00 Friend
    #526486

    Thanks a lot! Looks great.

    <!–div class=”container”–>
    <jdoc:include type=”modules” name=”<?php $this->_p(‘home-1’) ?>” style=”T3xHtml” />
    <!–/div–>

    Does wrapping the code in this < !– Code —> < !– /Code —> mean it will not be used when joomla loads the page?

    Thanks again
    Bryan

    Ninja Lead Moderator
    #526555

    <blockquote>< !– Code —> < !– /Code —></blockquote>

    The syntax is to comment in php code. The code section with this syntax will not be loaded in both PHP and Joomla.

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

This topic contains 15 replies, has 5 voices, and was last updated by  Ninja Lead 10 years, 7 months ago.

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