• joelalexandersson

    (@joelalexandersson)


    Hi! I’ve been using this script by ACF to display flexible content layout titles to display a custom title after each layout name. Just so they are easier to find. but since the last update of your plugin it does not work anymore. Deactivating your plugin makes the titles appear again. Can you help me understand what is causing this and how we can fix it?

    The code is as follows:

    add_filter(‘acf/fields/flexible_content/layout_title’, function($title) {
    $ret = $title;
    if ($custom_title = get_sub_field(‘title’)) {
    $ret = sprintf(‘%s <em style=”font-size: 80%; opacity: 0.5″>%s‘, $custom_title, $title);
    }

    return $ret;
    });

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Flexible layout titles not working, when FCE is activated’ is closed to new replies.