[Resolved] How can I justify text in GenerateBlock?

Home Forums Support [Resolved] How can I justify text in GenerateBlock?

Home Forums Support How can I justify text in GenerateBlock?

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #1392204
    Hector

    How can I justify text in GenerateBlock?

    Thanks for your quick attention.

    #1392247
    Leo
    Staff
    Customer Support

    Hi there,

    CSS is required.

    Can you disable the maintenance page and let me know which block you are referring to?

    #1392256
    Hector

    [credential deleted]

    Ready…

    #1392261
    Leo
    Staff
    Customer Support

    This is a public forum so definitely don’t post your login here.

    Which block should I be looking at?

    #1392286
    Hector

    Download a plugin for that, but I don’t know if it’s the best option or do you recommend another optimized procedure ???

    Any block could be

    #1392288
    Leo
    Staff
    Customer Support

    To justify text? Shouldn’t need a plugin for that.

    You could try adding a custom class like text-justify to the block that you want to justify then use this CSS:

    .text-justify {
        text-align: justify;
    }
    #1392331
    Hector

    Thanks.

    #1393087
    Leo
    Staff
    Customer Support

    No problem 🙂

    #2451497
    Suman

    It’s not working on mobile. Does the code need edits for mobile?

    #2451498
    Suman

    Kindly confirm if any changes are required for tablets as well.

    #2451904
    Ying
    Staff
    Customer Support

    Hi Suman,

    The CSS would work for all devices.

    If it doesn’t work for you, please open a new topic and link us to the page where we can see the issue.

    #2451918
    Suman

    It worked for me after I implemented it properly. The issue was the editor did not show the justified text in the preview.

    #2452238
    Fernando
    Customer Support

    Hi Suman,

    Custom CSS added through Additional CSS won’t show in the editor by default.

    You’ll need to utilize the Child theme and enqueue your own block editor stylesheet and then add the custom code there as well to make it appear in the Block Editor.

    See here for a sample: https://generatepress.com/forums/topic/load-editor-stylesheet-after-gp-inline-styles/#post-1895001

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