test
Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • bobgen Friend
    #153895

    Hi, how is possible to put new module on position between logo and search on top of Purity II template? See picture in attachment.
    Thank you.


    1. NewBanner
    Don Lee Friend
    #354087

    <em>@bobgen 192032 wrote:</em><blockquote>Hi, how is possible to put new module on position between logo and search on top of Purity II template? See picture in attachment.
    Thank you.</blockquote>

    Hi bobgen,
    To have it at top like the attached image, try my way as the following:
    Open file templates/ja_purity_ii/layouts/blocks/header.php for edit. Find this code at line 25:

    <?php if($this->countModules('search')) : ?>

    Insert before:

    <?php if($this->countModules('banner')) : ?>

    <div id="ja-banner">

    <jdoc:include type="modules" name="banner" />

    </div>

    <?php endif; ?>

    Open file templates/ja_purity_ii/css/template.css. Find this code at line 1378:

    #ja-banner {
    border-top: 1px solid #ccc;
    margin: 0;
    overflow: hidden;
    padding-top: 15px;
    text-align: center;
    width: 100%;
    }

    Replace:

    #ja-banner {
    overflow:hidden;
    position:absolute;
    text-align:center;
    top:12px;
    width:100%;
    }

    Finally, go to manage your banner module, assign it to banner position.

    bobgen Friend
    #354169

    It works. Very nice. Thank you. Right side of banner is about 2 px over search icons.

    8778


    1. NewBanner2
    Don Lee Friend
    #354172

    <em>@bobgen 192240 wrote:</em><blockquote>It works. Very nice. Thank you. Right side of banner is about 2 px over search icons.

    8778</blockquote>

    For this, you can select a smaller image, or fix the above code such as:


    #ja-banner {
    overflow:hidden;
    position:absolute;
    text-align:center;
    top:12px;
    width:100%;
    width: 400px;
    left: 200px;

    }

    Remember to adjust the numbers to have a best fit.

    bobgen Friend
    #354240

    Thank you.

    jpajillc Friend
    #385564

    Hi,
    I’d like to use that same space for just a text slogan. How do I add some text properties into the space? I tried to use the search module position, but as you can see in the image, it just didn’t quite work. 🙂 Thanks in advance for your help!


    1. banner-position-sample
    jpajillc Friend
    #390441

    I have followed the instructions as best I can, but can’t get this position to appear on my site. I don’t have any real experience with php, so I’m probably making some obvious mistake. I have tried adding the php code two separate ways. First, exactly as stated, before the search bit, like this:
    [PHP]<?php if($this->countModules(‘banner’)) : ?>
    countModules(‘search’)) : ?>
    <div id=”ja-search”>
    <jdoc:include type=”modules” name=”search” />
    </div>[/PHP]

    Then I tried to make it match the way the search bit was set up, so I tried it like this:
    [PHP]<?php if($this->countModules(‘banner’)) : ?>
    <div id=”ja-banner”>
    <jdoc:include type=”modules” name=”banner” />
    </div>
    <?php if($this->countModules(‘search’)) : ?>
    <div id=”ja-search”>
    <jdoc:include type=”modules” name=”search” />
    </div>[/PHP]

    I tried just using the banner position for a custom HTML module, and also for the built-in banner module/component, and I can’t get anything to show. In fact, when I tried it the second way (with the extra code), the whole site disappeared/wouldn’t show. Any advice on how to get this to work? I just need to get my site’s title and slogan up next to the logo image, as seen in my April 9th post.
    Thanks very much,
    Jill

    P.S. I’m running version 1.5.22 on Cloudaccess’ web-based platform. Working URL is http://jpa4auditors.cloudaccess.net/

    thangnn1510 Friend
    #391030

    You code are wrong now. Please change:

    <?php if($this->countModules('banner')) : ?>
    <div id="ja-banner">
    <jdoc:include type="modules" name="banner" />
    </div>
    <?php if($this->countModules('search')) : ?>
    <div id="ja-search">
    <jdoc:include type="modules" name="search" />
    </div>

    to

    <?php if($this->countModules('banner')) : ?>
    <div id="ja-banner">
    <jdoc:include type="modules" name="banner" />
    </div>
    <?php endif; ?>
    <?php if($this->countModules('search')) : ?>
    <div id="ja-search">
    <jdoc:include type="modules" name="search" />
    </div>
    <?php endif; ?>

    lou_p Friend
    #415406

    Sorry to resurrect an old post, but I am having basically this issue. I am upgrading a site to Joomla 1.7, everything seems good except I really need to add a linked separate image next to the logo image in the header. The latest template installation does not have a layouts folder and does not have header.php. Can anyone help me to find where to add in a module position within the header or where I can just insert some custom HTML? Thanks!

    czclmt Friend
    #415446

    That a good idea.Thank you!:)

    pscc Friend
    #416017

    <em>@lou_p 271059 wrote:</em><blockquote>Sorry to resurrect an old post, but I am having basically this issue. I am upgrading a site to Joomla 1.7, everything seems good except I really need to add a linked separate image next to the logo image in the header. The latest template installation does not have a layouts folder and does not have header.php. Can anyone help me to find where to add in a module position within the header or where I can just insert some custom HTML? Thanks!</blockquote>

    UP! (I have the same question)

    jooservices Friend
    #417012

    <em>@pscc 271895 wrote:</em><blockquote>UP! (I have the same question)</blockquote>
    What’s exactly your question?
    Thanks
    Viet Vu

    pscc Friend
    #417660

    How to add some html next to the logo image in the header (J1.7)?

    jooservices Friend
    #417805

    <em>@pscc 273922 wrote:</em><blockquote>How to add some html next to the logo image in the header (J1.7)?</blockquote>
    Hi
    This thread is owned by another person, not you. Please create a new thread w/ your own question ( and only 1 ) . It should be nice and help us ( also you ) to follow your troubles.
    Thank you
    Viet Vu

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

This topic contains 14 replies, has 8 voices, and was last updated by  jooservices 13 years, 2 months ago.

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