• Resolved Marj Wyatt

    (@marjwyatt)


    First of all, @billerickson, thanks for this and the other great code you’ve shared with the WordPress/Genesis community.

    With this particular plugin, however, I have a problem.

    I have version 1.1 of this plugin installed. When it is activated, it also puts the body class into the sidebar featured post widget. This is not desirable.

    I’ve played around with adding is_active_sidebar() to no avail.

    How can we keep the Grid Loop Plugin from assigning body classes to sidebar widgets?

    http://wordpress.org/plugins/genesis-grid-loop/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Bill Erickson

    (@billerickson)

    This is actually an issue with Genesis’ Featured Posts widget, not with this plugin. Genesis is (incorrectly) overriding the main $wp_query in the sidebar. This tells WordPress that it’s the main loop, and since my plugin is designed to affect the main loop, it affects this widget as well.

    The best option is to just not use that widget. It will most likely be removed from Genesis at some point (with a fallback plugin for people who still use it). If you must use it, you can get around this issue by adding this to your CSS:

    .featuredpost one-half { margin-left: 0; width: 100%; float: none; }

    I’m posting this in the Genesis development area so it might get fixed in a future version of Genesis

    Thread Starter Marj Wyatt

    (@marjwyatt)

    Hi Bill,

    Thanks for your reply.

    I wound up adding this code to the style sheet to overcome the issue:

    #sidebar .entry { display: block; vertical-align:top; width:100%; padding:1.25%; margin:1.25%; }

    I’m really only using your plugin for custom post type archives on that development and found another method for producing grid archives for the other content.

    Thanks for posting the problem to the Genesis development area though. Many clients of mine want the featured post widget on their site and, while I could craft custom code to do that, using a built-in widget saves time.

    hi bill,

    I saw your post about limiting to a specific category, but it looked to me like it was set up to EXCLUDE a specific category.

    http://www.billerickson.net/code/limit-genesis-grid-to-specific-category/

    I really am not a developer, but I just switched the $display = false; to $display = true; (and vice-versa below it)

    thought this would work but it did not. any ideas??

    Thread Starter Marj Wyatt

    (@marjwyatt)

    I’m not Bill Erickson but he recommended something along the lines of what I did that actually worked. That was to isolate the CSS classes and make those widths 100% instead of one-fourth.

    If you are using Genesis, @granatdesign, either my CSS code (or Bill’s) above should work for you.

    Bill said he planned to submit the issue to the Genesis development area but who knows where a solution would fit into their priorities. In the meantime, try the CSS method. I found that to work for me before Bill’s reply. 🙂

    thanks, Marj!

    for some reason, Bill’s code didn’t work; then I realized there was a period left out of “one-half”

    thank you both!

    note: I’m still wondering if there is a simple function that you can use to limit the grid. It seems like Bill’s exclude could easily be mad for just a simple INCLUDE.

    but I’m not a developer… 🙁

    Glad I found this thread! Great plugin, but yes, it conflicts with the Genesis Featured Post widget (or vice versa). Like @grantdesign said, the CSS should be:
    .featuredpost .one-half { margin-left: 0; width: 100%; float: none; }

    …or in my case with three columns, I did:
    .featuredpost .one-third { margin-left: 0; width: 100%; float: none; }

    It is such a powerful widget…hate to see it disappear (mostly cause then I’ll have to do the hard work of querying for featured images, etc).

    Thanks again, Bill for this plugin (and your code snippets which Google leads me to often).

    Plugin Author Bill Erickson

    (@billerickson)

    I continue to ask StudioPress to fix the widget, but it hasn’t happened yet. There’s currently a discussion about some small changes for HTML5 in the widget and I’m hoping this change can slide in there too.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘disable grid loop class for sidebar widgets’ is closed to new replies.