How to Add or Remove Blank Space Between WordPress Blocks

Поделиться
HTML-код
  • Опубликовано: 24 ноя 2024

Комментарии • 81

  • @f.libaax7408
    @f.libaax7408 Год назад +8

    Thank you so very much for these tips! This caused me a lot of problems as a newbie.
    There are a few things I would like to add:
    - For wordpress v6.2.2 put the css is in: Dashboard -> Design-> Website Editor -> Styles [the black/white circle button when editing templates] -> Additional Css
    - Depending on the theme (for example in twenty-three) it is necessary to prioritize conflicting css properties, this means to use: margin-top: 0 !important;
    - Use F12 in Chrome and select your block and see which block's margin is causing the trouble.
    - Consider setting the spacing between blocks property (in styles -> layout) to 0 and edit the layout properties of the block types (style-> blocks).

    • @aru4820
      @aru4820 5 месяцев назад

      what about in Zoologist theme? I am so frustrated right now

  • @JenniferBair-n4r
    @JenniferBair-n4r 5 месяцев назад

    As someone who hates computers, this tutorial is so well done that even I can follow it. Fantastic job.

    • @wpbeginner
      @wpbeginner  5 месяцев назад

      Glad to hear! We hope our guides continue to be helpful for you :)

  • @angelcuala9379
    @angelcuala9379 Год назад +1

    Your tutorial is straightforward and very to easy to follow. Thanks a lot!

  • @newzenvigor
    @newzenvigor 7 месяцев назад

    I love how you teach your videos! Thank you, Sir.

    • @wpbeginner
      @wpbeginner  7 месяцев назад

      Glad you like it :)

  • @MsHafekasi_
    @MsHafekasi_ Год назад +1

    Wonderful, so helpful! Just the advice I was after and explained brilliantly, thank you so much!

    • @wpbeginner
      @wpbeginner  Год назад

      You're welcome! Glad our video was helpful :)

  • @cathydouglas2930
    @cathydouglas2930 Год назад

    That was exactly what I was looking for. Thank You!

    • @wpbeginner
      @wpbeginner  Год назад

      You're welcome, glad our guide could assist!

  • @jeffreyobrock
    @jeffreyobrock 4 месяца назад

    Excellent teaching.... thank you !

    • @wpbeginner
      @wpbeginner  4 месяца назад

      Glad it was helpful!

  • @waynoswaynos
    @waynoswaynos 17 дней назад

    That was great, thank you friend

    • @wpbeginner
      @wpbeginner  17 дней назад

      Glad you found it useful! :)

    • @waynoswaynos
      @waynoswaynos 15 дней назад

      Although, upon attempting this it did not work with wordpress 6.6.2 with 2024 theme. It did not work if I made it zero or fifty pixels. The Additional CSS has moved, and unless mine is broken, does not autocomplete as shown here. And the block editor does not allow negative spacing.

  • @JorgeGarcia-qm6wg
    @JorgeGarcia-qm6wg 8 месяцев назад

    Wonderful! Any thoughts on why I have too much space between an image and a text block on mobile only?

    • @wpbeginner
      @wpbeginner  8 месяцев назад +1

      It is likely a CSS issue with your theme's mobile styling, If you check with your theme's support they can normally let you know the CSS to change.

    • @JorgeGarcia-qm6wg
      @JorgeGarcia-qm6wg 8 месяцев назад

      @@wpbeginner Thank you so much!

    • @JorgeGarcia-qm6wg
      @JorgeGarcia-qm6wg 8 месяцев назад

      @@wpbeginner Actually, I'm not sure I have a theme per say. I use WP blog in conjuction with SHOWIT.

  • @zantevoice
    @zantevoice Год назад

    I really enjoy some of your videos. I have a question though: Where (or how) do you suggest I can create (or others by paying) a custom wordpress theme ??
    Are any tools I can use to create one?? Thanks!

    • @wpbeginner
      @wpbeginner  Год назад

      If it is for your site then we have a guide below that you should find helpful:
      www.wpbeginner.com/wp-themes/how-to-easily-create-a-custom-wordpress-theme/

  • @HumaneEmergencyAnimalRescue911

    This is awesome! Thank you for sharing!

    • @wpbeginner
      @wpbeginner  Год назад

      You're welcome, glad you found it helpful!

  • @binaryfire
    @binaryfire 6 месяцев назад

    Thank you! Is there a way of removing the spacing between blocks in the backend editor as well (like you did at 5:44). I prefer creating my sites with my sections directly against eachother (no space between them). But it's very frustrating because the editor isn't WYSIWYG so I have to keep opening the frontend to see things without the margins. Can we apply the same "fix" to the editor somehow?

    • @wpbeginner
      @wpbeginner  6 месяцев назад

      For the moment we do not have an easy CSS solution

  • @benedictcoltman1983
    @benedictcoltman1983 3 месяца назад

    great presentation style, thank you 👍

    • @wpbeginner
      @wpbeginner  3 месяца назад

      Glad you liked it :)

  • @djobed.utrecht
    @djobed.utrecht Год назад

    Thank you for this tutorial! I'm new to Wordpress and learning a lot this way. I'm not afraid to try things also when it comes to code writing. Again, I am new to all of this, hehe. But wauw, so many questions but also so many possibility's!! :)

    • @wpbeginner
      @wpbeginner  Год назад

      Glad our guide was helpful!

    • @djobed.utrecht
      @djobed.utrecht Год назад

      ​@@wpbeginner I really would like remove the background colour, transparent, now it's black and in front of my picture. Do you also have a tutorial regarding that?

  • @Chris-B.
    @Chris-B. Год назад

    Great video. I do have one question. The spacings between all my images are exactly the same. However, if I add a column, then the spacing under the column is wider. Is there a way of reducing the spacing under columns? I really appreciate any help you can provide.

    • @wpbeginner
      @wpbeginner  Год назад +1

      You should be able to follow the method from this article to reduce the spacing after your columns as well

  • @solarside5684
    @solarside5684 Год назад

    Thank you for your clear explanation. I appreciate the demonstrations you make to help understand what the incorrect way does. I am struggling with a footer, and unfortunately, your solution does not work. The inspector tool F12 shows the culprit, namely "margin-block-start: 1.5rem;" How can I reduce it? Customizer seems to not recognize margin-block-start in CSS code. (using twenty-twentytwo theme). Thanks

    • @wpbeginner
      @wpbeginner  Год назад

      If your theme is not allowing the CSS customization, you could try adding !important to the end of your custom css to see if that allows the code you are using to replace it to work.

    • @solarside5684
      @solarside5684 Год назад

      @@wpbeginner Thank you so much for your reply! Adding !important does not make a difference. What I mean is that "margin-block-start" is not recognized as a property, since it shows up in red.

  • @littletwinklestarsx3201
    @littletwinklestarsx3201 Год назад

    THANK YOU SO MUCH ! I used to write a dot to give space between blocks hahaha

    • @wpbeginner
      @wpbeginner  Год назад

      Glad we could give a good alternative :)

  • @healthandbeautyclass
    @healthandbeautyclass Год назад

    Hello, My name is Humphrey. Thank you very much for this video. I have followed it and reduced spacing between images in my blog post which worked very well. However, I still have one challenge. The wide blank spaces between image blocks on the MAIN SIDEBAR were not reduced but remained the same. Please can you show me how I can reduce spaces between image blocks on the main sidebar? Thank you very much.

    • @wpbeginner
      @wpbeginner  Год назад

      The sidebar normally has styling that would require CSS changes. We would recommend using our guide below for how to use inspect element and that would allow you to find what needs to be reduced for the spacing.
      www.wpbeginner.com/wp-tutorials/basics-of-inspect-element-with-your-wordpress-site/

  • @poulomimandal4067
    @poulomimandal4067 Год назад

    Thank you so much!!!!

  • @motor_craft
    @motor_craft Год назад

    Great tutorial - one problem, customizer is not there.

    • @wpbeginner
      @wpbeginner  Год назад

      Your theme may be using a custom interface, if you have not done so already we would recommend reaching out to the support for your specific theme and they should be able to assist!

  • @Ohdearyme-x3d
    @Ohdearyme-x3d 10 месяцев назад

    That was fantastic

  • @SteamboatLawnSalon
    @SteamboatLawnSalon Год назад

    I tried this on two group blocks (both containing columns) that were next to each other with no success. I can tell there is still a space, because the groups have a background color. There is no spacer block (or any other block between them). Do I need additional CSS when trying to get rid of spacing between group blocks? Thanks.

    • @wpbeginner
      @wpbeginner  Год назад

      It can depend on your theme but more than likely your group blocks have slightly different CSS that you would need to modify. You can check the CSS for your blocks using Inspect element and we cover how to use that in our article below!
      www.wpbeginner.com/wp-tutorials/basics-of-inspect-element-with-your-wordpress-site/

  • @margarethaynes6313
    @margarethaynes6313 8 месяцев назад

    This may not be the right place to ask this question but here goes: We have a literary blog and our posts are short stories or poems. I paste text into a post with spaces between all paragraphs, and those spaces disappear. The paragraphs all run together. I've inserted spacer blocks, but that is cumbersome as I have to insert them between every paragraph. There must be a more elegant way to preserve spaces between paragraphs. I would very much appreciate help with this nagging issue.

    • @wpbeginner
      @wpbeginner  8 месяцев назад

      If you use Shift+Enter that should allow you to add space between your text while keeping the same paragraph block.

  • @UrraSergio
    @UrraSergio Год назад

    😊 Thank you!

  • @yorgos.kouravelos
    @yorgos.kouravelos Год назад

    Thanks a lot!

  • @fycs_71_shardul94
    @fycs_71_shardul94 5 месяцев назад

    I don't get the same interface during editing how can I get one in your video

    • @wpbeginner
      @wpbeginner  5 месяцев назад

      Ours is the current default block editor, if you're not seeing it then either your theme or a plugin on your site is likely overriding the editor.

  • @ComedyEcom
    @ComedyEcom Год назад

    Thanks!!

  • @edgonzalez32
    @edgonzalez32 Год назад

    So weird. I have the classes in like. you do and they show up when I inspect the page, but the blocks still have a margin of either top or bottom still applied. Even though I can see the class name that we created added to the block.

    • @wpbeginner
      @wpbeginner  Год назад

      There may be some CSS overriding what you are adding, we would recommend trying Inspect Element using our guide below to help test for this.
      www.wpbeginner.com/wp-tutorials/basics-of-inspect-element-with-your-wordpress-site/

  • @kafayahsaad9183
    @kafayahsaad9183 9 месяцев назад

    Cant find the customizer button, pleas help! What should i do? It just disappeared

    • @wpbeginner
      @wpbeginner  9 месяцев назад

      Did your theme change and start using the full site editor? If that is the case under Appearance you would see Editor. If not then you would want to ensure you are an admin user on your site.

  • @HimanshuThanvi-n1q
    @HimanshuThanvi-n1q 10 месяцев назад

    how to strech section/container to full width, I've tried all methods, elementor full-width, width 100% and also checked page code, but couldn't resolve the issue. please help

    • @wpbeginner
      @wpbeginner  10 месяцев назад

      For Elementor, we would recommend reaching out to Elementor's support and they would be able to assist.

    • @HimanshuThanvi-n1q
      @HimanshuThanvi-n1q 10 месяцев назад

      @@wpbeginner elementor only give feedback to pro users, I mailed them the issue.

  • @kirstynicholson-tb9lb
    @kirstynicholson-tb9lb 7 месяцев назад

    Hi, I followed all the steps but it did not work. I'm struggling to figure out why it isn't working.

    • @wpbeginner
      @wpbeginner  7 месяцев назад

      It is difficult to say without viewing your site directly, you can get a better idea on what is causing the extra space using inspect element following our guide below!
      www.wpbeginner.com/wp-tutorials/basics-of-inspect-element-with-your-wordpress-site/

  • @miriyalapraveenkumar9160
    @miriyalapraveenkumar9160 Год назад

    thank you

  • @lisamayuri
    @lisamayuri 8 месяцев назад

    I want to know how not to create seperate blocks between Paragraph and its heading simply by pressing ENTER key
    It's so annoying

    • @wpbeginner
      @wpbeginner  8 месяцев назад

      For the time being the block editor would require a new block for the content. You may want to look into the classic editor for the type of editing that you want.

  • @Michael-TheArchAngel
    @Michael-TheArchAngel Год назад

    Not able to see the same sub menu Appearance>Customize in my installation.

    • @wpbeginner
      @wpbeginner  Год назад +1

      Your theme may be a full site editor theme. We would recommend taking a look at our article below:
      www.wpbeginner.com/beginners-guide/how-to-fix-missing-appearance-menu-in-wordpress-admin/

    • @Michael-TheArchAngel
      @Michael-TheArchAngel Год назад

      @@wpbeginner Thank you for your reply

  • @LosFicosMusic
    @LosFicosMusic 9 месяцев назад

    Did not work for me

    • @wpbeginner
      @wpbeginner  9 месяцев назад

      If none of the methods we mention in this guide work for you, we would recommend reaching out to the support for your theme as the theme's styling would likely be overriding what you are setting.

  • @MasterTheNEC
    @MasterTheNEC Год назад +1

    Lost me at CSS Class....LOL

    • @wpbeginner
      @wpbeginner  Год назад

      Haha, I don't understand much CSS myself, so if I could do it, you can too.
      -- Yuvraj, the person in the video. :)

  • @aa.nayeem
    @aa.nayeem Год назад

    Hi, thanks a lot! But it didn't work on the column block of my site (Astra Theme). Kindly give some suggestions if possible.
    Update: The !important property solved the problem. Many many thanks to @f.libaax7408!

    • @wpbeginner
      @wpbeginner  Год назад +1

      Glad to hear that solved the issue for you!