ZikmaSolutions Posted June 12, 2014 Share Posted June 12, 2014 SIte: www.computers.rsVersion: Prestashop 1.5.4.0When i change global.css width on centercolumn 980px, on homepage left colmumn goes down, and center column go too 980px How to make change only for #center_column only on product page ?! Link to comment Share on other sites More sharing options...
Carolina Custom Designs Posted June 12, 2014 Share Posted June 12, 2014 Are you planning to hide the left column on the product page? If not, you will face the same result as you did on the homepage. Marty Shue Link to comment Share on other sites More sharing options...
ZikmaSolutions Posted June 12, 2014 Author Share Posted June 12, 2014 (edited) I just want to hide "KATEGORIJE" column from product-page, and make center-column full width 980px.But, i want this changes only on product page!THIS COLUMN ON LEFT SIDE ON PRODUCT PAGE IS CALLED: right_column Edited June 12, 2014 by ZikmaSolutions (see edit history) Link to comment Share on other sites More sharing options...
ZikmaSolutions Posted June 13, 2014 Author Share Posted June 13, 2014 vekia help. bump. Link to comment Share on other sites More sharing options...
dioniz Posted June 13, 2014 Share Posted June 13, 2014 You need to wrap your right column in if statement something like this: {if $page_name != 'product'} <div id="right_column" class="column"> {$HOOK_RIGHT_COLUMN} </div> {/if} Don't know where is this code in your custom template but it should be in header.tpl or footer.tpl 1 Link to comment Share on other sites More sharing options...
ZikmaSolutions Posted June 13, 2014 Author Share Posted June 13, 2014 When i remove right column i remove it from all pages... I need to remove right column only on product page Link to comment Share on other sites More sharing options...
dioniz Posted June 13, 2014 Share Posted June 13, 2014 Don't remove it. That code means if page is not product, then show right column. Link to comment Share on other sites More sharing options...
ZikmaSolutions Posted June 13, 2014 Author Share Posted June 13, 2014 (edited) Okay i removed column from product page! Now i need to change width for center colum ONLY ON PRODUCT PAGE! EDIT: I add your code ... and now right colum is removed... I need to change center column width only on product page... Edited June 13, 2014 by ZikmaSolutions (see edit history) Link to comment Share on other sites More sharing options...
dioniz Posted June 13, 2014 Share Posted June 13, 2014 There's no need to YELL, cause we are not in a mill! Make new code in product.css or global.css and put this in: #product #center_column{ width:980px; (or whatever you need) } 1 Link to comment Share on other sites More sharing options...
Carolina Custom Designs Posted June 13, 2014 Share Posted June 13, 2014 You may also want to adjust #primary_block #pb-left-column (global.css line 1361)once you get the center column full width. Marty Shue 1 Link to comment Share on other sites More sharing options...
ZikmaSolutions Posted June 13, 2014 Author Share Posted June 13, 2014 (edited) http://www.computers.rs/laptop-racunar/18096-asus-x551ma-sx030d-15-6-intel-celeron-n2815-4gb-500gb-intel-hd.htmlIts work ,but i have some problem with css in top menu and header... Please look at site...@Carolina on 1361 line i have send to friend css.... Edited June 13, 2014 by ZikmaSolutions (see edit history) Link to comment Share on other sites More sharing options...
ZikmaSolutions Posted June 13, 2014 Author Share Posted June 13, 2014 Okay i changed #primary_block #pb-left-column some margins and its good now!GJ guys and sry for my capslook! CHEERS Link to comment Share on other sites More sharing options...
ZikmaSolutions Posted June 13, 2014 Author Share Posted June 13, 2014 Thanks again and u deserve + 1 Link to comment Share on other sites More sharing options...
Carolina Custom Designs Posted June 13, 2014 Share Posted June 13, 2014 Glad you got it sorted. Dioniz did the heavy lifting. At any rate, you are welcome. Marty Shue Link to comment Share on other sites More sharing options...
Recommended Posts