• Hi!

    Bit of a noob to wordpress. I also have never used CSS, but if it helps fix my issue here I’m all up for it. How does one centralize a set of columns? Currently the buttons stretch to the size of browser. But I don’t want them to. I would like them all compacted aligned with the main website jpeg banner. Any help is appreciated!

    • This topic was modified 3 years, 8 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    .wp-container-14.wp-block-columns {
        max-width: 1024px;
        margin: 0 auto;
    }

    To add or override CSS: use the “Additional CSS” option in the customizer.  https://codex.ww.wp.xz.cn/CSS#Custom_CSS_in_WordPress or at [site]/wp-admin/customize.php if you don’t have that menu option.

    Use the Chrome Developer Tools or Firefox Developer Tools to help you see and test changes to your CSS.

    Thread Starter dicyanin

    (@dicyanin)

    Hi Steve! Thanks I’ll have a go with that later 🙂

    Thread Starter dicyanin

    (@dicyanin)

    Hi Steve, I am literally a complete noob to the code editor. I have input what you posted into the code editor but its not done anything. Please give a brief step by step instruction if possible, as I have never done code editing on WordPress before (just used the visual editor). I appreciate the free and open help btw. I’m sure you will be richly rewarded in terms of karma.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Did you paste in CSS at [site]/wp-admin/customize.php ? I don’t see the code on your site.

    Thread Starter dicyanin

    (@dicyanin)

    Wow, excellent. I went to ‘Customize’ and the ‘Add CSS’ option was there, code in and boom, exactly aligned how I wanted it to be. Kudos to you sir! Karma on its way to you.

    Now there is one more niggle I’m having. The large JPEG banner on my homepage nicely sizes accordingly with the mobile browsing experience.

    The issue though is that even if it physically reduces the mobile JPEG size when browsing with mobile, its byte size is still the same as the original larger desktop byte size. Therefore, Google Console basically reads it as ‘you have a massive Largest Contentful Paint, that takes 4 seconds to load up on a 3G network with that ridiculously gigantic 1024×232 image size!’

    Is there a way to customize the image size so that it still looks huge on desktop like it already does, but reduces its byte size when being viewed on mobile? Thanks 🙂

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Please contact the developers of your theme as that logo is sized and managed by the theme.

    Thread Starter dicyanin

    (@dicyanin)

    I use the default WordPress twentytwenty theme. Cheers Steve

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘How to centralize blocks?’ is closed to new replies.