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?
- What’s the URL for a category archive?
- how to use a different domain/subdomain for authors/catagories on single site?
- Category count inside the link
- Is there a way to have duplicate category slugs?
- how to show posts of category random by session
- Remove “Parent” Selection When Adding/Editing Categories?
- Seperate WordPress catagories into sepeat list on seperate pages
- Redirect category to first available child post
- Show post only if match all categories
- How to get product count with respect to categories in WooComerce
- Display WordPress Parent Categories Only?
- Additional featured post on first page
- Displaying a full post instead of a slug per category?
- How do I toggle pagination on/off in search results and category listings via a link?
- get_categories() returns “Uncategorised”
- How to show WordPress parent and child category using a different template?
- How can I get categories IDs if multiple categories requested via URI?
- List categories with custom code
- WordPress for Podcast Network
- Categories widget show empty?
- Exclude a category from a query that includes its parent category
- Count the posts number for every category
- Trying to get variables in hacked category dropdown
- Change of category structure will cause two kinds of URLs for one post
- Portfolio Filter Buttons Wont Work
- Change slug of Standard wp Post category
- ACF no print data [closed]
- Is the part “category” fixed to an URL to an archive or post?
- How can I use AJAX with check-box categories?
- wp_delete_term or wp_delete_category?
- List Categories By Specified First Character
- the category city made as a subdomain
- Displaying Single Product Page Parent and Child Category
- wp_get_post_categories not work currently on loop.php
- Get category base permalink
- Wrong category in URLs accepted like the correct one
- WooCommerce showing active product categories on single product page
- Admin bar default color scheme for nonregistered/nonlogged users
- Style a category page the same way as the homepage?
- Display Taxonomies in loop with template args
- How to assign image on specified category and not show the image on other categories
- Display only the latest post
- Change next_post and previous_link to navigate throught parent categories only
- How to add location as category?