Jump to content

How can I define "widthColumn" manually?


Recommended Posts

I have many catagories that make the footer too long.  I decided to make the catagories in the footer two columns.  However, I noticed that the width of the catagories block was unchanged.  This make the two columns look very close together.

I need to double the size of the catagories block, so it looks natural compared with the other columns in the footer, such as information, my account, contact us (I deleted social media column).

I believe the answer party lies in blockcatagories_footer.tpl:

 

<div class="category_footer" style="float:left;clear:none;width:{$widthColumn}%">

 

I cannot find where $widthColumn is defined.  Does anyone know?  Thank you.

Link to comment
Share on other sites

Good morning

 

Have you had a look in 

 

public_html/Your Shop/themes/default/css/global.css

 

Around line 575

 

/* ************************************************************************************************

FOOTER
************************************************************************************************ */
#footer {
color:#fff;
background:#333;
}
.blockcategories_footer,
#footer .myaccount ,
#block_various_links_footer,
#social_block,
#block_contact_infos {
float:left;
width:175px
}
.blockcategories_footer {margin-left:0}                                            
#footer .title_block {
padding-bottom: 10px;
text-transform:uppercase
}
 
Paul
  • Like 1
Link to comment
Share on other sites

Thank you my friend.  I feel this will be a good solution.  However, there is one thing I would like to make it better if I can.

 

It appears that modifying that width variable changes the width of all columns: "cagatories" (good), but also "information", "my account", "contact us" (bad).

My goal, if possible, is to give each column equal width.  Thus, I would like to give catagories (two colums) 350px, information 175px, my account 175px, and contact us 175px.

I suspect I need to duplicate "block_contact_infos" and rename one entry to "block_contact_infos_wide", then change width in "block_contact_infos_wide" to 350px.  That is easy for me, however, I do not know which php or tpl file invokes "block_contact_infos", so I can make the catagories use ""block_contact_infos_wide" instead of ""block_contact_infos". 

I hope I my goal is clear?

Link to comment
Share on other sites

Hello, I am curious does no one know or is it confusing?

I am thinking about how to make "catagories" in footer twice as wide as the other columns in the footer.

Because I split "catagories" into two columns, since it has many items.

If you can help me thank you!!

Link to comment
Share on other sites

Hello again

I think perhaps that members may not know.

Personally I do not think that Prestashop handles categories in the footer very well.

My preference would not show them at all, I mean, if they are in the header and/or left/right column then why show them in the footer.

After saying that have you looked at Leo advanced footer in the free modules forum

 

Paul

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...