Envira – Allow using FontAwesome icons within the image captions

add_filter(‘envira_gallery_image_caption_allowed_html_tags’,’example_envira_gallery_image_caption_allowed_html_tags’, 5, 5); function example_envira_gallery_image_caption_allowed_html_tags($allowed_tags, $id, $item, $data, $i) { $allowed_tags[‘i’][‘class’][] = ‘fa’; $allowed_tags[‘i’][‘class’][] = ‘fa-facebook-square’; $allowed_tags[‘i’][‘class’][] = ‘fa-4x’; return $allowed_tags; }Continue reading

Soliloquy – disable lazyload

function exclude_lazy_loading( $output, $id, $item, $data, $i ) { $image_tag = ‘‘; $start_pos = strpos( $output, $image_tag ); $end_pos = strpos( $output, $image_end, $start_pos ); if ( $start_pos !== false && $end_pos !== false ) { $image_content = substr( $output,…Continue reading

Envira – enable FontAwesome icon support for the captions

add_filter(‘envira_gallery_image_caption_allowed_html_tags’,’example_envira_gallery_image_caption_allowed_html_tags’, 5, 5); function example_envira_gallery_image_caption_allowed_html_tags($allowed_tags, $id, $item, $data, $i) { $allowed_tags[‘i’][‘class’][] = ‘fa’; $allowed_tags[‘i’][‘class’][] = ‘fa-facebook-square’; $allowed_tags[‘i’][‘class’][] = ‘fa-4x’; return $allowed_tags; }Continue reading