Support » Plugin: Advanced Custom Fields » Positioning the Fields

  • Resolved wtfbingo


    I have taken over the maintenance of a website I did not build. The owner wants me to add some custom fields to the ad space on the home page. I’ve figured out how to add the custom field, and how to place it into the template, but I have NO idea how to style it (position it, etc). He also wants me to change the appearance of an element that is already there.

    Is there a tutorial or something that can help me find out where to define these things? I cannot figure this out for the life of me.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You can style through CSS in your template. The custom field is just returning text, or a URL or simple HTML


    <div class="style1">
    <?php the_field('yourfieldname'); ?>


    .style1 {
    font-family: 'Courier';
    	overflow-x: hidden;
    	background-image: url('bg.png');
    	background-repeat: repeat-x;
    	background-position: center top;

    Thanks, Dani. It was way simpler than I thought!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Positioning the Fields’ is closed to new replies.