Forum Replies Created

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • I believe I finally found a solution. I REPLACED this first block of code in the child theme’s function.php file with the second block of code below. I hope it helps someone.

    ————————–
    OLD
    ————————–
    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’][] = ‘careers’;
    }
    }

    return $metabox;
    }

    ————————–
    NEW
    ————————–
    function avf_alb_supported_post_types_mod( array $supported_post_types )
    {
    $supported_post_types[] = ‘careers’;
    return $supported_post_types;
    }
    add_filter(‘avf_alb_supported_post_types’, ‘avf_alb_supported_post_types_mod’, 10, 1);

    Not sure if it is related. I also saw a recent Enfold update cause the color section background to extend over the REMAINING page content. This only happened with my CPT pages (using CPT UI plugin). I “solved” it by adding a second color section below the original section. I took off the padding and added no color to it so it would not visibly impact the page content. The addition of this second color section caused the color from the initial color section above it to stop where it should. Odd. Hope that makes sense.

    There is also another issue, which began around the same update, with columns on CPT pages. I’ll open a thread on that though.

    Anyone have ideas on how to use Enfold’s child theme to handle “with_front” on Enfold’s default Portfolio post type?

    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

    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.

    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.

    in reply to: Blog and Portfolio categories nested #1061315

    Thank you Ismael. I have the CPT UI plugin and debated creating a new Post Type. This helps. For now, I will stay with the parent theme fix while I look for a less programmatic solution or can devote time to try this in our dev environment.

    in reply to: Blog and Portfolio categories nested #1060658

    My previous solution above suddenly ended up working. The edits to the register-portfolio.php file finally saved. I just changed true to false. Perhaps it was a time-based or cache issue. But, only on my main Enfold theme. I can’t copy the file to my Child theme and get it to save any updates. Now, I have to worry about theme updates overwriting my edits to this file.

    Is there any way I can make this change on my child theme so I do not need to worry about this edit being overwritten with each update? For now, I saved the register-portfolio.php file to my local drive and noted my changes.

    Thank you in advance

    in reply to: Blog and Portfolio categories nested #1059651

    Thank you for your reply Srishti. If I were to do what you did above, I believe I would see the following: 1) domain.com/blog/<individual-blog-entry> and 2) domain.com/blog/paintings/<individual-painting-entry>. I’m trying to prevent such a parent-child permalink structure between my blog and portfolio.

    My previous solution regarding “with_front” ended up working. Perhaps it was a time-based or cache issue. The edits to the register-portfolio.php file finally saved. But, only on my main Enfold theme. I can’t copy the file to my Child theme and get it to save any updates. Now, I have to worry about theme updates overwriting my edits to this file.

    Thank you again for your insight!

    Mathuseo. I’m having the same issue and arrived at the same conclusion and road block with the “includes/admin/register-portfolio.php” file. I know this is an old thread, but if you solved the issue, please let share the solution.

    I’m not a developer.

    Vielen dank

    in reply to: Blog and Portfolio categories nested #1059477

    includes/admin/register-portfolio.php
    I believe changing the rewrite “with_front” to “false” (lines 34 and 54) will solve all my problems. But, my changes to the file do not appear even thought WP says they saved. I tried saving the file to “includes/admin/register-portfolio.php”, but that did not work.

    Line 34 ‘rewrite’ => array(‘slug’=>_x($permalinks[‘portfolio_permalink_base’],’URL slug’,’avia_framework’), ‘with_front’=>true),
    Line 54 “rewrite” => array(‘slug’=>_x($permalinks[‘portfolio_entries_taxonomy_base’],’URL slug’,’avia_framework’), ‘with_front’=>true),

    —————————–
    c_srishti, I’m not sure what your solution was. It doesn’t matter what I add to the portfolio item base or custom structure. The portfolio base incorrectly will fall under my custom director structure (see below) which is what I do NOT want. This should not require site access. I can’t be the first person to NOT want portfolio to be within my blog directory.
    —————————–

    EXAMPLE:
    Permalinks > Custom Structure = /blog/
    Permalinks > Portfolio Items Base = portfolio

    This happens (bad) = domain.com/blog/portfolio/item-in-my-portfolio
    I need this = domain.com/portfolio/item
    I need this = domain.com/blog/item

    I have the CPT UI plugin, but portfolio is already built into Enfold. Why can’t I use it the way I need?

    Added:
    It looks like others had this issue in older versions on WP/Enfold. I’m not sure it was ever solved. I’m working my way through this thread. https://kriesi.at/support/topic/change-with_fronttrue-from-portfolio-entries-custom-post-type/

    • This reply was modified 5 years, 11 months ago by contiorg.
    in reply to: Blog and Portfolio categories nested #1044399

    The issue does not appear to be setting the permalinks. I have done that. It is that the URL for my portfolio pages are appearing WITHIN the directory (permalink) of my blog. I do not want this. Example…. “domain.com/news/portfolio/pagename”. “news” being my blog permalink and “portfolio” being my portfolio permalink. I want my portfolio URL to be “domain.com/portfolio/pagename”.

    Thank you,
    Lance

    • This reply was modified 6 years ago by contiorg.
    in reply to: Blog and Portfolio categories nested #1044081

    Bump. Anyone? Please help!

Viewing 13 posts - 1 through 13 (of 13 total)