• Resolved jjbte

    (@jjbte)


    I’m just starting to set up a new site with this theme. I like it so far for the most part.

    There is one pretty serious issue, though. I noticed whenever I open a category archive, my widgets get all wonky. I investigated and found that you have .category li set to float left (page 2779 of style.css).

    This causes ALL li tags to float left on category archives because WordPress attaches the “category” class to the body tag of all category archives. So using .category as a class name for anything else isn’t really a good idea.

    Could you please rename this class? Besides style.css, I found only two templates that would be affected by this change: bookrev_latest_reviews_block_template.php (line 109) and bookrev_feat_carousel_template.php (line 77).

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    The new update we just released, should fix this. Could you please check if everything is ok now?

    Thank you,
    Rodica

    Thread Starter jjbte

    (@jjbte)

    The sidebar widgets look as they should on all pages now, but some footer widgets are still messed up on Category pages (any footer widgets that include lists, such as custom menus).

    The following code in style.css (line 2781) is causing this issue on Category pages:

    .categ ul.post-categories li, .category li {
      float: left;
    }

    I noticed you fixed the sidebar widgets issue by adding the following code:

    #main-sidebar li {
    	float:none;
    }

    I strongly believe a better fix would be to get rid of the category class altogether (it only affects two templates as stated in my original post). Knowing how WordPress works (adds category class to body tag of all Category pages), adding your own category class for any other purpose is just a bad idea since it potentially affects all Category pages (as demonstrated in this case by the footer widgets issue).

    Alexandra

    (@alexandrastan001)

    Hello,

    Thank you for letting us know. We will fix it in a future update.

    Best regards,
    Alexandra

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘CSS .category class causing widget issues for category archives’ is closed to new replies.