• Resolved nicoleWP

    (@nicolewp)


    Hi,

    My site is still being developed so I don’t have a link to show you. I am using Gutenberg shortcode block and I want to have some image elements of the portfolio project post content be wide aligned to the width of the large top featured image.

    For background: The shortcode is for an imagemap plugin which has a main image and more info to the left of it. In the free version of plugin, when you click the hotspots of the image, the “more info” content to the left of it changes. The problem is my main image is too small for easy viewing/reading.

    On another forum, someone suggested putting the shortcode block in a group block which have wide-width and full-width options but I am not seeing those options with the Rebalance theme.

    Any way to break out of the the default container width on certain blocks only? For example, I like the fact that the paragraph blocks are narrow for easy reading. Do you have another solution to achieve the same result?

    Thank you.

    • This topic was modified 3 years, 9 months ago by nicoleWP.
    • This topic was modified 3 years, 9 months ago by nicoleWP.
    • This topic was modified 3 years, 9 months ago by nicoleWP.
Viewing 14 replies - 1 through 14 (of 14 total)
  • Hi there!

    Rebalance in an older theme, developed before the Block Editor, so it does not support all of its options.
    You’ll probably need some custom CSS to adjust the elements you want, but it’s difficult to advise without actually seeing the site.

    Please also note that this might be out of our support scope, so you may need to post to the CSS forums instead. Again, for anyone to help you with the exact code, they will need to be able to actually access the site.

    Thread Starter nicoleWP

    (@nicolewp)

    Hi, thanks for getting back to me. See https://developer.www.ads-software.com/block-editor/developers/themes/theme-support/.Instead of custom CSS, is there anyway to add add_theme_support( 'align-wide' ); so that there is

    “the possibility to define a “wide” or “full” alignment by adding the corresponding classname to the block’s wrapper ( alignwide or alignfull ).

    I didn’t want to mess with my functions.php file but if someone can walk me through the process, I’ll do it.

    P.S. I’ve also asked the imagemap developer their opinion on this. I am not sure how far their support goes, however, as I only want to use the free version of the plugin.

    Hi there,

    Because Rebalance is a retired theme (and no longer receiving active development) adding support for block styles is outside of the scope of this forum, but you may be able to get help here in the developer forums: https://www.ads-software.com/support/forum/wp-advanced/

    We are able to help with simple CSS tweaks, but adding support for wider block alignment options is a very substantial change to this theme, and one that will likely require custom development due to the large number of changes that will need to be made on this theme.

    Hope this helps point you in the right direction!

    Thread Starter nicoleWP

    (@nicolewp)

    Hi Jerry,

    I had no idea that it was a retired theme, because it still seemed to be supported. Also had no idea adding block styles is a substantial change. What would a simple CSS tweak look like?

    Many thanks for your help! Probably after I make the site live, I need to start looking for another theme…

    You can see here that the theme has not been updated for over 2 years:

    https://www.ads-software.com/themes/rebalance/.

    What would a simple CSS tweak look like?

    You can see this page to learn what we can help with here, on these forums:

    https://wordpress.com/support/custom-design/css-support/.

    Thread Starter nicoleWP

    (@nicolewp)

    Hi,

    Sorry for the delay in getting back. Here is the project page that contains the group block which in turn contains a shortcode for the interactive image. The image include the annotations to the left of the wireframe. I was wondering if I could enlarge the interactive image so it is the same width as the featured image above it. Is this possible? Must I post on the developer forum?

    On a separate note, do you think I am going to have to find a new theme soon? Just today with the new version of WordPress I noticed an issue with my accordion blocks on Chrome on desktop. The expand/collapse arrows have disappeared. They looked fine prior to the update.

    Any help is appreciated.
    Thank you.

    Moderator James Huff

    (@macmanx)

    Hm, since it’s coming in via shortcode, I recommend contacting the folks over at https://www.ads-software.com/support/plugin/draw-attention/ about this. They’ll have a much better idea of how to properly take care of this.

    As for the accordion block issue, it’s the theme. If they’re suddenly not working, that would be an issue with the plugin providing that block, not with the theme. I see you’ve already reached out to them at https://www.ads-software.com/support/topic/accordion-block-missing-expand-collapse-arrows/

    Thread Starter nicoleWP

    (@nicolewp)

    Hi James,

    Thanks for coming back to me. I already reached out to DrawAttention Support and they said that I ask on this support forum for CSS help to “target the container which contains the DrawAttention shortcode.” These are my words but they said that the interactive image scales to fill the container it is in and I put it in a Group block to see if it could be targeted that way. Any ideas? Thank you.

    Hello there,

    Many thanks for getting back with that additional information.

    You could try the following CSS:

    
    .single-jetpack-portfolio .hentry .entry-content, .single-jetpack-portfolio .hentry .entry-footer {
        float: none;
        margin: 0;
        width: 100%;
    }
    

    This will widen all content.

    I also noticed that the the shortcode was in a column block – is that correct? If yes, have you tried setting this to full width? If no, you might want to try this ahead of any CSS.

    I hope this is useful.

    Thread Starter nicoleWP

    (@nicolewp)

    Hi Adam,

    Thanks for coming back. Unfortunately, I don’t want to widen my paragraph/text content but I don’t mind if all the images are at the wider width (but not full width). However, this particular “image” is not recognized by WordPress as an image as it is Draw Attention’s own type of interactive image. There are two ways to implement it – as a shortcode (which I put in a Group Block container not a Column) or as an interactive image. I tried the latter and it didn’t work for (callouts were not clickable) so I’ve been using the shortcode option.

    Unfortunately, this Rebalance theme has not been updated to show the wide width and full width options for Gutenberg blocks.See https://developer.www.ads-software.com/block-editor/how-to-guides/themes/theme-support/

    Do you have any idea how to widen the Group container so it is the width of the Featured image at the top?

    I was hoping to be able to do the following but it appears that it is a lot more complicated to update the theme.

    Wide Alignment:
    Some blocks such as the image block have the possibility to define a “wide” or “full” alignment by adding the corresponding classname to the block’s wrapper ( alignwide or alignfull ). A theme can opt-in for this feature by calling:

    1
    add_theme_support( 'align-wide' );

    `

    Thank you.

    Regards,
    Nicole

    • This reply was modified 3 years, 8 months ago by nicoleWP.
    • This reply was modified 3 years, 8 months ago by nicoleWP.

    Hello Nicole,

    I’m glad that’s useful thus far, it’s probably just my two cents, but I don’t think the CSS provided doesn’t present anything untoward. ??

    Themes do operate differently when it comes to block settings.

    https://developer.www.ads-software.com/block-editor/how-to-guides/themes/theme-support/

    This is not CSS but a theme function.

    Looking deeper at the page content – I see the shortcode is a column/group – is that correct?

    Many thanks in advance.

    Thread Starter nicoleWP

    (@nicolewp)

    Hi,

    I have a group block into which I dragged a shortcode block. The group isn’t in a column. Underneath it I have a heading block which appears to be within a column block, by default. Underneath I have a paragraph block, which is also within that same column block.

    So it looks like the group block with my DrawAttention shortcode is separate from the other elements on the page which are all contained within a column block.I guess I kept it separate because I thought it was easier to resize separate from the other elements.

    Thank you.

    Regards,
    Nicole

    Hello Nicole,

    Are you able to assign that group block a CSS class of it’s own as detailed here: https://wordpress.com/support/wordpress-editor/blocks/group-block/#advanced

    I’m wondering if it might be possible to single this container out and try some CSS magic that will allow rules of it’s own.

    Many thanks in advance.

    Thread Starter nicoleWP

    (@nicolewp)

    Hi Adam,

    Thanks so much for all your help with this! I attended a User Experience meetup where I was told that my website looked dated! That was at least 2 people’s knee-jerk reaction, so it looks like I’d better switch to something more current. The upside is that hopefully the latest Gutenberg Block functionality will be included.

    Thanks again!
    Nicole

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Portfolio Project: Wide Alignment’ is closed to new replies.