ahriad
Forum Replies Created
-
Hello @kprovance
Here is the full code
Redux::setSection( $opt_name, array(
'title' => __( 'Trust Badges', 'text-domain' ),
'id' => 'product-page-badges',
'subsection' => true,
'fields' => array(
array(
'id' => 'product_trust_badges',
'type' => 'repeater',
'title' => __( 'Trust Badges', 'text-domain' ),
'subtitle' => __( 'Unlimited list of badges. Add an icon and text for each.', 'text-domain' ),
'item_name' => __( 'Badge', 'text-domain' ),
'bind_title' => 'title',
'group_values'=> true,
'fields' => array(
array(
'id' => 'badge_icon',
'type' => 'icon_select',
'title' => __( 'Icon', 'text-domain' ),
'subtitle' => esc_html__( 'Select an icon.', 'text-domain' ),
'placeholder' => __( 'Select an icon', 'text-domain' ),
'default' => '',
'enqueue' => true,
'enqueue_frontend' => true,
'stylesheet' => array(
array(
'url' => 'https://cdnjs.cloudflare.com/ajax/libs/MaterialDesign-Webfont/7.2.96/css/materialdesignicons.css',
'title' => 'Material Icons',
'prefix' => 'mdi-set',
),
array(
'url' => 'https://icons.getbootstrap.com/assets/font/bootstrap-icons.min.css',
'title' => 'Bootstrap',
'prefix' => 'bi',
),
array(
'url' => 'https://cdn.lineicons.com/4.0/lineicons.css',
'title' => 'Line Icons',
'prefix' => 'lni',
),
array(
'url' => 'https://cdn.jsdelivr.net/gh/devicons/[email protected]/devicon.min.css',
'title' => 'Dev Icons',
'prefix' => '', // None needed.
),
),
),
array(
'id' => 'title',
'type' => 'text',
'title' => __( 'Badge Text', 'text-domain' ),
'placeholder' => __( 'Free Shipping', 'text-domain' ),
),
),
),
)
) );That’s the same example from the docs.
Still no fonts loaded in the front end and in the back end it loads empty for fonts other than the default three

After digging deep in Redux’s code i found out that Redux’s
Redux_Output.enqueue()only loops top-level section fields. Since theicon_selectis nested inside arepeater, Redux’s output pipeline never sees it, so it never callsoutput()which is what enqueues Font Awesome/Elusive on the frontend.- This reply was modified 3 weeks, 2 days ago by ahriad.
Forum: Plugins
In reply to: [W3 Total Cache] Nginx minify and cache bugThe strange thing, that the one in original rule and my edit of it is working as rule even that both have a RegExp error!
Forum: Plugins
In reply to: [W3 Total Cache] Nginx minify and cache bugChange the rule to
rewrite ^(.*\/)?w3tc_rewrite_test(.*?)\/?$ $1?w3tc_rewrite_test=1 last;Forum: Plugins
In reply to: [W3 Total Cache] Nginx minify and cache bugDid you reload Nginx after changing the rule?
I found the problem changed “wp_posts” to “$wpdb->posts” in lines 123, and 137 . the bug only effect peoples who changed the table default prefix.