Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Dante › Swift page builder to custom post type
New Landing › How can we help? › Themeforest Theme Support › Dante › Swift page builder to custom post type
- This topic has 9 replies, 5 voices, and was last updated 10 years by Kyle – SUPPORT.
-
Posted in: Dante
-
January 8, 2014 at 6:33 pm #41163
Hi,
Is it possible to enable the swift page builder to a custom post type?
January 9, 2014 at 11:45 am #41317Hi,
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
-TahirJanuary 9, 2014 at 11:57 am #41323Can 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.
January 9, 2014 at 12:15 pm #41328Hi,
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
January 9, 2014 at 1:54 pm #41349Well 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.
January 11, 2014 at 12:56 pm #41742Hi,
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
TahirFebruary 27, 2014 at 6:53 pm #52635hey,
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.phpi 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.
February 28, 2014 at 10:50 am #52847Thanks for posting this @kommTrotz2011
March 4, 2014 at 11:46 pm #54200That’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.
March 5, 2014 at 9:05 am #54295Thanks!
-
Posted in: Dante
You must be logged in and have valid license to reply to this topic.