Support » Theme: Dara » Making a grid on frontpage

  • Hi,

    I’m using the plugin Content Views to make a grid for my home page, which is a static page. In order to get a sidebar on the static page, I’ve created a Dara child theme with a front-page.php that is identical to Dara’s page.php.

    I’d like the boxes in the grid to be larger, perhaps by expanding the content area. However, I don’t want to do it in a way that affects readability on mobile devices, and I don’t want a universal solution that affects all pages.

    I’m not proficient in CSS, and would like some help.

    Here’s how it looks:
    https://ibb.co/4fYqcqJ

    Here’s how I want it to look, approximately:
    https://ibb.co/Z8dSVtv

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Via Additional CSS in the Customizer, try this:

    .content-wrapper {
        padding-left: 0;
    }
    .content-wrapper .content-area {
        width: 100%;
        max-width: none;
    }
    hvegard

    (@hvegard)

    That did expand the content area, but it also made the sidebar disappear.
    Also, is it possible to use CSS to change a single page, and not all pages on the site?

    Fotis

    (@fstat)

    Hi there,

    I don’t think that this is easy to do with CSS. Have you checked the Content Views plugin options if there’s a way to adjust the width of both the main are and the sidebar? I also suggest asking for more in their support forum:

    https://wordpress.org/support/plugin/content-views-query-and-display-post-page/

    Jarret

    (@jarretc)

    Try something like this with your current code

    .site-content .content-wrapper {
      padding-left: 0px;
      padding-right: 0px;
    }

    Should expand out the content to the edges of the site from testing on Chrome. May need to implement a few other fixes at smaller resolutions if you find any issues from that change.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Making a grid on frontpage’ is closed to new replies.