logo-responsive
Welcome, Guest
Username: Password: Remember me

TOPIC: How create a new module position on top of header? (solved)

How create a new module position on top of header? (solved) 7 years 11 months ago #1138

  • chevillardgreg
  • chevillardgreg's Avatar
Good morning:

I'd like to create a new module position on top of the header instead of social media icons. I am using the Brightfuture template and my website is www.curalabgenetics.com

Thank you! ;)


Greg
Last Edit: 7 years 7 months ago by .
The topic has been locked.

How create a new module position on top of header? (solved) 7 years 11 months ago #1153

  • 's Avatar
Hello Greg,

To create a new module position in your templates header please do the following.
Note:This method can be used in all templates from joomlage0054-multiplex to our latest release.

STEP 1
Add the following to the bottom of the nexus.css file located in your templates css folder. You can adjust the left and top values to position the module where you want it in your header.
/* mymodule */
#mymodule {
    left: 800px;
    top: 7px;
    margin: 3px;
    padding: 3px;
    position: absolute;
}

STEP 2
Open the following file header.php which is located in your templates php/layouts/ directory

Add the php code shown below just under the following line of code<div id ="header" class="block_holder">
<?php if ($this->countModules( 'mymodule' )) : ?>
<div id="mymodule" class="block_holder"><div class="module_margin">
    <jdoc:include type="modules" name="mymodule" />
</div></div>
<?php endif; ?>

STEP 3
Note: The new module position will not be listed under the module positions currently available. You have to add it yourself.

To add the new module position please do the following.
In your module manager click on the module you want in your new position. In the template details position field type in the name of the module to create the position mymodule

Click save to save your module.

Thanks,
JohnO
Last Edit: 6 years 6 months ago by JohnO.
The topic has been locked.

How create a new module position on top of header? (solved) 7 years 11 months ago #1164

  • chevillardgreg
  • chevillardgreg's Avatar
Thanks John0 for your reply!
Again, you solved my issue. ;)

Best,


Greg
The topic has been locked.

Re: How create a new module position on top of header? (solved) 7 years 8 months ago #1929

  • Migizi
  • Migizi's Avatar
Great advice, on question tho, how would you get the module position to show up in the positions list? :woohoo:
The topic has been locked.

Re: How create a new module position on top of header? (solved) 7 years 8 months ago #1937

  • 's Avatar
Hello Migizi,

Open the module in the module manager that you want in the new position. Now simply type the name of the position into the module position field.

Thanks,
JohnO
The topic has been locked.
Time to create page: 0.858 seconds
Powered by Kunena Forum

Newsletter




We respect your privacy and do not tolerate spam and will never sell, rent, lease or give away your information (name, email, number, etc.) to any third party. Nor will we send you unsolicited email.

Use code   SEPT20 at checkout

    SEPTEMBER    

10% off Everything!

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.