New Landing How can we help? Atelier SPB content directly in php template

Viewing 7 posts - 1 through 7 (of 7 total)
  • Posted in: Atelier
  • #264437
    japanconsult
    Member
    Post count: 7

    Hello

    I have made a SPB section with woocommerce category-thumbs with links to the current categories.
    I would like to show this on the woocommerce single product page + category archive pages.

    Is it possible to reference a SPB section directly in a php template?

    Regards

    PS – I know I can add the pagebouilder to the product page, but this is not a viable solution.

    #264451
    No Dinx
    Member
    Post count: 25

    I have been adding SPB shortcodes to PHP templates for a long time. Just make sure to enable Swift Page Builder for the post type (Products).

    #264507
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    Try adding this to your php file:

    <?php echo do_shortcode( '[spb_section spb_section_id="13943" width="1/1" el_position="first last"]' ); ?>

    You will need to change the ID

    – Kyle

    #264631
    japanconsult
    Member
    Post count: 7

    Thanks Kyle – this works like a charm ๐Ÿ™‚

    Regards

    #264635
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Great! No problem

    – Kyle

    #264655
    No Dinx
    Member
    Post count: 25

    We built an entire membership platform using this method. It’s one of many reasons to always use Swift themes!

    #264982
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Glad to hear it ๐Ÿ™‚

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.