Home Forums Bug Reports Font awesome output in acf pro flexible field


Font awesome output in acf pro flexible field

  • Hi

    I’ve noticed that my font awesome code won’t parse insise a flexible content loop, so

    <?php if( have_rows('flexible_content') ):?>
    <?php while ( have_rows('flexible_content') ) : the_row(); ?>
    <?php elseif(get_row_layout() == 'pdf_file' ): ?>
      <ul id="pdf">
          <?php $file = get_sub_field('file');?>
          <?php the_sub_field('file_name');?> :
    	<a href="<?php the_sub_field('file');?>" title="Link to <?php the_sub_field('file_name');?>"><i class="fa fa-file-pdf-o"></i></a>

    so it doesn’t parse and I get a plain oblong box. Is there a hack i can apply to force it to output correctly? Thanks in advance

  • Hi @rebekahford

    That is quite odd.

    Kindly confirm, is the font-awesome css loaded correctly?

    Testing it on my end it seems to be fine.

    I hope this helps.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Font awesome output in acf pro flexible field’ is closed to new replies.