Jump to content

Move category title above the left and center columns


Recommended Posts

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:

 

post-859187-0-92754000-1420849534_thumb.jpg

 

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!

post-859187-0-92754000-1420849534_thumb.jpg

Edited by Marcusen (see edit history)
Link to comment
Share on other sites

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

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

 

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

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