widget spacing

This topic contains 1 reply, has 2 voices, and was last updated by  Alex Rollin 6 years, 5 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #436661

    bernieportal
    Expired Member
    Post count: 108

    Is there a way to add vertical spacing above the right sidebar widget only on the homepage? I added 300 px of top padding above my sidebar widget using the css script box in GeoDirectory but it added padding to the sidebar on every page, and I only want it on my GD homepage. So, how do I edit widgets on a per page basis?

    #436702

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    please share a link to the page so we can try to help with that.

    In general, ‘special’ pages like the home page or a category listing page will have a body class that can be used to target CSS to a specific page. This isn’t always the case, but for GD pages it is.

    What CSS is required, though, depends on the page.

    As an example, this will target a widget on the home page when using the Supreme theme:

    
    
    
    .sd.home .widget {
        display: none !important;
    }
    

    For more about custom CSS see: https://wpgeodirectory.com/docs/customizing-your-style/

Viewing 2 posts - 1 through 2 (of 2 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount