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
- change the listing type of categories block?
- How to update blog post categories in WordPress?
- Is There a Difference Between Taxonomies and Categories?
- List all subcategories from category
- How To Find Out WordPress Category Table in MYSQL?
- Add custom field to Category
- Get Category ID inside Category template
- Only one category per post
- WordPress Multisite – global categories
- Get the children of the parent category
- Get posts from sites in Multisite?
- WP REST API: filter by category 1 AND category 2
- How To Get Parent Category Slug of Current Post
- Display All Products by Category with WooCommerce
- What is the difference between a “tag” and a “category”?
- Is there an easy way to make a meta box have the tabs like the Categories meta box has?
- How to check if I’m on the last page of posts?
- Display posts from the same category using next/previous post link
- How would I get a taxonomy/category list inside a Gutenberg block?
- Can I set a default featured image for a category?
- Check if a post is in any child category of a parent category
- How to export and import taxonomies (category, tag and/or custom taxonomy) and their terms
- Force category choice before creating new post?
- Gutenberg editor add a custom category as wrapper for custom blocks
- WooCommerce: List All Categories
- How to get category and archive title?
- Get category ID from category slug (not working)
- How do I remove “Uncategorized” from posts with more than 1 category?
- Get rid of WordPress category, tag and author archives?
- Individual rss feed entry length for categories?
- How can I create a category landing page followed by pages of posts?
- Remove parent category from permalink? Basically only have the child category?
- Custom permalink structure leads to be 404 on pagination
- Retrieve Product category ‘NAME’ by product category ID – WooCommerce?
- Posts URL structure like site.com/category/the-post-title
- Can’t custom taxonomies have same terms (slugs) as categories?
- How to get permalinks with category base working with sub-categories
- How to remove the term “category” from category pagination?
- Using wp_category_checklist in a widget
- WP 3.9 TinyMCE no longer loads on category description editor
- On the category page, get the category object
- Get only the top level categories using get_categories() without foreach loop