• Resolved averdiermarathon

    (@averdiermarathon)


    Hello,

    I am trying to setup a custom grid template with the code below, but they are not in line but on top of each other. What did i miss?

    Thank you

    <div id=”one-person”>
    <div class=”person-photo”>
    <img src=”[photo_url]” />
    </div>
    <div class=”person-name”><h4>[name]</h4></div>
    <div class=”person-titre”>[position]
    More
    </div>
    </div>

    #one-person {
    width:25%;
    text-align:center;
    margin:0 0 30px 0;
    }

    .person-photo img {
    margin:0 auto;
    }

    .person-name {
    margin-top:1em;
    }

    .person-titre {
    margin:0px;
    padding-top:0px;
    }

    https://wordpress.org/plugins/staff-directory/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter averdiermarathon

    (@averdiermarathon)

    I found out : float: left;

    Thank you

    Has anyone found a way to call out a different custom template via the shortcode?

    To call custom template via the shortcode, first make sure you have made custom template 1 or 2 etc and then save.

    Then use,

    [staff-directory template=custom_1] or [staff-directory cat=22 template=custom_2]

    whichever fits your situation.

    Hello,

    I am trying to setup a custom grid template with the code below, but they are not in line but on top of each other. How can solve it with float: left; ?

    Thank you

    <div id=”one-person”>
    <div class=”person-photo”>
    <img src=”[photo_url]” />
    </div>
    <div class=”person-name”><h4>[name]</h4></div>
    <div class=”person-titre”>[position]
    More
    </div>
    </div>

    #one-person {
    width:25%;
    text-align:center;
    margin:0 0 30px 0;
    }

    .person-photo img {
    margin:0 auto;
    }

    .person-name {
    margin-top:1em;
    }

    .person-titre {
    margin:0px;
    padding-top:0px;
    }

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

The topic ‘Setup a custom grid template’ is closed to new replies.