WordPress.org

Support

Support » Themes and Templates » [Resolved] Height limit of sliders

[Resolved] Height limit of sliders

  • questas_admin
    Participant

    @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)
  • Theme Author nikeo
    Participant

    @nikeo

    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

    rdellconsulting
    Participant

    @rdellconsulting

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

    questas_admin
    Participant

    @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 ‘[Resolved] Height limit of sliders’ is closed to new replies.