Category Template

Posted in: Newspaper
Post count: 14

Hello!
In all category page template sidebar starts below category description. I want to display sidebar from top of page. In Newspaper 8 version I add below mentioned CSS code in theme panel to change it:

.td_category_template_1 .td-category-header, .td_category_template_1 .td-category-header .td-container, .td_category_template_1 .td-category-description {
width: 100%;
}

.td_category_template_1 .td-main-sidebar {
padding-top: 48px;

The code was working fine with version 8 but unfortunately it is not working after upgradation to version 8.6.

Please advise how can I do this?
Thanks,
With regards,
Osnak

  • This topic was modified 8 years by Osnak.
Post count: 20688

Hi,

I don’t quite understand what that the end result would be. Using it on a category page with category template 1 provides this result
https://www.screencast.com/t/2cOKdWskkUhR
The code sets the width for the category header and description containers to 100%, it seems to work if that is what you want to do.

Thanks

Post count: 14

Hello,
Actually with above mentioned code I get the following result. But this code is not working after upgradation to V8.6.
Please look the result.
https://www.screencast.com/t/53uagjE5O

Please advise how can I do this?
Thanks,
With regards,
Osnak

Post count: 20688

Hi,

The code mentions category template 1, which looks like this
https://www.screencast.com/t/vXbV3Jd7xK04
Or like this with the top grid disabled
https://www.screencast.com/t/XRRkEMx87YmQ
Applying that code will first stretch the category header to full width, and also set a padding top for the sidebar
https://www.screencast.com/t/cjy87ddY
That is all it can do. I think I know what you want to do however, but it could prove tot be difficult. The category header and the sidebar belong to different containers, so even if you would set a custom width to the header, something like this
https://www.screencast.com/t/XUlyy7KHz
The sidebar will not go up, it is applied to the post loop below and will appear accordingly. You could force it higher
https://www.screencast.com/t/NTEY3UHthyd
But that will cause responsive issue most likely. This will have to be made only for desktop (Theme panel->Advanced CSS desktop section)
The code I used is this one, you can experiment further if you wish. There could be a different solution maybe you can find it

.td_category_template_1 .td-category-header .td-container {
width: 696px;
margin-left:48px;
}
.td_category_template_1 .td-main-sidebar {
top:-170px;
}

Thanks

Post count: 14

Hello!
The above mentioned code is not working! I want end result like this of category page :
http://www.screencast.com/t/53uagjE5O. I get this result using the code mentioned below in Version 8 :
.td_category_template_1 .td-category-header, .td_category_template_1 .td-category-header .td-container, .td_category_template_1 .td-category-description {
width: 100%;
}

.td_category_template_1 .td-main-sidebar {
padding-top: 48px;

This code is now not working and also the code you suggested is not working.

Please Help.

Osnak

Post count: 20688

Hi,

If you want that result, you will have to experiment with custom code. Only through modifications you can achieve that result. The category templates are predefined, and they will always look as they are supposed to.

Use the browser inspector to create your own code and modify the elements you want
https://forum.tagdiv.com/create-custom-code-using-the-browsers-inspector/

Thanks

Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Newspaper’ is closed to new topics and replies.