• Resolved ndjworldnews

    (@ndjworldnews)


    Hi;
    How can I set parts of the storefront homeage without left/right margins or left/right padding and leave other parts to their default settings?

    I am not using the full-width layout but the block view. there are left/right margins/padding settings that seem to be about 20 to 25px wide. I checked CSS for container, col-full, and content but am not able to set left/right margins/padding to zero for some images I wish to display.

    example: top banner (image) i wish to display below header but above products. header and products are both offset with margins or padding but I want the top banner to display for the full width of the homepage width (no left/right margin). Hope I am making sense. How can I do this?

    BTW margin:0,auto doesn’t work. margin-left:0, margin-right:0 doesn’t work either.

    Much obliged.

    Lode

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • I’m not entirely clear on which margins you’re referring to exactly. When you look at this screenshot, do you want to remove the space I’ve marked with 1, or the one marked with 2? Or both?

    Thread Starter ndjworldnews

    (@ndjworldnews)

    Hello

    Thanks for taking the time and the trouble to attend to my needs. I would like to remove the margins/paddings for (1) but only for that banner.

    Thanks a bunch.

    Lode

    This can be done with some custom CSS code:

    Go into your site’s admin Dashboard and select Appearance → Customize → Additional CSS. In the CSS textbox on the left, add the following code:

    .home .entry-content > div .stop:nth-of-type(2) {
      margin-left: -2.617924em;
      margin-right: -2.617924em;
    }

    Sselect “Save Changes” from the top, and your changes will be applied to your site.

    Thread Starter ndjworldnews

    (@ndjworldnews)

    Well by golly that certainly worked just dandy.

    Thank you so very much.

    Lode

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

The topic ‘Homepage different widths’ is closed to new replies.