New Landing How can we help? Themeforest Theme Support Dante Swift page builder to custom post type

Viewing 10 posts - 1 through 10 (of 10 total)
  • Posted in: Dante
  • #41163
    Hapexi
    Member
    Post count: 17

    Hi,

    Is it possible to enable the swift page builder to a custom post type?

    #41317
    Tahir – SUPPORT
    Member
    Post count: 1212

    Hi,
    At the moment i am afraid it does not work with Custom Post Types. Its in the to do list so should be available in few iterations.

    Best
    -Tahir

    #41323
    Hapexi
    Member
    Post count: 17

    Can you tell me if there is a way for me to activate the page template for blog post? I would need to create a event category post and I dont want it so use the post template because of all the extra in the page. I need a empty page so I can make the post look like I want.

    #41328
    Tahir – SUPPORT
    Member
    Post count: 1212

    Hi,

    Sorry cant really make out what you need done. If you want some elements removed from a particular post we can do that with some custom css.

    Or

    Are you asking for how to create a new page template for blog posts in a child theme ?.

    -Tahir

    #41349
    Hapexi
    Member
    Post count: 17

    Well I managed to create the kind of page template in child theme what I needed, but I was just asking if there is a inbuilt way to create a blog post that would look like a Page so person can have total control over the look of the page instead of being forced to use the paginations and blog infos.

    #41742
    Tahir – SUPPORT
    Member
    Post count: 1212

    Hi,

    No i am afraid there is no such option . But its a good idea. I am sure Ed can put this on the list of feature updates.

    Thanks
    Tahir

    #52635
    kommTrotz2011
    Member
    Post count: 2

    hey,

    i was also looking for a solution to enable the swift page builder for my custom post type. luckily i know from different themes where to look. the biggest problem is to find the little piece of code where the page builder will be assigned to the post types. well i took me 10 minutes to find the right lines:

    add in line 42 and 44 your custom post type:
    dante/swift-framework/page-builder/builder/lib/builder.php

    i know that’s not the best solution, but as long as there is no other possibility as mentions by one of the staff members, this should work till the next update.

    #52847
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Thanks for posting this @kommTrotz2011

    #54200
    coader
    Member
    Post count: 12

    That’s the ticket @kommTrotz2011! Thank you!!

    Let me clarify a bit for anyone not savvy in code…

    -Open the file ‘builder.php’. It is located in the following folder:
    wp-content/themes/dante/swift-framework/page-builder/builder/lib/builder.php
    -Lines 42 & 44 of builder.php should read as below.

    $this->postTypes = $pt_array ? $pt_array : array('page', 'post', 'portfolio', 'product', 'team', 'jobs', 'ajde_events', 'example_slug',);
                } else {
    $this->postTypes = $pt_array ? $pt_array : array('page', 'post', 'portfolio', 'team', 'jobs', 'ajde_events', 'example_slug');	            
    

    -Replace “example_slug” with the slug of your custom post type into those lines. You should have defined the slug when creating the custom post type.

    Voila!! …for now.

    #54295
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Thanks!

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

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register