-
AuthorPosts
-
December 22, 2023 at 9:29 am #1428734
I want to use the advanced layouteditor for the evnets calendar. I copy pasted some code in the functions.php
But nothings happened. What do I do wrong? fo I need to republish the site aferwards?thanks!
add_filter(‘avf_builder_boxes’, ‘add_builder_to_posttype’);
function add_builder_to_posttype($metabox)
{
foreach($metabox as &$meta)
{
if($meta[‘id’] == ‘avia_builder’ || $meta[‘id’] == ‘layout’)
{
$meta[‘page’][] = ‘events’; /*instead add the name of the custom post type here*/
}
}
return $metabox;
}December 24, 2023 at 3:34 pm #1428851Hey tclaereveld,
Thanks for your patience and the link to your site, I changed your code to this and enabled the Classic Editor in the theme settings at:
Enfold Theme Options ▸ Select Your Editor ▸ Use WP Classic Editor and now it seems to be working.add_filter('avf_builder_boxes', 'add_builder_to_posttype'); function add_builder_to_posttype($metabox) { foreach($metabox as &$meta) { if($meta['id'] == 'avia_builder' || $meta['id'] == 'layout') { $meta['page'][] = 'tribe_events'; } } return $metabox; }
Best regards,
MikeDecember 26, 2023 at 5:41 pm #1428886Great!!! Thanks a lot for fixing this and the issue with the right toolbar as well.
Any chance you give me quick advise on the breadcrump issue as well?-The breadcrumb background color should be changed into #D95E32, but I don’t know where to do this
-In the Breadcrumb, there is always Home –> hoofdpagina –> Is it possible to delete the HOME everywhere and show only hofdpagina as the first level in the breadcrumb? U bevindt zich hier:Home/Hoofdpagina/Tennisschool Laereveld/Tieners –> U bevindt zich hier:Hoofdpagina/Tennisschool Laereveld/TienersThanks!!!!!
December 27, 2023 at 5:00 pm #1428910Hi,
Glad that the above worked for you, it looks like the breadcrumb background color is already #D95E32, so I assume that you have sorted this out.
To remomve “home” from your breadcrumbs try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:.breadcrumb-trail > span:nth-child(2), .breadcrumb-trail > span:nth-child(3) { display: none !important; }
Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.
After applying the css, please clear your browser cache and check.Best regards,
MikeJanuary 2, 2024 at 4:21 pm #1429132Cool many thanks!!!!!!
January 2, 2024 at 6:13 pm #1429140Hi,
Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
Mike -
AuthorPosts
- The topic ‘Problems with using the advanced layout for the event Calendar’ is closed to new replies.