Category list width

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

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

Open Support Ticket
  • Author
    Posts
  • #503279

    Bonnie Robinson
    Lifetime Member
    Post count: 9

    Hello. I’m having trouble with the category list width. I have a list in the business directory page and they need to be 100% (i did change the css to make it 100%) and this is global, which is not what I want.

    }.geodir-categories-container ul {
    min-width:100%;
    }

    When they show up on the details page the categories are too wide and do not wrap. Help?

    #503297

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    You can use these selectors to target CSS to GD templates:

    https://wpgeodirectory.com/docs-v2/faq/common-examples/#selectors

    Example

    
    
    
    /*GeoDirectory Single Place Detail Listings*/
    body.single-gd_place {
        filter: hue-rotate(120deg);
    }
    

    For what you want to do, you need to target the CSS used on the first page so it doesn’t influence the detail template, so, something like:

    
    
    
    body.page-id-8 .geodir-categories-container ul {
    min-width:100%;
    }
    

    Where 8 is the WP page ID. You can get that by inspecting the page, as described here:
    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