Forum Support

Shape 5
March 28, 2024, 06:54:08 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Add new module position on the top ( main menu )  (Read 420 times)
manonthe
Jr. Member
**
Offline Offline

Posts: 2



« on: April 29, 2014, 03:52:51 AM »

Hello, I have read the tutorial about the Custom Module Positions, but i will need some help.

 First of all my goal is to add the language switcher, where the login/register buttons now are.
I took those steps...

in the index.php file i insert the following code -->
Code:
<div id="s5_header_wrap">

<?php if($s5_pos_logo == "published") { ?>

<div id="s5_logo_module">

<?php s5_module_call('logo','notitle'); ?>

</div>

<?php } else { ?>

<img alt="logo" src="<?php echo $s5_directory_path ?>/images/s5_logo.png" id="s5_logo" onclick="window.document.location.href='<?php echo $LiveSiteUrl ?>'" />

<?php ?>

<?php if ($s5_show_menu == "show") { ?>

<div id="s5_menu_wrap">

<?php include("vertex/s5flex_menu/default.php"); ?>

</div>

<?php ?>


<div id="s5_minemodule">

<?php s5_module_call('s5_minemodule','notitle'); ?> </div>

<?php if (($s5_login  != "") || ($s5_register  != "")) { ?>

<div id="s5_loginreg">

<div id="s5_logregtm">.......

i named my new position "s5_minemodule"..

In the templateDetails.xml i have inserted my new position --> <position>s5_minemodule</position>

and after that i have created custom.css -->
Code:
#s5_minemodule {
position: absolute;
float: right;
margin-left: 700px;
font-weight: 700 !important;
margin-top: 46px;
font-size: 1.1em;
cursor: pointer; }

Because i havent created yet a multilanguage site, for now to see if the code is working, In the admin panel i have createed a custom  module with the name module test and i have inserted just a small text inside...

Now i can see from the code that the elements are been loaded on the site, but i can not see them..

Is there anything else i can do?

here is a link to the site : http://mitsoudis.gr/
« Last Edit: April 29, 2014, 05:25:28 AM by manonthe » Logged
mikenicoll
Global Moderator
*****
Offline Offline

Posts: 20162



WWW
« Reply #1 on: April 29, 2014, 02:22:19 PM »

Hello,

Adding a custom module position is not something we provide support for via the forums. If you followed the video tutorial exactly and modified the index.php, template.css and templatedetails.xml with the coding provided there is not reason it shouldn't be working. Sometimes placing your coding block in an incorrect section of the index.php can cause issues with the display.

-Mike
Logged

Mike Nicoll
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.