WordPress.org

Forums

Customizr
[resolved] Height limit of sliders (4 posts)

  1. questas_admin
    Member
    Posted 2 years ago #

    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;
    }

  2. nikeo
    Member
    Theme Author

    Posted 2 years ago #

    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

  3. rdellconsulting
    Member
    Posted 2 years ago #

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

  4. questas_admin
    Member
    Posted 2 years ago #

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

    Thanks again, that worked.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.