• Resolved astwert

    (@astwert)


    Hello there,

    In your plugin description we can read that your plugin supports bricks builders. May I ask you how to output variations on archive pages in bricks builder?

    The problem with archive pages in bricks is, bricks has stripped all hooks there.
    So we would need a hook from you (didn’t found any in your documentation).

    Or do you have another solution?

    Thank you in advance

    André

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter astwert

    (@astwert)

    Found a solution to set a hook via “Dynamic Data” within bricks builder:

    1.) Add to your child theme’s functions.php the following code:

    add_shortcode( 'my_after_shop_loop_item_title', function() {
    ob_start();
    do_action( 'woocommerce_after_shop_loop_item_title' );
    return ob_get_clean();
    });

    which will enable the shortcode [my_after_shop_loop_item_title]

    2.) Add into “Dynamic Data” of “Products”-Element -> Field this shortcode:

    [my_after_shop_loop_item_title]

    Source: https://forum.bricksbuilder.io/t/showing-attributes-on-the-archives-page/2169/6

    Plugin Support Aamir

    (@aamiribsf)

    Hello @astwert,

    Greetings of the day!

    Glad you were able to find the solution.

    Thank you for sharing the solution here. That will surely help the others facing the same issue with the brick builder.

    If you have any further queries, don’t hesitate to raise a new thread.
    Have a great one ahead!

    • This reply was modified 2 years, 1 month ago by Aamir.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘need shortcode for bricks archive page’ is closed to new replies.