Supreme Directory: Disable parallax on listings

This topic contains 3 replies, has 2 voices, and was last updated by  Alex Rollin 7 years, 2 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #414403

    Michael Roed
    Expired Member
    Post count: 14

    Hello.
    Is it possible to disable the parallax effect on all listings so it only works on the front page? If not how can I disable this on all header images?
    Thanks.

    #414454

    Alex Rollin
    Moderator
    Post count: 27815

    Hello Michael,

    Thanks for writing in today.

    Yes, it is possible to disable the parallax effect in Supreme Directory child theme by customizing your style.

    Each page type has a CSS body class, so you can target this as needed:

    This is the main CSS that makes it work:

    
    
    
    .featured-img {
        background-position: 50% 50% !important;
    }
    

    This is targeted at the single page for a gd_place:

    
    
    
    .single-gd_place .featured-img {
        background-position: 50% 50% !important;
    }
    

    This is targeted more widely at any CPT for a single page:

    
    
    
    .single .featured-img {
        background-position: 50% 50% !important;
    }
    

    For more information about customizing your style as well as how to add custom CSS to your site, please see the related links below.

    Links
    https://wpgeodirectory.com/docs/customizing-your-style/
    https://wpgeodirectory.com/docs/common-styling-examples/

    Hope that helps 🙂

    Alex

    Automatic Updates are Awesome! Get yours setup today!
    GD Experts help site owners reach their goals faster

    #414474

    Michael Roed
    Expired Member
    Post count: 14

    Great Alex.
    That’s exactly what I needed to know.

    Thank you!

    #414486

    Alex Rollin
    Moderator
    Post count: 27815
    This reply has been marked as private.
Viewing 4 posts - 1 through 4 (of 4 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