Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1069770

    Enfold Theme. I have created a CPT using the CPT UI plugin. CPT = “team”. I have also created a test CPT to play with called “testtype”. The ALB option is not showing up for my CPTs. I have looked on this board and the internet for a solution. It seems like the code below should work as it has for other Enfold customers, but all I have available is Gutenberg. The ALB is available on all other pages and working fine. The ALB option just doesn’t show for my CPTs. For instance, I want to have the ALB available to design the page for “domain.com/team/john-doe”. Please help. What am I missing? I added the following to my child theme’s functions.php file. Login included below.
    ————————————————————-
    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’][] = ‘team’;
    $meta[‘page’][] = ‘testtype’;
    }
    }

    return $metabox;
    }
    ————————————————————-

    Thank you

    #1069982

    Apologies. I included a temporary admin login but not the login to view the site. You will need both. Enter the login credentials to view the site (below) and then enter the admin login once the WP Admin login screen appears. Please help.

    #1070023

    Hi contiorg,

    Can you try to switch to Classic Editor.
    Go to Enfold > Theme Options > Select Your Editor, set this to: Use WP Classic Editor then save.
    Hope this helps.

    Best regards,
    Nikko

    #1070045

    Nikko. You’re awesome! I switched to Classic Editor and the ALB button appeared on my CPT pages. This thread can be closed.

    For anyone else who has the issue now or in the future…
    1) Switching to the Classic Editor in Theme Options
    2) Visit a specific page in one of your CPTs and the ALB button will now be available. Switch to ALB and save.
    3) I switched back to the Block Editor in Theme Options in case the ability to switch editors disappears in later versions/updates.
    4) I revisited the specific CPT page I changed to the ALB.
    5) That specific CPT page retained ALB as the new, active editor
    6) However, the editor button (to choose editors) on that specific page was no longer visible (again).
    7) Note: Any CPT page I had NOT switched to the ALB while in Classic mode retained the Block Editor as the active editor

    Hope this helps

    #1070180

    Hi contiorg,

    Glad that we could help :)
    Thanks for the step by step instruction you posted, which will surely help a lot of enfold users.
    Thanks also for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘ALB not showing up for my CPTs. The fix from this forum did not work for me.’ is closed to new replies.