WordPress.org

Forums

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

  1. questas_admin
    Member
    Posted 11 months 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 11 months 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 11 months ago #

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

  4. questas_admin
    Member
    Posted 11 months 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.

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.