Tagged: Advanced layout builder Leandash
-
AuthorPosts
-
March 28, 2023 at 8:59 pm #1402819
We are using LearnDash and wanted to use the Advanced Layout Builder in the LearnDash custom post types. From the forums we’ve installed this code in functions.php:
* Adds the Avia layout builder to Learndash custom post types
**/
function avf_alb_supported_post_types_mod( array $supported_post_types )
{
$supported_post_types[] = ‘sfwd-lessons’;
$supported_post_types[] = ‘sfwd-courses’;
$supported_post_types[] = ‘sfwd-topic’;
return $supported_post_types;
}
add_filter(‘avf_alb_supported_post_types’, ‘avf_alb_supported_post_types_mod’, 10, 1);
// end of function that adds the avia layout builder to LearndashBut we don’t see the last two element tabs in the editor (Content and Media) – this is what we see the link:
https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.google.com%2Fdocument%2Fd%2F1XTQhP-d3zMc1mHlSCpAzgFt1xoHZIh2m3r9RHuLP6Pk%2Fedit%3Fusp%3Dsharing&data=05%7C01%7Cgchalk%40jhu.edu%7Cab28263923e745be064408db2fbe6364%7C9fa4f438b1e6473b803f86f8aedf0dec%7C0%7C0%7C638156266978271313%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=QZxPobAEYjg4Z1R9EDzDbtKnqqpPFgXajtNa31n7MDY%3D&reserved=0March 28, 2023 at 10:57 pm #1402833Hey,
Please create temporary admin logins and post them here privately so we can look into it.
Best regards,
YigitMarch 28, 2023 at 11:19 pm #1402836This reply has been marked as private.March 29, 2023 at 1:09 pm #1402906Hi Guy,
Please add the following code to the bottom of the functions.php file of your child theme
function ava_learndash_mod() { echo '<style> body.learndash-post-type.block-editor-page.avia-advanced-editor-enabled.avia-block-editor-expand .avia-expanded .avia-fixed-controls { top: 200px; } body.learndash-post-type.block-editor-page.avia-advanced-editor-enabled #avia_builder .avia-builder-main-wrap { padding: 180px 0 0 0; } </style>'; } add_action('admin_head', 'ava_learndash_mod');
Best regards,
Yigit -
AuthorPosts
- You must be logged in to reply to this topic.