Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

GB Inherit settings from GP theme

  • Hi, I am not sure if I miss anything right here, but I find it very hard everytime to add paddings and margins to my containers.

    I would like to ask with the new layout system is any possible way that the containers take the paddings that are out of the box from generatepress theme, something like the heading that has always a 20px bottom padding.

    Also if this is possible one very critical question, is this going to create for each container a new css class that has those options, this sounds like it will create a mass of unecesary css. what is a better aproach do you think if there is any.

  • Hi there,

    something like the heading that has always a 20px bottom padding.

    GP doesn’t add bottom paddings to headings, but bottom margins.

    GP has set a default bottom margin for headings, you can also change them in the customizer > typography and GB’s headline block will respect that margin if you don’t enter any specific bottom margin value for the headline blocks.

    Also if this is possible one very critical question, is this going to create for each container a new css class that has those options, this sounds like it will create a mass of unecesary css. what is a better aproach do you think if there is any.

    I’m not sure what you mean, every GB container comes with a unique CSS class. Can you explain a bit more?

  • Thanks for the headings part.

    I asked if there is a possibility like the headings to have already setup a padding or margins values for all the containers and not to do it manually each time you setup a new container.

    As for the second question is actually the coming from the first one, if there is a way to setup a default padding to all containers out of the box, this means there will be created new classes with margin or padding css for each of them? Not sure if this makes any sense my English is not perfect

  • I asked if there is a possibility like the headings to have already setup a padding or margins values for all the containers and not to do it manually each time you setup a new container.

    You are a GB Pro user, you can create global styles for GB blocks.

    this means there will be created new classes with margin or padding css for each of them

    Yes, so the best option would be using the global style which generates a minimal amount of CSS.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.