You are using body_class() in your template already, so your home page has a class home on the body element.
Restrict the margin rule in your stylesheet by using that class:
.home #secondary {
margin-top: 20px;
}
Related Posts:
- How to create an automatic MultiColoumn MegaMenu with Categories WordPress
- 404 Error On Category and Tags Pages
- Create a full width responsive header image per page
- Block multiple categories from Blog
- Remove “Category Archives: title” at the top of a category page [duplicate]
- Hide post meta data on a specific category
- If newest post of category is newest post in general, skip first post of category
- Different excerpt styles per category, but chronological
- How to create button to direct to certain category
- WordPress Genesis not excluding category from blog
- Highlight wp_nav_menu when category is selected
- Category location styling
- Hide woocommerce category name from specific pages
- Hide woocommerce category name from specific pages
- Different post styles depending on category
- Putting a Category of posts under a Page
- Style category link depending on category ID
- Inside a loop, how to change CSS class based on category name?
- how to “not” display new posts with a specific category on the main page?
- Why do I have stray bullet from
- How to add custom color fields to the category edit page?
- Functions.php: Exclude Category from “Blog”
- How can I display tags as categories?
- Display content from a specific category using cat ID not working
- Different CSS class by category
- Category page not showing
- Simple way to style posts of a single category differently in the loop and in single
- Remove Archive | from Categories
- Display subcategories in dropdown
- Hide a category of posts from main blog, and only show in category view
- Add code to header based on category for specific posts?
- Use blog as base for tags and categories
- Custom css per category and per single post belong in each category
- Show Secondary Sidebar on Category pages (archive)
- Rebuilding a Site: How to Show Several Category Posts in Woo Framework Theme?
- How to get sub-categories to display same look as there parents
- excude a specidic category from showing in the “relative posts”
- Category post count is not correct
- category description not showing in my woocommerce
- How to create category filter on a blog like on the site below?
- Inline If statement to echo CSS [closed]
- Blog page with posts from specific categories
- Is it possible to set up blog categories without changing permalink structure
- How to “remove” WordPress categories UL and make the list loop in a horizontal line?
- Redirect Category pages to blog page with query string
- Read More showing only on first post
- List post categories that link to a page showing those posts
- Custom CSS to resize elements in multiple categories
- Pages, Categories, and working with someone else’s code
- Multiple Categories under one URL, where ‘Front Page’ is used already
- Restricting certain blog posts by date?
- Custom Woocommerce Category view
- Broken category styling
- How can i hide the authors box from a specific set of categories and post types?
- How to prevent page re-sizing for mobile browsers [closed]
- How to hide my categories pages’ names, and how as well to reduce the space beween my sidebar’s widgets?
- How can I get the categories and subcategories separately?
- Elementor : display only one category in loop grid
- How to update blog post categories in WordPress?
- exclude category from get_posts?
- How can I reduce the number of database query calls for this custom homepage?
- How to convert regular categories to custom taxonomy?
- What could be causing my wp_query pagination to break?
- Return array of categories to php function
- Alphabetically ordered category list
- Does WordPress Offer a Way to Find All of the Categories that Don’t Have Children?
- Custom Stylings for category pages
- Taxonomies for WordPress Media Library [duplicate]
- Bulk category update is not updating
- How to enable category hierarchy for links?
- WC 3.x Get categories from variable product of the cart
- Stick multiple posts in a single category
- Automatically adding categories and authors in custom menu?
- Second level subcategory
- Checkboxes in the category list?
- Automatically exclude categories from metabox based on title
- How to display post categories within the Latest Posts block?
- Use Tag input metabox style for Categories
- Page display certain Category Posts
- Where is the category of a post stored?
- Add image to each podcast series (or category) in headless WordPress instance [closed]
- How to define multi categories posts number
- Trying to get variables in hacked category dropdown
- Insert HTML content in WP Query at specific point
- Get posts of a custom post type from category from taxonomy?
- How can I ask to an existing category?
- Change categories count to include media attachments
- How to Sync Menu, Widgets and other masters from Main Website to its Sub Site
- How to store category and tags separatly on wordpress?
- wp_delete_term or wp_delete_category?
- WooCommerce showing active product categories on single product page
- how to exclude specific category types (uncategorized) from blog page?
- Admin bar default color scheme for nonregistered/nonlogged users
- Lines of CSS only being delivered while logged in
- Confused about category.php template – not working
- How to assign image on specified category and not show the image on other categories
- How can I add a Categories page link to a menu? [closed]
- get posts from 2 categories. (2 posts)
- Converting Categories (with ACF fields) to custom taxonomies
- Category and tags are not working properly