• Resolved montecomis

    (@montecomis)


    Hi there!
    Can anybody help me on displaying horizontally more than the already 3 homepage boxes? I can handle to add 3 more changing the code from front-page.php and options.php pages but it keeps showing them in rows of three having each row 2 boxes. I don’t want that. I need them in 2 rows of three boxes. You can check it out if you want at https://digitallifeage.com/cms/ifaistos/ to understanf what i mean.
    If someone could help me i would appreciate it!
    Thank anyway.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Michael

    (@alchymyth)

    this might work as a quick fix:

    .one_third:nth-child(3n+0) { margin-right: 0%; }

    (might not work in older browsers; in this case try: .one_third { margin-right: 2.6%; } )

    ideally, you would modify the code of the boxes so that the last box in a row would get the CSS class .last

    Thread Starter montecomis

    (@montecomis)

    Thank you very much alchymyth!
    I ‘d like to ask you a question: What’s the nth-child(3n+0) from the first code you answered me?
    Both of them it works beautiful but i keep the second one, just in case of the older browsers.
    Whenever you have time…
    Thanks again.

    Michael

    (@alchymyth)

    What’s the nth-child(3n+0) from the first code

    https://www.w3schools.com/cssref/sel_nth-child.asp

    Thread Starter montecomis

    (@montecomis)

    Thanks again. I didn’t know it.

    Thread Starter montecomis

    (@montecomis)

    Resolved.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘hero theme boxes display’ is closed to new replies.