Jump to content

Change layout of header


Recommended Posts

Hi,

 

I have an issue with my menu, I am using a theme that I bought off Joommasters, but the menu will not allow me to add the items I need without generating a second menu line.

 

If I look at the layout of the menu bar, I can see it is full width, and has 3 columns. I can solve my problem by making the third column one grid unit smaller, and the the second column one grid unit wider.

 

But I have no idea where to do this. I can obviously do it with firebug, and it looks fine, but how do you go about finding the file that generates the layout to make the modification permanent?

<div class="header-position main-logo col-lg-2 col-sm-2 col-md-12 col-xs-12">
<div class="header-position topnav col-lg-7 col-sm-8 col-md-8 col-xs-12">
<div class="header-position right-column-menu col-lg-3 col-sm-2 col-md-6 col-xs-6">

on the second line I would like to change col-lg-7 to col-lg-8

and on the third line I would like to change col-lg-3 to col-lg-2

 

Any ideas?

 

Regards,

Dave.

 

Link to comment
Share on other sites

so the themes folder, can you do a recursive search on it? That's how I handle stuff I can't find.

If you search your project folder for "class="header-position" surely something will come up.

Link to comment
Share on other sites

Thanks Akhenaten!

 

I narrowed my search terms and got a hit on a file, that does indeed determine the layout of the header ("jmsthemelayout" would you believe!)

 

on inspection the column widths are not fixed, apparently they are stored in the database? or calculated on the fly? does anyone know how this works?

<div class="header-row row {if $row.fullwidth == 1}fullwidth{/if}">
{foreach from=$row.positions item=position}
<div class="header-position {$position.class_suffix|escape:''} col-lg-{$position.col_lg|escape:''} col-sm-{$position.col_sm|escape:''} col-md-{$position.col_md|escape:''} col-xs-{$position.col_xs|escape:''}">

I searched the database, but found no occurrences of the above variables

 

where are those variables populated?

 

Regards,

Dave.

Link to comment
Share on other sites

Yep there's probably some theme-specific configuration? Best ask for support with the developers of the theme in that case :/

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...