Marcusen Posted January 10, 2015 Share Posted January 10, 2015 (edited) Hi, I'd like to move the category title, image and description above the left and center columns, preferably inside the TopColumn area. Here's a sample of what I want to get: I've messed around with the category.tpl and header.tpl files, but I can't move code (specially the $category string) between the two without breaking the website. The website is: http://bridaling.com/en/4-bridal Thanks! Edited January 10, 2015 by Marcusen (see edit history) Link to comment Share on other sites More sharing options...
LuckyModule Posted January 10, 2015 Share Posted January 10, 2015 Hi, I'd like to move the category title, image and description above the left and center columns, preferably inside the TopColumn area. Here's a sample of what I want to get: I've messed around with the category.tpl and header.tpl files, but I can't move code (specially the $category string) between the two without breaking the website. The website is: http://bridaling.com/en/4-bridal Thanks! Add this code in file - global.js $(document).ready(function(){ $('div.content_scene_cat').insertAfter('#slider_row'); }); Link to comment Share on other sites More sharing options...
vekia Posted January 10, 2015 Share Posted January 10, 2015 it's a case of theme modification. huge modification. in this case you will have to alter the way of how theme works. for example, whole logic related to category pages are stored in categoryController.php file and it uses category.tpl file to move banner above the columns you will have to move logic from category controller to front controller and add the code of the banner to header.tpl file (with if conditions to check if customer is currently viewing category page etc.) or just use workaround as webtet suggested Link to comment Share on other sites More sharing options...
Marcusen Posted January 10, 2015 Author Share Posted January 10, 2015 Add this code in file - global.js $(document).ready(function(){ $('div.content_scene_cat').insertAfter('#slider_row'); }); Thanks! It works great, even if its a workaround. Could it present any future problems? I simply added a class (.category-move) on the elements I wanted to move. it's a case of theme modification. huge modification. in this case you will have to alter the way of how theme works. for example, whole logic related to category pages are stored in categoryController.php file and it uses category.tpl file to move banner above the columns you will have to move logic from category controller to front controller and add the code of the banner to header.tpl file (with if conditions to check if customer is currently viewing category page etc.) or just use workaround as webtet suggested Yep, I suspected it would require quite a bit of modification, luckily Webtet's solutions seems to fit. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now