• Resolved Teratoma

    (@teratoma)


    I’m currently using Atahualpa as a theme and love the way I have the sidebar formatted to appear to be one of the masonry columns. I’m even using the shortcode in the sidebar to give balance to the layout.

    This is just a workaround though. What I’d love to be able to do is have the left sidebar widgets be INSIDE the first column, with the first post thumbnail appearing directly underneath the last bit of widget content. Flushed to the left of the container along with the widgets, of course.

    You can see this visually, but not functionally, at my link: https://OfficialKevinByrd.com

    Perhaps a future release could have [left_sidebar=”true”] as a means of including sidebar content this way? Or perhaps I’m the only one who thinks this would be neat.

    Of course this would only work in themes that allow for sidebars to be turned off.

    Is there a simpler way anyone could think of to achieve this?

    Thanks for the great plug-in!

    https://www.ads-software.com/plugins/masonry-post-gallery/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author cactus.cloud

    (@bortpress)

    Hey,

    Unfortunately, it’s just not that easy. As you have probably realized, the gallery exists as a box, and so, it’s shape cannot change. This is a limitation of the plugin, but it is unavoidable.

    There are a couple of easier ways you may be able to cheat the effect you are after.

    You could float the non-images over some dummy images (but that could be problematic). You could set a large top margin on the first element in the gallery to make it seem larger to the gallery than it is, and thus cause the gallery contents to sit around the non-gallery contents. That may work. If I had more time available right now I’d test it out before sending that advice – but I’m a little stuck for time right now.

    To place non-images into the gallery at a code level would be a lot of work, and essentially require a full rewrite to produce a scalable, documented, user friendly product. Without testing, I don’t even know whether it would work properly at all.

    Sorry I couldn’t be more help at this stage, but tell me how you go.

    Plugin Author cactus.cloud

    (@bortpress)

    Hey, here is some CSS to set a margin on the first element. You will have to use CSS to cause the other elements you are adding to float over the gallery – this could merely help you with the layout by offsetting the first element vertically.

    You will need to know the absolute value you want to offset the first element of the gallery for this. You will also have to ensure that the widgets and gallery item widths match. As I can see your using absolute widths, that probably won’t be too hard.

    div.masonry_brick:first-of-type
    {
    margin-top: /*YOUR AMOUNT*/px !important;
    }

    I hope this helps

    Thread Starter Teratoma

    (@teratoma)

    I sent you an email through your site after poking around and understanding you code a bit more. I do see that it’s a box, and what my email was about – was how/where I might insert something that might fit into the upper left (or TOP of the first column).

    It seems like you do understand what I’m trying to do, and I understand if it isn’t actually possible, but let me articulate it another way:

    The theme I’m using (Atahulapa) allows for “custom widget areas” by inclusion of code like this:

    <?php bfa_widget_area('name=My dynamic widget area'); ?>

    …in the template. So I no longer even really need a sidebar. Styling my widgets to play nice with your awesome plugin is no problem – I’d just love to be able to stick that code at the top of the handler.

    Thread Starter Teratoma

    (@teratoma)

    ALSO – thanks for taking the time to look at my question and page, and that little bit of code – which might actually be the solution I’m looking for (I’m really not very experienced). CHEERS!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Easiest way to include sidebar/widgets among the columns?’ is closed to new replies.