Search Form and Social Buttons

HotThemes Logo and Top Menu

To request a forum account, please login here and open support ticket. Only customers with active order(s) can open forum account!

× Discussion about "Sportal" Joomla template.

Topic-icon Would like for content - left -right columns even

  • trey-braid
  • trey-braid's Avatar Topic Author
  • Visitor
  • Visitor
7 years 2 weeks ago #2734 by trey-braid
trey-braid created the topic: Would like for content - left -right columns even
Is this possible for this template... would like for all the columns to be equal heights no matter what--instead of being dependent upon content and staggered... if so what would I need to edit...

...right now if right column has the most content it extends down the page leaving a gap where the left and main content area are...

My URL: www.govenom.com - please scroll down and you will see what I am talking about...
Attachments:

Please Log in to join the conversation.

More
7 years 2 weeks ago - 7 years 2 weeks ago #2738 by milos
milos replied the topic: Re: Would like for content - left -right columns even
Please unzip and upload attached script to /js directory of the template.

Before </head> tag of index.php file of the template, add this code:
<!-- equal heights -->
<script type="text/javascript" src="<?php echo $template_path ?>/js/equal_heights.js"></script>
<script type="text/javascript">
window.onload = function() {
    BoxHeights.equalise('content_wrap','column_left','column_right');
}
</script>

Also, inside all CSS files (and template_css.php file) you will need to change .content_wrap to #content_wrap (same for column_left and column_right).

In index.php of the template, change class="content_wrap" to id="content_wrap" (same for column_left and column_right).

File Attachment:

File Name: equal_heights.zip
File Size:0 KB
Attachments:
Last Edit: 7 years 2 weeks ago by milos.

Please Log in to join the conversation.

  • trey-braid
  • trey-braid's Avatar Topic Author
  • Visitor
  • Visitor
7 years 2 weeks ago #2739 by trey-braid
trey-braid replied the topic: Re: Would like for content - left -right columns even
Milos thanks... I've gone in and changed all the reference's to main content, left and right... can you take a quick look at the docs and let me know if I did this right?

I've also unzipped the JS file to the JS Folder - thanks!!!

I am not able to find the reference in the Index.php-- where is the reference at? can you please help me out real quick...


Trey

...see attached.

File Attachment:

File Name: Equal_Heig...iles.zip
File Size:8 KB
Attachments:

Please Log in to join the conversation.

More
7 years 2 weeks ago #2740 by milos
milos replied the topic: Re: Would like for content - left -right columns even
I am sorry, it's not in index.php file. Please find the 3 files in /inc directory of the template. All references are there.

Please Log in to join the conversation.

  • trey-braid
  • trey-braid's Avatar Topic Author
  • Visitor
  • Visitor
7 years 2 weeks ago #2741 by trey-braid
trey-braid replied the topic: Re: Would like for content - left -right columns even
Ok so I change this right?

line 1 of col_main file <div id="content_wrap">

line 2 of col_right file <div id="column_right">

line 2 of col_left file <div id="column_left">

...do I need to change anything else in these 3 file's or just the script on these line's...

Trey

Please Log in to join the conversation.

More
7 years 2 weeks ago #2742 by milos
milos replied the topic: Re: Would like for content - left -right columns even
In those 3 files you change, in example:

<div class="column_left">

with

<div id="column_left">

Also, do all the rest that I explained above. Keep backups of all files if you fail to do this modification.

Please Log in to join the conversation.

Time to create page: 0.147 seconds

Links, Partners and Social Media