0

I just started my first blog with wordpress. I'm customizing some of it's features but I can't find the css file for the default gallery block type.

Here can be seen the difference between image block and gallery block.

Thank you very much for answer.

Kjubu
  • 13
  • 2
  • can you post your code or share the site url? – Vel Sep 11 '18 at 04:51
  • If you could please share the link for this page it would be easier to check the issue and understand the issue. You can insert your custom CSS in the default `style.css ` file, don't need to modify the original stylessheet. – Akash Sep 11 '18 at 04:52
  • Sure, sorry. http://neposedim.cz/2018/09/03/nedelni-nicnedelani/ – Kjubu Sep 11 '18 at 05:06

2 Answers2

0

There are padding left not margin. so you can use padding-left: 0

.entry-content ul:not(.entry-unordered-list){
  padding-left:0px;
}
Hariom Singh
  • 1,420
  • 1
  • 8
  • 21
0

@Kjubu Welcome to stackoverflow !

In your style.css file search for the first occurrence of .wp-block-gallery in it's properties you will find padding: 0; already mentioned just change it to padding: 0 !important;.

You will get the desired output:

enter image description here

Akash
  • 687
  • 1
  • 4
  • 16
  • Thank you. I have not found it there so I tried to add it. Nothing happened. This is only gallery code in my style.css `.gallery-caption{ }` – Kjubu Sep 11 '18 at 05:32
  • the issue is already resolved with the code you added, clear the cache and refresh the page; you will see the effect. I can see it. – Akash Sep 11 '18 at 05:38
  • I did it and nothing happened again. Now I think I understand the problem. I use Guttenberg for blocks and it is taking its gallery css instead of style.css. I will try to find it by my own. Thank you for answer. – Kjubu Sep 11 '18 at 05:51
  • Solved: Correct css is located in `gutenberg/build/block-library/style.css` – Kjubu Sep 11 '18 at 05:56
  • I can see the padding removed already. would you mind please trying to open the url on different browser or incognito or different system. It can be cache issue you are not able to see the changes – Akash Sep 11 '18 at 05:56