Tagged: ALB, Custom Post Type, Toolset
-
AuthorPosts
-
June 28, 2019 at 1:21 pm #1114252
Hi :)
Is there any way i can define custom default content to make things easy for Editors?
Like Default preselected Taxonomies, Default selected Sliders, Default Text and Titles and things like this?I have to do a workaround because Enfold does not support Toolset Layouts … The ALB content of all entrys in my custom post type will be the same, the Main-content is in the custom fields.
Is there a possibility to achieve this in any way with the ability to use shortcodes, too?
Hope you can help.Kind Regards
June 28, 2019 at 6:52 pm #1114343It’s tricky but i found a dirty solution. I wished that Enfold could finally support Toolset fully.
add_action( 'ava_after_main_container', 'seminar_default_content_injection' ); function seminar_default_content_injection() { if ( 'seminar' == get_post_type() ){ echo ' <div class="post-entry post-entry-type-page"> <div class="entry-content-wrapper clearfix">'.putRevSlider("signet-kompakt-universal").'</div> </div> <div id="brotkasten" class="avia-section main_color avia-section-small avia-no-shadow avia-bg-style-scroll avia-builder-el-1 el_after_av_revolutionslider el_before_av_three_fourth container_wrap fullsize" style=" margin-top:0px; margin-bottom:30px; "> <div class="container">'.avia_breadcrumbs(array('separator' => '/', 'richsnippet' => true)).'</div> </div> <div class="container"> <div class="template-page content av-content-full alpha units custompostoberende"> <div class="post-entry post-entry-type-page"> <div class="entry-content-wrapper clearfix"> <div class="flex_column av_three_fourth flex_column_div first avia-builder-el-3 el_after_av_section el_before_av_one_fourth avia-builder-el-first cuscon " style="margin-top:0px; margin-bottom:0px; padding:40px 40px 40px 0px ; border-radius:0px; ">'.do_shortcode("[wpv-post-body view_template='inhalts-template-fuerseminare']").'</div> <div class="flex_column av_one_fourth flex_column_div av-zero-column-padding avia-builder-el-4 el_after_av_three_fourth avia-builder-el-last sidebar sidebar_right sidebar_inner " style="margin-top:0px; margin-bottom:0px; border-radius:0px; "> <div class="avia-builder-widget-area clearfix avia-builder-el-5 avia-builder-el-no-sibling "> '.do_shortcode("[av_sidebar widget_area='Widgetbar Start' av_uid='av-eon0u']").' </div> </div> </div> </div> </div> </div> '; } }
June 29, 2019 at 7:31 pm #1114488Hi madsonic,
Glad you got it working for you! :)
If you need further assistance please let us know.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.