We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c641795 commit e2c1694Copy full SHA for e2c1694
acf_pro_snippets.php
@@ -37,11 +37,15 @@
37
<ul class="social-links">
38
<?php while ( have_rows( 'social_links', 'option' ) ) : the_row(); ?>
39
<?php
40
- $link_class = get_sub_field( 'link_class' );
+ $icon_class = get_sub_field( 'icon_class' );
41
$link = get_sub_field( 'link' );
42
?>
43
- <?php if ( $link_class && $link ) : ?>
44
- <li><a href="<?php echo esc_url( $link ); ?>" class="icon-<?php echo sanitize_html_class( $link_class ); ?>" target="_blank"></a></li>
+ <?php if ( $icon_class && $link ) : ?>
+ <li>
45
+ <a href="<?php echo esc_url( $link ); ?>" target="_blank">
46
+ <span class="icon <?php echo sanitize_html_class( $icon_class ); ?>"></span>
47
+ </a>
48
+ </li>
49
<?php endif; ?>
50
<?php endwhile; ?>
51
</ul>
0 commit comments