Remove gap between header and posts in Category pages

Hello,

I’ve created a secondary blog page on my website using categories (http://www.aliazizcolok.com/category/blog/)

On that page there’s a gap between the header and posts. I used some code to eliminate that gap on my front page but obviously it does not apply to the category pages. What can i do to get rid of that gap and level the posts with the sidebar?

Also is there any way to rename the url from www.aliazizcolok.com/category/blog/ to www.aliazizcolok.com/blog/ ?

Thank you.

Hi @aliazizcolok,

I hope you are well today and thank you for your question.

On that page there’s a gap between the header and posts. I used some code to eliminate that gap on my front page but obviously it does not apply to the category pages. What can i do to get rid of that gap and level the posts with the sidebar?
You can remove this gap from category archive pages by adding the following CSS code in the Custom CSS option of your theme on the below path.

Admin Area -> Apperance -> Theme Options -> Other -> Custom CSS


body.archive.category .page-header {
  margin: 0;
}
Also is there any way to rename the url from http://www.aliazizcolok.com/category/blog/ to http://www.aliazizcolok.com/blog/ ?

You can try removing the category slug from category page URL using any of the following solutions.

Best Regards,
Movin

Thank you for your answer movin. Both worked perfectly :slight_smile: Have a great day!

You are most welcome here :slight_smile: