Shape 5

General Category => Joomla Talk => : tataye January 29, 2015, 02:57:29 AM



: center menu in vertex
: tataye January 29, 2015, 02:57:29 AM
hello,

i do not find the way to center the menu in vertex

i tried th tip
#s5_nav.menu {
    left: 50% !important;
    position: relative;
}
#s5_menu_wrap {
    float: right;
    position: relative;
    right: 50%;
}

it works sometimes, but sometimes it breaks the view



: Re: center menu in vertex
: jonahh January 29, 2015, 12:14:16 PM
Hello,

Can you post a URL of this broken?


: Re: center menu in vertex
: tataye January 29, 2015, 02:22:31 PM
thanks,

http://tripup.fr/new/fr/

it is a test for a migration one


: Re: center menu in vertex
: jonahh January 30, 2015, 01:35:03 PM
Thanks, can you explain a bit more by what you mean on breaking the view?  It shows fine for me although at a smaller resolution the menu does start going into the social icons which would need to be fixed by some CSS placed in the s5_responsive.css file.


: Re: center menu in vertex
: tataye January 30, 2015, 02:33:09 PM
Thanks, can you explain a bit more by what you mean on breaking the view?  It shows fine for me although at a smaller resolution the menu does start going into the social icons which would need to be fixed by some CSS placed in the s5_responsive.css file.
thanks

so : it works as well as it can, but if i go inside the site, it is awful
and i have this problem with social icons as you saw


: Re: center menu in vertex
: mikenicoll January 30, 2015, 07:19:58 PM
Hello,

This type of change requires custom programming which isn't something we support via the forums. I would suggest reviewing the structure of a Template we provide that already has a centered menu such as Zoka Transports or Modern Flavor. You will most likely have to wrap the menu div with another inner div inside for this to work. You will also have to incorporate the social icon block into the menu itself as moving it with CSS will cause collision as you can see.

If you require custom coding support we have the Hire a Coder section that can assist you with directly writing or modifying the core code of the Template to suit your needs.


: Re: center menu in vertex
: tataye January 31, 2015, 12:24:09 AM
ok,
that is why i asked it there.
i can code a little
but if it is hard, i will choose another menu module.

nevermind , i thought someone has already do that

thanks again


: Re: center menu in vertex
: tataye January 31, 2015, 04:13:11 AM
solved, i didi it
in index.php :
:
<div id="s5_menu_wrap">
<?php if ($s5_show_menu == "show") { ?>
<?php include("vertex/s5flex_menu/default.php"); ?>
<?php ?>
<?php if($s5_pos_search == "published") { ?>
<div id="s5_search">
<?php s5_module_call('search','notitle'); ?>
</div>
<?php ?>
<div style="clear:both; height:0px"></div>
</div>

changed into :

:
<div id="s5_menu_wrap"><div id="menucontainer">
<?php if ($s5_show_menu == "show") { ?>
<?php include("vertex/s5flex_menu/default.php"); ?>
<?php ?></div>
<?php if($s5_pos_search == "published") { ?>
<div id="s5_search">
<?php s5_module_call('search','notitle'); ?>
</div>
<?php ?>
<div style="clear:both; height:0px"></div>
</div>

and modifed the css lines to center the good div


: Re: center menu in vertex
: mikenicoll January 31, 2015, 05:35:09 PM
Alright glad you got it changed.

Thanks for posting your changes.