Support » Theme: Customizr » Height limit of sliders

  • Resolved David_G

    (@questas_admin)


    If I use the following code to limit height of sliders for individual pages, what should I put to do the same thing for sliders in catagories?

    would it be .catagory instead of .page-id?

    I am using the snippet “displaying-a-slider-in-your-category-pages”

    .page-id-41 .carousel .item {
    line-height: 50px;
    overflow: hidden;
    min-height: 161px;
    }

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @questas_admin,
    the WordPress body_class() (which is included in the Customizr theme) provides many contextual CSS classes for this purpose.
    For the categories, you can use :

      .archive
      .category
      .category-[category-slug]
      .category-[category-id]

    Hope this helps

    And note the spelling of catEgory. Saw someone else make that mistake this week.

    David_G

    (@questas_admin)

    I guess I wont be winning the game “Are You Smarter than a 5th Grader”
    Time to learn to spell.

    Thanks again, that worked.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Height limit of sliders’ is closed to new replies.